# директория для хранения почты
virtual_mailbox_base = /var/mail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/mysql-virtual_domains.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/sql/mysql-virtual_forwardings.cf, mysql:/etc/postfix/sql/mysql-virtual_email2email.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/sql/mysql-virtual_mailboxes.cf
local_recipient_maps = $virtual_mailbox_maps
user = mail
password = ****
dbname = mail
query = SELECT domain FROM domains WHERE domain = '%s'
hosts = 127.0.0.1
user = mail
password = ***
dbname = mail
query = SELECT CONCAT( SUBSTRING_INDEX(email, '@', -1), '/' , SUBSTRING_INDEX(email, '@', 1), '/' ) FROM users WHERE email = '%s'
hosts = 127.0.0.1
listen = 110,143
protocols = imap pop3
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n
ssl = no
disable_plaintext_auth=no
namespace private {
separator = .
prefix = INBOX.
inbox = yes
}
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = proft@test.ua
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
listen = *:110
}
protocol imap {
listen = *:143
}
auth default {
user = root
passdb sql {
args = /etc/dovecot-sql.conf
}
userdb static {
args = uid=1002 gid=1002 home=/home/vmail/%d/%n allow_all_users=yes
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/dovecot-auth
mode = 0660
user = postfix
group = postfix
}
}
}