[Mailman-Users] Re: blocking spam

Albert Medina Banda albertmb2001 at yaravi.unsa.edu.pe
Fri May 31 18:44:44 CEST 2002


Hello, how can i do this with qmail??
thanks,


> 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


 






More information about the Mailman-Users mailing list