From: Victor Duchovni on
On Sun, May 23, 2010 at 12:54:34AM +0100, Jo?o Gouveia wrote:

> I'm having a weird behavior with my (very simple) postfix configuration.
> I was trying to use LDAP to check if I should relay for a domain or not,
> like this:
>
> relay_domains = proxy:ldap:/etc/postfix/relay_domains_ldap.cf

The "proxy" is not very useful here, the "relay_domains" setting is used
in trivial-rewrite, which is already a low concurrency shared service.

> The strange thing is that whenever I do a manual test, connecting to Postfix
> SMTPD, when I issue the MAIL FROM, like this:
>
> MAIL FROM: <test(a)example.com>
> I see in the LDAP (slapd) debug log the following:
>
> May 23 00:47:09 blackhole slapd[14234]: conn=53358 op=0 SRCH base="dc=local"
> scope=2 deref=0 filter="(&(?objectClass=maildomain)(dc=example.com))"

This is not strange. It is expected behaviour.

> Now.. I don't have any other LDAP configuration, besides from the above one,
> how is it possible that Postfix is looking up the sender domain?
>
> Any pointer you can give me to help troubleshoot this? :-)

Nothing to trouble-shoot, everything is working normally.

--
Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment. If you are interested, please drop me a note.