[Mailman-Users] Re: blocking spam

Chris Wiegand chrisw at signalbhn.org
Fri May 31 16:50:41 CEST 2002


Yeah, the way I do it is add to the main.cf:

header_checks=regexp:/etc/postfix/header_checks

And then my file looks like this:

/^From:.*best20deals\.com/ REJECT Spam detected - this domain is blocked.
/^From:.*internetcheapskate\.com/ REJECT Spam detected - this domain is
blocked.
/^From:.*fabulousrewards\.com/ REJECT Spam detected - this domain is
blocked.

The \ makes the period stay a period. It's PCRE, in case you're familiar
with that.

-----Original Message-----
From: Lewis Lau [mailto:WTLEWIS at cityu.edu.hk]
Sent: Thursday, May 30, 2002 21:29
To: Krishna Rao SN; mailman-users at python.org
Subject: Re: [Mailman-Users] Re: blocking spam



Is that possible to do the same thing like this in Postfix?

Lewis

At 02:30 PM 5/31/02 +0530, Krishna Rao SN wrote:

> >How can I block all the e-mails coming from a certain domain? How can I
> block a
>ll the e-mails
> >coming from lycos.co.kr or korea.com, for example?
>
>If you are using Linux and sendmail, the solution is
>
>1. edit /etc/mail/access
>    add the following line
>    lycos.co.kr<tab>  550 No spam allowed here
>    korea.com<tab>    550 No spam allowed here
>
>2. create access.db with the following command
>
>    makemap hash access.db < access
>
>2. restart sendmail
>
>--krishna
>
>
>------------------------------------------------------
>Mailman-Users mailing list
>Mailman-Users at python.org
>http://mail.python.org/mailman/listinfo/mailman-users
>Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py




------------------------------------------------------
Mailman-Users mailing list
Mailman-Users at python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py









More information about the Mailman-Users mailing list