OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Reject unknown Sender address

From: Wietse Venema (wietseporcupine.org)
Date: Fri Jun 01 2007 - 14:39:04 CDT


Dave McGuire:
> > /etc/postfix/main.cf:
> > smtpd_recipient_restrictions = reject_non_fqdn_sender
> > reject_non_fqdn_recipient
> > reject_unlisted_recipient
> > reject_unlisted_sender
> > permit_sasl_authenticated
> > permit_mynetworks
> > reject_unauth_destination
> > [...]
>
> Wow, I was just thinking of a solution to this problem today,
> thanks! :-) I have one question about this, though.
>
> My installation has many wildcard entries of the form
> 'domain.com', with no username component, in relay_recipient_maps.
> Will those entries work as expected (i.e., as wildcards) when used by
> smtpd_reject_unlisted_sender? I would guess yes, but since it's not
> explicitly stated in the documentation, I'm nervous about enabling it
> on the production system without checking first.

You know, I am a lazy person, and when I implemented this, I used
the exact same address validation routines for reject_unlisted_sender
and for reject_unlisted_recipient. The only difference is in whether
I give them the sender or the recipient.

        Wietse