Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Delete mail queue In Qmail
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[category:Qmail]] ==Objective== Sometimes we get spam issue with Qmail. The Spammer is able to get the account's password and continuously Relay mails to whole world via this Server . In that case thousands of mail will be in queue. == Methodology for Detection and permanent fix == # First Find the Queue status # Then find out who is spamming # Then find out what account is Compromised . # Then Change the password for that account or delete the account if not required . # Then delete all the mails which has been generated by this spammer # Check the log for no more successful attempts of that spammer. # Check the Damage done in the reputation of outgoing IP via mxtools.com # Possibly , if there are multiple IP's available change the outgoing IP ==Process == First stop qmail vim /etc/inittab SV:123456:respawn:/command/svscanboot # out above line end of file init q For get help of qmHandle qmHandle -h To know which user account has been compromised. this command shows which user sending maximum mail. qmHandle -l |grep From:|sort|uniq -c|sort -nr|head Or can use below for same purpose qmHandle -l|less get message ID qmHandle -m'message ID'|less Please check in header file which user account compromised. Change password for it first and delete mail in queue. You can delete mail from queue using different option to from qmHandle -h (help) For example qmHandle -h'Subject: limited offer' above command will delete all messages in queue that have Subject: limited offer '''Note:->''' Please never apply above commands before stop qmail(mentioned above).
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)