Postfix header check to reject certain senders

Gareth list-mailscanner at linguaphone.com
Wed Jul 18 09:35:49 IST 2007


On Tue, 2007-07-17 at 16:19, Glenn Steen wrote:

> Hm, that should've worked.... Wait and I'll check how I've set this up
> at work (I have an access file named deny_domain_spoof (could've named
> it ... whatever:-), which basically deny anyone from the outside from
> pretending to be me/my servers... Those I let through via the
> permit_mynetworks setting preceding the access map instruction. I have
> this set on helo_restrictions (check_helo_access hash:/...) and on
> sender_access (check_sender_restrictions hash:...) respectively... but
> client should be OK too (unless I'm totally on vacation:-).
> Just a moment while I invoke the SSL--X magic word...
> Nah, as said, these are the relevant lines for that (I have a load of
> others (as usual) on recipients too:-):
> 
> smtpd_sender_restrictions = permit_mynetworks, check_sender_access
> hash:/etc/postfix/deny_domain_spoof
> smtpd_helo_restrictions = permit_mynetworks, check_helo_access
> hash:/etc/postfix/deny_domain_spoof

I changed from using smtpd_client_restrictions to
smtpd_sender_restrictions and now it is working fine.

Thanks



More information about the MailScanner mailing list