|Main Archive Page > Month Archives > engarde-users archives|
Jeff Knox wrote:
> Basically, it should be able to block all outside mail claiming its from
> the local domain. Postfix should route any mail originating from the
> inside to the inside, without ever sending it to the outside anywhere, so
> it would know then that any mail comming from another mail server claiming
> to be from a domain it handles, is spam, should be fairly trivial. I
> believe thats what this guy wants, and actually I would like it too, i get
> a huge ammount of spam comming from firstname.lastname@example.org. In fact, my
> customers even call me on occation thinking their is a hacker or something
> on my system because of mail comming to them from their user names.
in /etc/posfix create a file called "internal_domains" that looks like:
internal1.domain.com 554 You are an imposter! internal2.domain.com 554 You are an imposter!
then in main.cf in your "smtp_recipient_restrictions" after the "permit_mynetworks" and BEFORE "check_relay_domains" add "check_sender_access hash:/etc/postfix/internal_domains"
and run "postfix reload"
This should reject the mail attempt with the message "You are an imposter!" after checking internal machines in $mynetworks.
Guardian Digital, Inc.