How do I use qmqtool to list emails from a specific envelope sender?
Posted
by
jimp
on Server Fault
See other posts from Server Fault
or by jimp
Published on 2012-10-11T15:25:04Z
Indexed on
2012/10/11
15:38 UTC
Read the original article
Hit count: 287
Occassionally a user's email password will become compromised and the spammer will flood the Qmail queue with 10,000+ emails sent through a specific user's account. I know how to use qmqtool
to remove messages that match a specific string:
qmqtool -d -f "[email protected]"
However the -f
argument matches anywhere in the message.
-f 'STRING' display comma separated list of message number(s) containing STRING.
That means messages to, from, and even mentioning that email address will all be deleted. Does qmqtool
(or another qmail tool) have a command for matching messages from a specific envelope sender?
Note: I only want to match the authenticated sender, not the "From:" which is always forged in this case anyway.
© Server Fault or respective owner