postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Unknown domain senders

Re: Unknown domain senders

From: Wietse Venema <wietse_at_nospam>
Date: Wed Oct 06 2010 - 12:03:28 GMT
To: Postfix users <postfix-users@postfix.org>

varad gupta:
> Hi All
>
>
> We have a requirement where we need to reject senders if they are not
> present in our ldap virtual domains.
>
> Scenario =>
>
> postfix 2.5 with openLDAP (with various virtual domains)
>
> Problem Description =>
>
> Unknown senders (mail ids that are not present in LDAP) are able to send
> mails to recipients in these domains. (Relaying is blocked of course for
> external domains)
>
>
> Requirements =>
>
> A user (not present in LDAP) should be blocked from sending mails.
>
> Challege =>
>
> We cannot apply check_sender_access based on LDAP as that would lead genuine
> mails from external domains also being rejected
>
> CAn you suggest a parameter which can accomplish this, or we need to write
> our own policy for this ?

See:

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

        Wietse