Unfortunately, there's no way I've found to blacklist a sending domain within policyd. You can blacklist IP ranges.

If you want to prevent an entire domain from sending you email, then the best way to do that is in Postfix itself.

I do this by using a sender_checks file from within Postfix, then putting into that file:

/cmpgnr\.com$/             554 Rejected, go away spammer!

You can edit with whatever message you'd like to send.

To activate a sender_checks file, you would put the following in main.cf:

smtpd_recipient_restrictions =
     check_sender_access regexp:/etc/postfix/sender_checks

Then just create a file in /etc/postfix/sender_checks and put the above in it, then reload Postfix.

-Rob

On Jan 5, 2007, at 10:43 AM, Dave Augustus wrote:

I have a user which gets daily UCE from cmpgnr.com .

With policyd, how would I BLACKLIST this domain and all its subdomains?


Thanks,
Dave


---------------------------------------------------------------------- ---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php? page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

--
Robert A. Pickering Jr.              SixDoes IT Solutions

"I just the other day got, an internet was sent by my staff at 10 o'clock in the morning on Friday and I just got it yesterday. Why? Because it got tangled up with all these things going on the internet commercially." -- Sen. Ted Stevens (R-Alaska)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to