Home | Comics | wishlist | Donations | Impressum | The Book of Postfix | Postfix - Einrichtung, Betrieb und Wartung | 54.81.122.22


How to deny your domain in incoming mails

I want to deny mails which contain From: AND To: AND originate from an IP other than those listed in mynetworks. If user@example.com really needs to send e-mails from the outside, he'll have to use a webmail interface for that or authenticate using SASL.
smtpd_recipient_restrictions = 
   permit_mynetworks 
   permit_sasl_authenticated
   reject_unauth_destination
   check_sender_access hash:/etc/postfix/disallow_my_domain 
and in hash:/etc/postfix/disallow_my_domain you have:

example.com   554 example.com sender? But you're not in mynetworks! 


© by Ralf Hildebrandt
This document contains links to external information sources that I do neither monitor nor control. I explicitly disclaim any liabilities in respect to external references.
You are getting this document without any guarantees. Any methods shown above are meant as demonstration and may be wrong in some place. You may damage your system if you try to follow my hints and instructions. You do this at your own risk!

This file was last modified 18. Feb 2008 by root