Spam email Accounts Auto Created
I'm using a VPS server hosted over 100+ Domain on.
The problem I'm facing is that it creating auto-new email accounts name smtp****@mydomain.com and smtpfox***mydomain.com these emails sending 1000's of emails on daily basis I'm not sure why and how to prevent it.
1) How I can delete all those emails with any single command that I can run as root.
I tried something like this
cat allaccounts.txt domain=${EMAIL#*@} account=$(/scripts/whoowns $domain) | while read EMAIL;do uapi --user=$account Email delete_pop email=$EMAIL;done
but now luck :-(
2) how I can prevent it in future ,, any suggestion in TweakSettings WHM.
-
@keat63 seems to be on to something. I would encourage you to seek the assistance of a qualified security admin. As for deleting them en masse, there is no readily available function to do so. One would need to - List email accounts on a cPanel account: Delete email address " cPanel & WHM Developer Portal This could be done with a carefully constructed one-liner. I would encourage you to test extensively on a development environment first. 0
Please sign in to leave a comment.
Comments
2 comments