~ubuntu-branches/ubuntu/utopic/dovecot/utopic-proposed

« back to all changes in this revision

Viewing changes to doc/wiki/AuthDatabase.SQL.txt

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-08 09:35:49 UTC
  • mfrom: (4.1.35 sid)
  • Revision ID: package-import@ubuntu.com-20140108093549-i72o93pux8p0dlaf
Tags: 1:2.2.9-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + Use the autotools-dev dh addon to update config.guess/config.sub for
    arm64.
* Dropped changes, included in Debian:
  - Update Dovecot name to reflect distribution in login greeting.
  - Update Drac plugin for >= 2.0.0 support.
* d/control: Drop dovecot-postfix package as its no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
     6. High availability
24
24
 
25
 
     7. Example
 
25
     7. Examples
26
26
 
27
27
Password database lookups
28
28
-------------------------
101
101
userdb this is done with 'iterate_query' setting. You can either return
102
102
 
103
103
 * "user" field containing either user or user@domain style usernames, or
104
 
 * "user" and "domain" fields
 
104
 * "username" and "domain" fields
105
105
 
106
106
Any other fields are ignored.
107
107
 
122
122
do round robin load balancing between them. If one of them goes down, the
123
123
others will handle the traffic.
124
124
 
125
 
Example
126
 
-------
 
125
Examples
 
126
--------
127
127
 
128
128
Note that "user" can have a special meaning in some SQL databases, so we're
129
129
using "userid" instead.
147
147
Add to your 'dovecot-sql.conf' file:
148
148
 
149
149
---%<-------------------------------------------------------------------------
150
 
# The mysqld.sock socket may be in different locations in different systems
151
150
driver = mysql
152
 
# Use "host= ... pass=foo#bar" if your password has '#' character
 
151
# The mysqld.sock socket may be in different locations in different systems.
 
152
# Use "host= ... pass=foo#bar" with double-quotes if your password has '#'
 
153
character.
153
154
connect = host=/var/run/mysqld/mysqld.sock dbname=mails user=admin
154
155
password=pass
155
156
# Alternatively you can connect to localhost as well:
203
204
iterate_query = SELECT userid AS username, domain FROM users
204
205
---%<-------------------------------------------------------------------------
205
206
 
206
 
Authenaticate against Horde
207
 
---------------------------
 
207
PostgreSQL/Horde
 
208
----------------
208
209
 
209
 
I use the following in devocot-sql.conf file to authenticate directly against
 
210
I used the following in devocot-sql.conf file to authenticate directly against
210
211
the Horde user/password database (with static userdb) on PostgreSQL:
211
212
 
212
213
---%<-------------------------------------------------------------------------
222
223
MD5-CRYPT. Also, the example above requires a 'dovecot' user in PostgreSQL with
223
224
read (SELECT) privileges on the 'horde_users' table.
224
225
 
225
 
(This file was created from the wiki on 2012-04-23 04:42)
 
226
(This file was created from the wiki on 2013-11-24 04:42)