[Dovecot] R: Re: LMTP : Can't handle mixed proxy/non-proxy destinations

cinzia.delcoiro at libero.it cinzia.delcoiro at libero.it
Tue Feb 14 17:02:07 EET 2012


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.
>
>





More information about the dovecot mailing list