Am 26.02.2015 um 17:58 schrieb Peter Fraser:
Hi All I am completely new to writing rules in Spamassassin and would
love some help. I have a Domain called say domain.com
<http://domain.com> and of course if anyone sends mail from outside the
domain addressed as coming from u...@domain.com <mailto:u...@domain.com>
it should be spam. I want to block all these as spam except if it is
coming from a set of IP addresses. Anyone ever done this before or could
help me with this?

this belong in the MTA and not in the content scanner

smtpd_recipient_restrictions =
 permit_mynetworks
 permit_sasl_authenticated
 check_sender_access hash:/etc/postfix/spoofing.cf

[root@localhost:~]$ cat /etc/postfix/spoofing.cf
thelounge.at REJECT Sender Spoofed
thelounge.net REJECT Sender Spoofed

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to