postfix-users May 2014 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Configure postfix to reject forged mail?

Re: Configure postfix to reject forged mail?

From: Wietse Venema <wietse_at_nospam>
Date: Wed May 07 2014 - 13:56:15 GMT
To: Sebastian Nielsen <>

Sebastian Nielsen:
[ Charset UTF-8 unsupported, converting... ]
> I tried with the following:
> smtpd_relay_restrictions = reject_unlisted_sender, permit_mynetworks,
> reject_unauth_destination
> But didnt work, mail from ?unlisted? domains are accepted through.
> My domain is

reject_unlisted_sender works exactly as documented: reject unknown
recipients in KNOWN DOMAINS (mydestination, virtual_alias_domains,
virtual_mailbox_domains, or relay_domains).

To reject recipients in UNKNOWN DOMAINS use reject_unknown_sender_domain.