Don't send back spam to spammers: their To: emails are usually wrong,
and you'd get back bounces.

The only good choice should be to stop relaying openly.
As for the present queue, you can program a perl script to open
any file in /var/qmail/queue/ recursively, and deletes any file
containing certain strings. A few lines Perl script, in fact.

Good luck.

Milivoj Ivkovic wrote:
> 
> A spammer is using my mail server. (I know, it shouldn't be an open relay
> but I'll get back to this later).
> 
> qmail has many messages in the queue. I would like to redirect all the
> messages in the queue to a Perl filter. The filter would check if it's one
> of the spams. Now:
> 
> Valid mail would go back to the queue or be delivered instantly.
> 
> Spam would either be removed from the queue, or (and I like this better)
> sent back to the spammer (his e-mail is in the To: header). He seems to be
> connected through dial-up, so there's a chance of annoying him with sending
> everything back to him.
> 
> I know Perl well, but am not very experienced with Unix and qmail.
> 
> Thanks for any help.
> 
> Milivoj

Reply via email to