Question about rejecting email

David Jourard davidj at
Tue Feb 8 03:19:48 GMT 2011


Thanks for your help.


I created a file called spam.blacklist.rules 


I added a rule like so just to test it out


From: exampleemail98234 at and To: *     yes


I updated the MailScanner.conf file setting the 

Is Definitely Spam = %rules-dir%/spam.blacklist.rules


I then sent an email from my gmail account to a specific address which is
mine to see if it would indicate that it was spam.


It came in and not marked.


The thing is I actually want it to reject it or delete it but when I set
delete as the value in the rules file I get an error message from


  Syntax error in line 1 of ruleset file
/etc/MailScanner/rules/spam.blacklist.rules at
/usr/lib/MailScanner/MailScanner/ line 2444


Thanks for any help.  BTW the MTA is postfix



David j.



From: mailscanner-bounces at
[mailto:mailscanner-bounces at] On Behalf Of Martin
Sent: February 4, 2011 5:48 AM
To: MailScanner discussion
Subject: Re: Question about rejecting email


Depends on the MTA for a reject..

you can create a rule in MailScanner.conf against "Is Definitely spam" so
emails get discarded if to customer and from badperson - you can also
overload these rules quite nicely (search on the wiki for overload)

Martin Hepworth
Oxford, UK

On 3 February 2011 21:27, David Jourard <davidj at> wrote:


I have mailscanner running for a while and haven't work with it for awhile.

Today a customer asked me to reject email for his email address coming from
email that ends in somename at somedomain.xx  where xx is a particular county
he is getting a lot of spam.

Could someone guide me on how to create a ruleset for this request.

David J.

MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website!


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list