Fixing deprecated Postfix templates & Providing Dovecot2 Sieve-Configs

This commit is contained in:
junkpad92
2014-12-16 21:42:16 +01:00
parent 1e5f80ace6
commit 56b652d185
68 changed files with 314 additions and 188 deletions

View File

@@ -5,7 +5,7 @@ listen = *
mail_access_groups = vmail
mail_debug = no
protocols = imap pop3
protocols = imap pop3 sieve
### SSL Settings
### After you obtained an SSL-certificate enable ssl here and
@@ -21,6 +21,10 @@ passdb {
plugin {
quota = maildir:User Quota
# Sieve-Configuration
sieve = ~/sieve/.dovecot.sieve
sieve_dir = ~/sieve
}
service auth {
@@ -36,6 +40,15 @@ service auth {
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
service managesieve {
}
userdb {
driver = prefetch
}
@@ -72,10 +85,13 @@ protocol pop3 {
pop3_logout_format = in=%i out=%o top=%t/%p retr=%r/%b del=%d/%m size=%s
}
protocol sieve {
}
lda_mailbox_autocreate = yes
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = quota
mail_plugins = quota sieve
# postmaster is the one in charge of the mail system. MUST be set to a valid address!
postmaster_address = postmaster@<SERVERNAME>
sendmail_path = /usr/sbin/sendmail

View File

@@ -1,5 +1,5 @@
user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
query = select destination from mail_virtual where email = '%s' and trim(destination) <> ''
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destination) <> ''

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select gid from mail_users where email = '%s'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT gid FROM mail_users WHERE email = '%s'

View File

@@ -1,5 +1,5 @@
user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
query = select domain from panel_domains where domain = '%s' and isemaildomain = '1'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select (quota*1024*1024) from mail_users where email = '%s'
hosts = <SQL_HOST>
query = SELECT (quota*1024*1024) FROM mail_users WHERE email = '%s'

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select concat(homedir,maildir) from mail_users where email = '%s'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s'

View File

@@ -1,5 +1,5 @@
user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
query = select distinct username from mail_users where email in ((select mail_virtual.email_full from mail_virtual where mail_virtual.email = '%s' union select mail_virtual.destination from mail_virtual where mail_virtual.email = '%s'));
hosts = <SQL_HOST>
query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_virtual.email_full FROM mail_virtual WHERE mail_virtual.email = '%s' UNION SELECT mail_virtual.destination FROM mail_virtual WHERE mail_virtual.email = '%s'));

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select uid from mail_users where email = '%s'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT uid FROM mail_users WHERE email = '%s'

View File

@@ -1,5 +1,5 @@
user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
query = select destination from mail_virtual where email = '%s' and trim(destination) <> ''
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destination) <> ''

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select gid from mail_users where email = '%s'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT gid FROM mail_users WHERE email = '%s'

View File

@@ -1,5 +1,5 @@
user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
query = select domain from panel_domains where domain = '%s' and isemaildomain = '1'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select (quota*1024*1024) from mail_users where email = '%s'
hosts = <SQL_HOST>
query = SELECT (quota*1024*1024) FROM mail_users WHERE email = '%s'

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select concat(homedir,maildir) from mail_users where email = '%s'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s'

View File

@@ -1,5 +1,5 @@
user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
query = select distinct username from mail_users where email in ((select mail_virtual.email_full from mail_virtual where mail_virtual.email = '%s' union select mail_virtual.destination from mail_virtual where mail_virtual.email = '%s'));
hosts = <SQL_HOST>
query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_virtual.email_full FROM mail_virtual WHERE mail_virtual.email = '%s' UNION SELECT mail_virtual.destination FROM mail_virtual WHERE mail_virtual.email = '%s'));

View File

@@ -2,5 +2,5 @@ user = <SQL_UNPRIVILEGED_USER>
password = <SQL_UNPRIVILEGED_PASSWORD>
dbname = <SQL_DB>
expansion_limit = 1
query = select uid from mail_users where email = '%s'
hosts = <SQL_HOST>
hosts = <SQL_HOST>
query = SELECT uid FROM mail_users WHERE email = '%s'