managesieve proxying not working
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
Stephan,
Imap/pop shows proxying in mail log, but managesieve differs.
Apr 03 03:21:04 pop3-login: Info: proxy(hawk_chen@itsnow.com): started proxying to 10.1.4.6:110: user=<hawk_chen@itsnow.com>, method=PLAIN, rip=218.82.239.224, lip=183.131.52.136, TLS, session=<uJeOZYUvrgDaUu/g> Apr 03 03:21:04 pop3-login: Info: proxy(hawk_chen@itsnow.com): disconnecting 218.82.239.224 (Disconnected by server): user=<hawk_chen@itsnow.com>, method=PLAIN, rip=218.82.239.224, lip=183.131.52.136, TLS, session=<uJeOZYUvrgDaUu/g>
Regards, Hawk
发件人: Stephan Bosch 发送时间: 2016-04-03 22:14 收件人: Hawk Chen; dovecot 主题: Re: managesieve proxying not working Op 3-4-2016 om 7:14 schreef Hawk Chen:
You can turn on auth_debug and show what it logs. Do you see any differences with imap/pop?
Regards,
Stephan.
Op 3-4-2016 om 16:32 schreef Hawk Chen:
What Sieve client are you using? It looks as though it never even tries to authenticate. You try this manually:
http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Troubleshooting
Regards,
Stephan
I'm using roundcube webmail managesieve plugin. Webmail can login managesieve to a specific mailstore successfully without proxying. Because I have mutiple mailstores, I have to use proxying to redirect the correct mailstores just as imap/pop3.
发件人: Stephan Bosch 发送时间: 2016-04-03 22:50 收件人: Hawk Chen; dovecot 主题: Re: 回复: Re: managesieve proxying not working
Op 3-4-2016 om 16:32 schreef Hawk Chen:
What Sieve client are you using? It looks as though it never even tries to authenticate. You try this manually:
http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Troubleshooting
Regards,
Stephan
Op 4/3/2016 om 5:13 PM schreef Hawk Chen:
Can you try this?
http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Troubleshooting
Regards,
Stephan.
Stephan,
I configured the frontend director with ssl enforced but the internal mailstore supports tls and plain. I changed roundcube mail managesieve configuration and the sieve proxying works. $config['managesieve_usetls'] = true;
Thanks a lot.
Hawk
From: Stephan Bosch Date: 2016-04-27 05:10 To: Hawk Chen; dovecot Subject: Re: managesieve proxying not working Op 4/3/2016 om 5:13 PM schreef Hawk Chen:
Can you try this? http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Troubleshooting
Regards,
Stephan.
participants (3)
-
Hawk Chen
-
hawk_chen@itsnow.com
-
Stephan Bosch