How can I check if my cPanel server has any "test" email accounts?

Test email accounts are typically a security vulnerability. Originally made with an initial purpose of testing, many times with a weak or insecure password and then forgotten about. Regularly checking your server for [email protected] email accounts is a great security precaution.

Find "test" email accounts on cPanel servers

  1. Login to your server via SSH as the root user.
  2. Copy and paste this nifty one line command into the terminal:
    1. grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}'
  3. If any test email accounts exist, you should see output similar to this:
    • grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}'

You can search for other possible email aliases, such as "[email protected]" instead of a test by replacing 'test' with 'testing' in the one-liner.

  • 0 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

I'm unsure what to put as IP for the resolver configuration in WHM

Please leave default IPs in resolver configuration to give your VPS the best DNS performance...

Is there a way to limit bandwidth for a sub domain or cPanel account for one of our domains?

CPanel allows you to set the bandwidth limit for each account, once you reach the bandwidth...

Powered by WHMCompleteSolution