Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Wed Jul 18 2007 - 15:20:32 CDT
On Wed, Jul 18, 2007 at 10:09:57PM +0200, Gregor Maier wrote:
> Well yes. But my problem is with *smtpd* and trivial-rewrite, not qmgr.
> smtpd tries to lookup up the address (in my case after it received the
> MAIL FROM command). The lookup fails and smtpd loops forever (or rather
> resolve_clnt()), trying to resolve the address. Which has the effect,
> that nothing happens in the SMTP dialog after postfix received the MAIL
> FROM. Here I would like smtpd to send a tempfail (4xx). The behaviour of
> trivial-rewrite and qmgr is IMHO ok.
The queue manager and smtpd use the same library interface to perform
transport lookups. If trivial-rewrite fails, the queue manager is stuck
and Postfix becomes unusable, there is not much benefit in analyzing
smtpd behaviour at that point...
> > I only use LDAP for virtual(5) rewriting not transport resolution.
> I'm not entirely sure what you mean by transport resolution but I'm
> using LDAP only for virtual stuff.
> mailtest:/etc/postfix# postconf | grep ldap
> alias_maps = hash:/etc/postfix/aliases ldap:/etc/postfix/ldap-aliases
> smtpd_sender_login_maps = ldap:/etc/postfix/sender_map.ldap
> virtual_alias_maps = ldap:/etc/postfix/virtual_aliases.ldap
> virtual_gid_maps = ldap:/etc/postfix/virtual_gid.ldap
> virtual_mailbox_maps = ldap:/etc/postfix/virtual_mailbox_maps.ldap
> virtual_uid_maps = ldap:/etc/postfix/virtual_uid.ldap
You are falling victim to the implicit backwards compatible setting:
virtual_mailbox_domains = $virtual_mailbox_maps
virtual_alias_domains = $virtual_alias_maps
Set these explicitly, and avoid LDAP for the domain lists. Using LDAP for
the per-user data is fine. Don't use LDAP in transport_maps (and related
tables mentioned in post a year or two back) unless LDAP is reliable.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.