AW: rejecting mail / pattern

Ehle, Roland roland at
Sat Aug 30 14:25:04 IST 2008


no, you cannot use patterns in /etc/mail/access. You can of course do so in the rules-Files of MailScanner. You could build a blacklist based on your pattern ideas.

By the way, if it were mailer daemon mails your customer received, you could easily cope with the problem by using the Watermark function of MailScanner.


Von: mailscanner-bounces at [mailto:mailscanner-bounces at] Im Auftrag von Jan Agermose
Gesendet: Samstag, 30. August 2008 14:04
An: MailScanner discussion
Betreff: rejecting mail / pattern

im not sure if this is mailscanner or a sendmail setting. I want to be able to block mails based on TO-address. I see sometimes one of my customers gets like 5000 mailer daemon mails or maybe just is hit by some spam. Often its to/from something I could easy block if I could use a perl pattern like ".+olga at" or something like this. I know I can do this as part of the "definitly spam" setting and then its blacklisted and stored - but often I simply want to block the mail - like on the MTA level so its rejected and not stored.
Can I do this in Mailscanner or is it sendmail? But if its sendmail - then I cannot use patterns, right? I mean in /etc/mail/access  - I can ofcause write like "olga at                       REJECT" equal to "*olga at".
That would reject 1olga@ and 2olga@ and so on so Im almost there but it would also reject "olga at ..."  and thats not what I want - can I use patterns somehow - stronger patterns than ?
best regards
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list