Still spam after suspended account?

tquang

Member
Sep 22, 2011
11
0
51
cPanel Access Level
Root Administrator
If you have problem like as my title of this thread, you same me. And here my step prevent a bit (maybe ok with me but not with you, I'm sorry if so)

S1: Install CSF for CPanel
Edit /etc/csf/csf.conf:
SMTP_BLOCK = "1"
SMTP_ALLOWLOCAL = "1"
SMTP_PORTS = "25,465,587"
SMTP_ALLOWUSER = "cpanel"
SMTP_ALLOWGROUP = "mail,mailman"

Then reload CSF: csf -r

S2: Remove all mail data of account suspended, example with user name KiemTra
rm -rf /home/KiemTra/mail/KiemTra.vn/info/cur/*
rm -rf /home/KiemTra/mail/KiemTra.vn/info/new/*


S3: Remove all mail data of exim (I think in spam case, we want to remove all for reduce load server)
rm -rf /var/spool/exim/input/*
rm -rf /var/spool/exim/msglog/*


Done, sorry if i'm wrong. Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Typically, you can restart Exim after suspending an account to prevent additional SPAM from sending out. Note that removing all messages in your queue is not a good idea because there is likely legitimate email in the mail queue.

Thank you.