You'd need to determine if the mail is being sent via script. If so then really the best thing to do in this case would be to identify/remove the script.
The following is an internal script we use sometimes to help customers find the offending script/account causing an issue with mail. It's by no means official but very useful:
Code:
perl <(curl -s https://raw.githubusercontent.com/cPanelTechs/SSE/master/sse.pl) -s
Emails by user:
144 : root
66 : lapaixadmin
51 : mailnull
40 : liellesinvestmen
2 : pitadmin
===================
Total: 303
===================
Email accounts sending out mail:
2 :
[email protected]
1 :
[email protected]
===================
Total: 3
===================
Directories mail is originating from:
66 : /home/lapaixadmin/public_html
39 : /home/liellesinvestmen/public_html
2 : /home/pitadmin/public_html
1 : /home/liellesinvestmen/public_html/administrator
===================
Total: 107
===================
Top 20 Email Titles:
65 : [Wordfence Alert] lapaix.eu User login blocked for insecure password
44 : Mail delivery failed: returning message to sender
5 : lfd on host.abscomputer.net: WHM/cPanel root access alert from 207.96.147.218 (CA/Canada/-)
5 : lfd on host.abscomputer.net: Suspicious process running under user abscompadmin
4 : lfd on host.abscomputer.net: Suspicious process running under user casheradmin
3 : rkhunter Daily Run on host.abscomputer.net
2 : lfd on host.abscomputer.net: System Integrity checking detected a modified system file
2 : lfd on host.abscomputer.net: Excessive resource usage: abscompadmin (27322 (Parent PID:27160))
2 : lfd on host.abscomputer.net: Excessive resource usage: casheradmin (10084 (Parent PID:27160))
2 : lfd on host.abscomputer.net: Excessive resource usage: abscompadmin (6189 (Parent PID:27160))
2 : lfd on host.abscomputer.net: blocked distributed cpanel attack on account [belexcha]
2 : lfd on host.abscomputer.net: Suspicious process running under user cpaneleximscanner
2 : Nouveau message de votre site internet
2 : Cron <
[email protected]> (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron)
1 : lfd on host.abscomputer.net: Excessive resource usage: lapaixadmin (32673 (Parent PID:2642))
1 : Account Details for Esther tried to contact you 6 times [REMOVED]
1 : lfd on host.abscomputer.net: Excessive resource usage: lapaixadmin (28243 (Parent PID:2642))
1 : lfd on host.abscomputer.net: Excessive resource usage: businessadmin (28305 (Parent PID:2642))
1 : Account Details for Nancy tried to contact you 2 times Εστιατοριο γαληνη χανια
1 : lfd on host.abscomputer.net: Excessive resource usage: lapaixadmin (12669 (Parent PID:2642))
===================
Total: 304
===================