diff -ur /usr/local/etc/dovecot/conf.d/10-auth.conf /usr/local/share/doc/dovecot/example-config/conf.d/10-auth.conf --- /usr/local/etc/dovecot/conf.d/10-auth.conf 2013-02-10 12:02:20.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/conf.d/10-auth.conf 2013-02-10 08:52:13.000000000 +0100 @@ -96,7 +96,7 @@ # plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey # gss-spnego # NOTE: See also disable_plaintext_auth setting. -auth_mechanisms = plain login +auth_mechanisms = plain ## ## Password and user databases @@ -119,7 +119,7 @@ #!include auth-master.conf.ext !include auth-system.conf.ext -!include auth-sql.conf.ext +#!include auth-sql.conf.ext #!include auth-ldap.conf.ext #!include auth-passwdfile.conf.ext #!include auth-checkpassword.conf.ext diff -ur /usr/local/etc/dovecot/conf.d/10-mail.conf /usr/local/share/doc/dovecot/example-config/conf.d/10-mail.conf --- /usr/local/etc/dovecot/conf.d/10-mail.conf 2013-02-10 12:35:58.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/conf.d/10-mail.conf 2013-02-10 08:52:13.000000000 +0100 @@ -28,7 +28,6 @@ # # #mail_location = -mail_location = maildir:/home/vmail/%d/%u # If you need to set multiple mailbox locations or want to change default # namespace settings, you can do it by defining namespace sections. @@ -164,8 +163,6 @@ # be done even if first_valid_uid is set to 0. #first_valid_uid = 500 #last_valid_uid = 0 -first_valid_uid = 2000 -last_valid_uid = 2000 # Valid GID range for users, defaults to non-root/wheel. Users having # non-valid GID as primary group ID aren't allowed to log in. If user @@ -204,7 +201,7 @@ # Space separated list of plugins to load for all services. Plugins specific to # IMAP, LDA, etc. are added to this list in their own .conf files. -mail_plugins = sieve +#mail_plugins = ## ## Mailbox handling optimizations @@ -249,7 +246,7 @@ # When copying a message, do it with hard links whenever possible. This makes # the performance much better, and it's unlikely to have any side effects. -maildir_copy_with_hardlinks = yes +#maildir_copy_with_hardlinks = yes # Assume Dovecot is the only MUA accessing Maildir: Scan cur/ directory only # when its mtime changes unexpectedly or when we can't find the mail otherwise. diff -ur /usr/local/etc/dovecot/conf.d/10-master.conf /usr/local/share/doc/dovecot/example-config/conf.d/10-master.conf --- /usr/local/etc/dovecot/conf.d/10-master.conf 2013-02-10 12:34:13.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/conf.d/10-master.conf 2013-02-10 08:52:13.000000000 +0100 @@ -99,16 +99,6 @@ # Auth process is run as this user. #user = $default_internal_user - # Postfix smtp-auth - unix_listener /var/spool/postfix/private/auth { - mode = 0666 - user = postfix - group = postfix - } - - # Auth process is run as this user. - #user = $default_internal_user - user = root } service auth-worker { diff -ur /usr/local/etc/dovecot/conf.d/10-ssl.conf /usr/local/share/doc/dovecot/example-config/conf.d/10-ssl.conf --- /usr/local/etc/dovecot/conf.d/10-ssl.conf 2013-02-10 11:57:55.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/conf.d/10-ssl.conf 2013-02-10 08:52:13.000000000 +0100 @@ -9,10 +9,8 @@ # dropping root privileges, so keep the key file unreadable by anyone but # root. Included doc/mkcert.sh can be used to easily generate self-signed # certificate, just make sure to update the domains in dovecot-openssl.cnf -#ssl_cert = . -postmaster_address = info@example.org +#postmaster_address = # Hostname to use in various parts of sent mails, eg. in Message-Id. # Default is the system's real hostname. diff -ur /usr/local/etc/dovecot/conf.d/20-imap.conf /usr/local/share/doc/dovecot/example-config/conf.d/20-imap.conf --- /usr/local/etc/dovecot/conf.d/20-imap.conf 2013-02-10 12:29:45.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/conf.d/20-imap.conf 2013-02-10 08:52:13.000000000 +0100 @@ -54,5 +54,5 @@ # greyed out, instead of only later giving "not selectable" popup error. # # The list is space-separated. - imap_client_workarounds = delay-newmail + #imap_client_workarounds = } diff -ur /usr/local/etc/dovecot/conf.d/20-pop3.conf /usr/local/share/doc/dovecot/example-config/conf.d/20-pop3.conf --- /usr/local/etc/dovecot/conf.d/20-pop3.conf 2013-02-10 12:00:54.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/conf.d/20-pop3.conf 2013-02-10 08:52:13.000000000 +0100 @@ -87,5 +87,5 @@ # Outlook Express and Netscape Mail breaks if end of headers-line is # missing. This option simply sends it if it's missing. # The list is space-separated. - pop3_client_workarounds = outlook-no-nuls oe-ns-eoh + #pop3_client_workarounds = } diff -ur /usr/local/etc/dovecot/conf.d/auth-sql.conf.ext /usr/local/share/doc/dovecot/example-config/conf.d/auth-sql.conf.ext --- /usr/local/etc/dovecot/conf.d/auth-sql.conf.ext 2013-02-10 12:06:59.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/conf.d/auth-sql.conf.ext 2013-02-10 08:52:13.000000000 +0100 @@ -6,25 +6,25 @@ driver = sql # Path for SQL configuration file, see example-config/dovecot-sql.conf.ext - args = /usr/local/etc/dovecot/dovecot-sql.conf.ext + args = /etc/dovecot/dovecot-sql.conf.ext } # "prefetch" user database means that the passdb already provided the # needed information and there's no need to do a separate userdb lookup. # -userdb { - driver = prefetch -} +#userdb { +# driver = prefetch +#} userdb { driver = sql - args = /usr/local/etc/dovecot/dovecot-sql.conf.ext + args = /etc/dovecot/dovecot-sql.conf.ext } # If you don't have any user-specific settings, you can avoid the user_query # by using userdb static instead of userdb sql, for example: # #userdb { -# driver = static -# args = uid=vmail gid=vmail home=/home/vmail/%d/%u + #driver = static + #args = uid=vmail gid=vmail home=/var/vmail/%u #} diff -ur /usr/local/etc/dovecot/dovecot-sql.conf.ext /usr/local/share/doc/dovecot/example-config/dovecot-sql.conf.ext --- /usr/local/etc/dovecot/dovecot-sql.conf.ext 2013-02-10 12:38:29.000000000 +0100 +++ /usr/local/share/doc/dovecot/example-config/dovecot-sql.conf.ext 2013-02-10 08:52:13.000000000 +0100 @@ -26,7 +26,7 @@ # ); # Database driver: mysql, pgsql, sqlite -driver = mysql +#driver = # Database connection string. This is driver-specific setting. # @@ -64,7 +64,6 @@ # connect = /etc/dovecot/authdb.sqlite # #connect = -connect = host=localhost dbname=mailerconfig user=dovecot password=verysecret01 # Default password scheme. # @@ -123,7 +122,6 @@ #user_query = \ # SELECT home, uid, gid \ # FROM users WHERE username = '%n' AND domain = '%d' -user_query = SELECT concat('/home/vmail/', maildir) as home, concat('maildir:/home/vmail/', maildir) as mail, 2000 AS uid, 6 AS gid, concat('maildir:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND domain = '%d' AND active = '1' # If you wish to avoid two SQL lookups (passdb + userdb), you can use # userdb prefetch instead of userdb sql in dovecot.conf. In that case you'll @@ -133,6 +131,6 @@ # SELECT userid AS user, password, \ # home AS userdb_home, uid AS userdb_uid, gid AS userdb_gid \ # FROM users WHERE userid = '%u' -password_query = SELECT username as user, password, concat('/home/vmail/', maildir) as userdb_home, concat('maildir:/home/vmail/', maildir) as userdb_mail, 2000 as userdb_uid, 6 as userdb_gid FROM mailbox WHERE username = '%u' AND domain = '%d' AND active = '1' + # Query to get a list of all usernames. #iterate_query = SELECT username AS user FROM users