after of use "whmapi1 suspend_outgoing_email user=cpaneluser" user continue sending email

000

Well-Known Member
Jun 3, 2008
434
19
68
hi,

we run:
Code:
grep usercPanel /var/log/exim_mainlog | grep -E '<=' | wc -l
3475
(becouse we don't use date then get values of TODAY, true?

from How to Mass suspend or unsuspend mailboxes of a domain we get
If you wish to suspend the entire domain, you can use

whmapi1 unsuspend_outgoing_email user=example
then we run
Code:
whmapi1 suspend_outgoing_email user=usercPanel
and 1 hour after:
Code:
grep usercPanel /var/log/exim_mainlog | grep -E '<=' | wc -l
5286
and 10 minutes after:
Code:
grep usercPanel /var/log/exim_mainlog | grep -E '<=' | wc -l
5311
how we can STOP output of email for domain complet?


Thanks
 

andrew.n

Well-Known Member
Jun 9, 2020
631
182
43
EU
cPanel Access Level
Root Administrator
After you suspend the account restart exim and dovecot as well from WHM just to be sure. If the spamming continues then the spam is coming from another account :(
 

000

Well-Known Member
Jun 3, 2008
434
19
68
After you suspend the account restart exim and dovecot as well from WHM just to be sure. If the spamming continues then the spam is coming from another account :(
Thanks @andrew.n cPanel say this is LOG of messages, no LOG of output.

Please, some command to get record of real OUTPUT messages?
 

andrew.n

Well-Known Member
Jun 9, 2020
631
182
43
EU
cPanel Access Level
Root Administrator
I would just see the total of number of emails with "exim -bpc" and monitor if it increasing or not. If you see high number of messages there then the spam is still ongoing.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,462
1,004
313
cPanel Access Level
Root Administrator
It's possible that you're seeing failed messages being retried, which would add a new entry to the log file. The "exim -bpc" command would show the total number of messages in the queue, so that would let you know if new messages are really being added.
 

000

Well-Known Member
Jun 3, 2008
434
19
68
thanks,with wich command we can get "total of MESSAGES really OUTGOING of server" ?
 

andrew.n

Well-Known Member
Jun 9, 2020
631
182
43
EU
cPanel Access Level
Root Administrator
exim -bpc is listing the currently in queue total messages which are waiting to be sent out by exim.
 
  • Like
Reactions: cPRex

000

Well-Known Member
Jun 3, 2008
434
19
68
exim -bpc is listing the currently in queue total messages which are waiting to be sent out by exim.
Tanks by your help Andrew.n.
Code:
grep usercPanel /var/log/exim_mainlog | grep -E '<=' | wc -l
1500
return 1500, but that no't is correct becouse 1490 messages have:
Code:
Domain user.com.co has an outgoing mail suspension.  Message discarded.
then really we want obtain value 10, by example, becouse the others 1490 messages is stopped by exim becouse:
Code:
Domain user.com.co has an outgoing mail suspension.  Message discarded.
. . . some command to we get the value 10 ? (that is "real messages outgoing").
 

000

Well-Known Member
Jun 3, 2008
434
19
68
then how we can obtain the REAL COUNT of emails outgoing without include the emails RETAINED by system?,
no is possible?