cinzia.delcoiro at libero.it
2012-Feb-14 15:02 UTC
[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 at amm2.miur.it
}
Regards Cinzia
>----Messaggio originale----
>Da: tss at iki.fi
>Data: 28-gen-2012 18.32
>A: "Alexis Lelion"<alexis.lelion at gmail.com>
>Cc: "Dovecot Mailing List"<dovecot at dovecot.org>
>Ogg: Re: [Dovecot] LMTP : Can't handle mixed proxy/non-proxy
destinations
>
>On 27.1.2012, at 12.59, Alexis Lelion wrote:
>
>> Jan 25 09:05:12 mail01 postfix/lmtp[23934]: A92709300DB: to=<
>> user_on_mail02 at domain.com>,
relay=mail01.domain.com[private/dovecot-lmtp],
>> delay=0.07, delays=0.01/0/0/0.06, dsn=4.3.0, status=deferred (host
>> mail01.domain.com[private/dovecot-lmtp] said: 451 4.3.0 <
>> user_on_mail02 at domain.com> Can't handle mixed proxy/non-proxy
destinations
>> (in reply to RCPT TO command))
>>
>> I was wondering if there was another way of handling this, for example
>> by triggering an immediate queue lookup from postfix or forwarding a
>> copy of the mail to the other server. Note that the postfix
>> "queue_run_delay" was increased to 15min on purpose, so I
cannot change
>> that.
>
>It would be possible to change the code to support mixed destinations, but
it's probably not a simple change and I have other things to
do..>
>Maybe you could work around it so that LMTP always proxies the mails, to
localhost as well, but to a different port which doesn't do proxying at
all.>
>
Charles Marcus
2012-Feb-14 15:42 UTC
[Dovecot] R: Re: LMTP : Can't handle mixed proxy/non-proxy destinations
On 2012-02-14 10:02 AM, cinzia.delcoiro at libero.it <cinzia.delcoiro at libero.it> wrote:> 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.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
Timo Sirainen
2012-Feb-15 02:24 UTC
[Dovecot] R: Re: LMTP : Can't handle mixed proxy/non-proxy destinations
On 14.2.2012, at 17.02, cinzia.delcoiro at libero.it wrote:> 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.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: 1) Add another LMTP service listener for port 10024 2) 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 } }
Maybe Matching Threads
- LMTP : Can't handle mixed proxy/non-proxy destinations
- R: Re: R: Re: LMTP : Can't handle mixed proxy/non-proxy destinations
- building packages under windows
- Building packages with subroutine in fortran 90 under windows xp
- Cannot delete subfolder in public folder