Delete email starting with mail@, uucp@
David Jourard
support at bytesinteractive.com
Thu Mar 27 20:27:11 GMT 2008
Matt Kettler wrote:
> David Jourard wrote:
>> Hi,
>>
>> I just upgraded MailScanner from an older version I had running.
>>
>> I had a bunch of rules I setup in spam.blacklist.rules
>>
>> Example:
>>
>> FromOrTo: root at clientdomain.com yes
>> FromOrTo: mail at clientdomain.com yes
>> FromOrTo: uucp at clientdomain.com yes
>> FromOrTo: info at clientdomain.com yes
>>
>> They were being deleted.
>>
>> They are now getting delivered.
>>
>> What parameters do I need to set so that they get deleted.
>
> Any reason you're doing this at the MailScanner layer?
Ignorance
>
> If you're just going to delete it, save your network the bandwidth of
> receiving it and just 550 it at the MTA layer.
This sounds like a wonderful solution.
>
> For example, in sendmail you'd edit /etc/mail/access and add:
> root at clientdomain.com REJECT
> mail at clientdomain.com REJECT
> uucp at clientdomain.com REJECT
> info at clientdomain.com REJECT
>
> Then run make in /etc/mail/ directory to rebuild access.db from the
> access text file.
What command do I use. Is it makemap hash (like I've been doing for
virtualusertable).
Do I need to restart MailScanner (which also restarts sendmail).
>
> Poof, no more mail to or from that address will ever be accepted by
> your MTA.
>
This would be great.
David J.
More information about the MailScanner
mailing list