[Dovecot] R: Re: LMTP : Can't handle mixed proxy/non-proxy destinations
Hi Timo, I'm writing to alert you that even in version 2.1. we have the error: "Can't handle mixed proxy/non-proxy destinations" when we write to two users: one existent and one not.
The error occurs randomly.
I configure LDAP query in the file : dovecot-ldap.conf in this way:
pass_attrs = mail=user,userPassword=password,=proxy=y,mailHost=host, =proxy_timeout=600
specifying "=proxy=y" in order to proxy every mail.
As workaround, can I configure a static "host" for non-existing users?
This is my dovecot -n
2.1.rc5: /usr/local/etc/dovecot/dovecot.conf
OS: Linux 2.6.18-194.el5 x86_64 Red Hat Enterprise Linux Server release 5.5
(Tikanga) auth_mechanisms = plain login base_dir = /usr/local/var/run/dovecot/ disable_plaintext_auth = no listen = 127.0.0.1 lmtp_proxy = yes mail_gid = mailusers mail_location = maildir:/mnt/mbox1/mailusers/%n/Maildir mail_uid = mailusers passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } plugin { quota = maildir:User Quota } protocols = lmtp service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } service_count = 0 vsz_limit = 256 M } service lmtp { inet_listener lmtp { port = 24 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } ssl = no syslog_facility = local5 userdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } protocol imap { mail_plugins = quota imap_quota } protocol lmtp { postmaster_address = info@amm2.miur.it }
Regards Cinzia
On 2012-02-14 10:02 AM, cinzia.delcoiro@libero.it <cinzia.delcoiro@libero.it> wrote:
why are you accepting mail for non existing users?
Catch-alls are a very very bad idea in 99.999% of cases, and usually when someone thinks they need a catchall, they are mistaken.
--
Best regards,
Charles
On 14.2.2012, at 17.02, cinzia.delcoiro@libero.it wrote:
In LMTP case proxy=y and proxy_maybe=y are actually exactly the same. If you want the mail always proxied, you need to also use a different port. So I guess it'll work if you:
Add another LMTP service listener for port 10024
Add =proxy_port=10024 to pass_attrs. Although if you use this same passdb for imap/pop3 lookups as well, you need to make the port change lmtp-only:
protocol lmtp { passdb { driver = sql args = dovecot-ldap-lmtp.conf } } protocol !lmtp { passdb { driver = sql args = dovecot-ldap.conf } }
participants (3)
-
Charles Marcus
-
cinzia.delcoiro@libero.it
-
Timo Sirainen