engarde-users July 2002 archive
Main Archive Page > Month Archives  > engarde-users archives
engarde-users: [EnGarde] Re: Postfix - rejecting spoofed mail fr

[EnGarde] Re: Postfix - rejecting spoofed mail from:

From: John W. Cahill Jr. <jwcahill_at_nospam>
Date: Mon Jul 08 2002 - 19:28:17 GMT
To: EnGarde Users List <engarde-users@engardelinux.org>


On Mon, 2002-07-08 at 14:28, Pete O'Hara wrote: Pete,

> >
> Try this:
> 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!
>
> postmap hash:/etc/postfix/internal_domains
>
> 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.

Worked like a charm!!

Thanks man, I almost had it with a hash:/etc/postfix/allowed_access, but just couldn't quite get it. :<

John

>
-- <<<<<<<<<<<<<<<<<<<<->>>>>>>>>>>>>>>>>>>> < John W. Cahill Jr. > < jwcahill AT gonetinnovations DOT com > < > <I'm a fool for Jesus, who's fool are u?> < <>< ><> > <<<<<<<<<<<<<<<<<<<<->>>>>>>>>>>>>>>>>>>> -- Attached file included as plaintext by Ecartis -- -- File: signature.asc -- Desc: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA9KefneZvc3RQV5sERAo3BAJ91E6oBEP6gtNRYiDzrZr8fFy1j/gCfXcwz g8GIZAETjPXWQVOj2pQ3rAc= =EVc5 -----END PGP SIGNATURE----- ------------------------------------------------------------------------ To unsubscribe email engarde-users-request@engardelinux.org with "unsubscribe" in the subject of the message.