On Wed, Sep 18, 2013 at 02:41:54PM +0100, Andre Rodier wrote:

> I am using postfix with virtual users, registered in an LDAP server. So far,
> everything is working fine.
> 
> However, some users or some programs are sending emails using a "From" email
> address that does not exists in the LDAP server.
> 
> I would like to know how to reject emails that came from an email address not
> registered in the LDAP server. Obviously, I need to do that only internally,
> i.e. on our domain.

        http://www.postfix.org/postconf.5.html#reject_unlisted_sender
        http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_sender

Note, this only constraints the message envelope sender, not the
message headers.  With headers you can canonicalize internal forms to
external forms via smtp_generic_maps, but I would strongly recommend
against attempting to reject.

-- 
        Viktor.

Reply via email to