Есть exim 4.76. Захотелось иметь sieve, поэтому локальной доставкой пользователям занимается dovecot-lda
Код: Выделить всё
dovecot_delivery:
driver = pipe
command = /usr/local/libexec/dovecot/dovecot-lda
delivery_date_add
return_path_add
log_output
user = mailnull
temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78
Код: Выделить всё
[root@gw /usr/local/etc/exim]# dovecot -n
# 2.0.12: /usr/local/etc/dovecot/dovecot.conf
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
# OS: FreeBSD 8.1-RELEASE amd64 ufs
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = plain
debug_log_path = /var/log/mail/dovecot-debug.log
disable_plaintext_auth = no
first_valid_uid = 1
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_home = /var/mail/%n/home/
mail_location = maildir:/var/mail/%n
mail_plugins = " quota"
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date
namespace {
hidden = no
inbox = yes
list = yes
location =
prefix =
separator = .
subscriptions = yes
type = private
}
passdb {
args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
autocreate = Sent
autocreate2 = Trash
autocreate3 = Spam
autocreate4 = Drafts
autosubscribe = Sent
autosubscribe2 = Trash
autosubscribe3 = Spam
autosubscribe4 = Drafts
quota = maildir:storage=n
sieve = /var/mail/%n/home/.dovecot.sieve
sieve_dir = /var/mail/%n/home/sieve
}
protocols = imap pop3 lmtp sieve
service auth {
unix_listener auth-client {
group = mailnull
mode = 0666
user = mailnull
}
unix_listener auth-userdb {
group = mailnull
mode = 0600
user = mailnull
}
}
service imap {
executable = imap postlogin
}
service pop3 {
executable = pop3 postlogin
}
service postlogin {
executable = script-login /usr/local/etc/dovecot/timestamp.sh
}
ssl = no
userdb {
args = uid=26 gid=26
driver = static
}
protocol lda {
log_path = /var/log/mail/dovecot-deliver.log
mail_plugins = " quota sieve"
}
protocol imap {
mail_plugins = " quota autocreate imap_quota"
}
По давкотному вики вродь установил переменнуюlda(admin): Error: User admin doesn't have home dir set, disabling duplicate database
Также пробывалmail_home = /var/mail/%n/home/
Эффект одинаковый.userdb {
args = uid=26 gid=26
driver = static home=/var/mail/%n/home/
}
Заранее благодарю

ПС, Если кто укажет куда нужно впихнуть ssl=no, помимо стандартного 10-ssl.conf чтобы не было спама типа
Код: Выделить всё
[root@gw /usr/local/etc/dovecot/conf.d]# /usr/local/etc/rc.d/dovecot restart
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
Stopping dovecot.
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
Starting dovecot.
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection
