managesieve proxying not working
Hawk Chen
hawk_chen at itsnow.com
Sun Apr 3 05:14:36 UTC 2016
Hi,
I'm setting up the directors for proxying pop3/imap/lmtp/sieve. pop3/imap/lmtp proxying work fine, but sieve not working. The error messages in maillog look not using proxying but local passdb.
Error message:
Apr 03 12:09:25 managesieve-login: Info: Aborted login (no auth attempts in 0 secs): user=<>, rip=10.1.1.4, lip=10.1.1.201, session=<+SIcx4wvRQAKAQEE>
sql in /etc/dovecot/dovecot-sql.conf.ext:
password_query = SELECT NULL as password, host, 'Y' as nopassword, 'Y' as proxy FROM mailbox WHERE username = '%u' AND active='1'
doveconf -n output is as follows,
# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-327.10.1.el7.x86_64 x86_64 CentOS Linux release 7.2.1511 (Core)
director_mail_servers = 10.1.4.5 10.1.4.6
director_servers = 10.1.1.1 10.1.1.2
lmtp_proxy = yes
log_path = /var/log/dovecot.log
login_greeting = DNT Mail Server
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 ihave
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
passdb {
driver = pam
}
plugin {
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
}
protocols = imap pop3 lmtp sieve
service director {
fifo_listener login/proxy-notify {
mode = 0666
}
inet_listener {
port = 9090
}
unix_listener director-userdb {
mode = 0600
}
unix_listener login/director {
mode = 0666
}
}
service imap-login {
executable = imap-login director
service_count = 0
}
service lmtp {
inet_listener lmtp {
port = 24
}
}
service managesieve-login {
executable = managesieve-login director
service_count = 0
}
service pop3-login {
executable = pop3-login director
service_count = 0
}
ssl = required
ssl_cert = </etc/postfix/itsnow.crt
ssl_key = </etc/postfix/itsnow.key
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
userdb {
driver = passwd
}
protocol lmtp {
auth_socket_path = director-userdb
}
Regards,
Hawk
More information about the dovecot
mailing list