Actually, whitelist_from_rcvd takes two parameters requires *both* a from line AND a received server match. It's not just a whitelisting of all mail delivered via a given server.

what you want would be blacklist_rcvd.. not blacklist_from_rcvd.

Unfortunately there's no direct support via whitelists and blacklists for accepting or blocking an entire server. All of the current whitelist/blacklist rules require a to or from line match. However you can do one of 2 things to get the effect you desire.:

1) reject all mail from the server using /etc/mail/access. This causes your MTA (sendmail in most cases) to refuse delivery of email from a given server, domain, etc.

2) create a quick SpamAssassin rule that matches their server. The following will effectively blacklist any email which has a Received header indicating it passed thru a mailserver belonging to example.com.

header MY_BLACKLISTED_RCVD Received =~ /example.com/i
describe MY_BLACKLISTED_RCVD custom rule
score MY_BLACKLISTED_RCVD 100

At 11:34 AM 10/31/2002 -0800, David Brossard wrote:

I would very much like to blacklist email coming from a particular server. Problem is they use a different from address every time for blacklist_from will not catch it. Is there a way to do a blacklist_from_rcvd *.lamailer.com similar to the whitelist_from_rcvd?


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to