Home | Comics | Gallery | (Amazon| ThinkGeek) wishlist | Donations | Impressum | The Book of Postfix | Postfix - Einrichtung, Betrieb und Wartung | Blog
smtpd_recipient_restrictions = check_client_access cidr:/etc/postfix/mynetworks reject_unauth_destination ... more restrictions ...and in /etc/postfix/mynetworks we have:
141.42.0.0/16 check_for_valid_sender 141.43.0.0/16 check_for_valid_sender 193.175.16.0/24 check_for_valid_sender
... since we want to force our clients to use a valid email address. Then we define some smtpd_restriction_classes:
smtpd_restriction_classes = check_for_valid_sender check_for_valid_sender = check_sender_access hash:/etc/postfix/valid_senders check_sender_access regexp:/etc/postfix/nice_reject.regexp
Actually, nice_reject is just fancy, but users like a good error message! A simple reject would also work.
/etc/postfix/valid_senders contains:
<> OK valid.sender@example.com OK another.valid.sender@example.com OK
We need to use smtpd_null_access_lookup_key -- which defaults to <>, since a bounce is a valid sender address!
/etc/postfix/nice_reject.regexp contains:
/./ 554 Please use an existing sender address!
This file was last modified 16. Apr 2007 by root