- fix Ubuntu Lucid dovecot-configuration-templates, fixes #401

refs #401
This commit is contained in:
Michael Kaufmann (d00p)
2010-09-13 05:50:10 +00:00
parent 6169328647
commit b1b2eec21f
3 changed files with 4 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
# Some general options
protocols = imap pop3 <SSLPROTOCOLS> managesieve
protocols = imap pop3 <SSLPROTOCOLS>
mail_access_groups = vmail
## allow Plaintext Logins from foreign IP if the Connection doesn't use TLS
disable_plaintext_auth = no
@@ -29,8 +29,7 @@ protocol pop3 {
protocol lda {
# postmaster is the one in charge of the mail system. MUST be set to a valid address!
postmaster_address = <postmaster-address>
mail_plugins = managesieve quota
quota_full_tempfail = yes
mail_plugins = quota
deliver_log_format = msgid=%m: %$
rejection_reason = Your message to <%t> was automatically rejected:%n%r
}
@@ -38,6 +37,4 @@ protocol lda {
# Plugins configuration
plugin {
quota = maildir
sieve=~/.dovecot.sieve
sieve_dir=~/sieve
}

View File

@@ -2,4 +2,4 @@ driver = mysql
connect = host=<SQL_HOST> dbname=<SQL_DB> user=<SQL_UNPRIVILEGED_USER> password=<SQL_UNPRIVILEGED_PASSWORD>
default_pass_scheme = CRYPT
password_query = SELECT username AS user, password_enc AS password, CONCAT(homedir, maildir) AS userdb_home, uid AS userdb_uid, gid AS userdb_gid, CONCAT('maildir:', homedir, maildir) AS userdb_mail, CONCAT('maildir:storage=', (quota*1024)) as userdb_quota FROM mail_users WHERE username = '%u' OR email = '%u'
user_query = SELECT CONCAT(homedir, maildir) AS home, CONCAT('maildir:', homedir, maildir) AS mail, uid, gid, CONCAT('maildir:storage=', (quota*1024)) as quota FROM mail_users WHERE username = '%u' OR email = '%u'
user_query = SELECT CONCAT(homedir, maildir) AS home, CONCAT('maildir:', homedir, maildir) AS mail, uid, gid, CONCAT('*:storage=', (quota*1024)) as quota_rule FROM mail_users WHERE username = '%u' OR email = '%u'

View File

@@ -1,4 +1,4 @@
# Add this lines to be able to use dovecot as delivery agent
# Dovecot LDA
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -d ${recipient}