KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:how-can-i-check-if-my-cpanel-server-has-any-test-email-accounts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
control-panels:cpanel-whm:how-can-i-check-if-my-cpanel-server-has-any-test-email-accounts [2016/10/07 08:47]
Daniel P. [Find test email accounts on cPanel servers]
control-panels:cpanel-whm:how-can-i-check-if-my-cpanel-server-has-any-test-email-accounts [2020/06/02 08:05] (current)
Karson N.
Line 1: Line 1:
 ====== Checking a server for "test" email accounts ====== ====== Checking a server for "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 test@domain.tld email accounts is a great security precaution. +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 test@domain.tld email accounts is a great security precaution. 
 + 
 +\\
 ===== Find "test" email accounts on cPanel servers ===== ===== Find "test" email accounts on cPanel servers =====
   - Login to your server via SSH as the root user.   - Login to your server via SSH as the root user.
   - Copy and paste this nifty one line command into the terminal:   - Copy and paste this nifty one line command into the terminal:
-    - ''grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}%%'%%''+<code> 
 +  grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}%%'%% 
 +</code> 
   - If any test email accounts exist, you should see output similar to this:   - If any test email accounts exist, you should see output similar to this:
-    * <code>grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}' +<code> 
-test@knownhost.com email address exists!</code>+  grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}' 
 +test@knownhost.com email address exists! 
 +</code>
  
 You can search for other possible email aliases, such as "testing@domain.tld" instead of test by replacing 'test' with 'testing' in the one liner. You can search for other possible email aliases, such as "testing@domain.tld" instead of test by replacing 'test' with 'testing' in the one liner.
control-panels/cpanel-whm/how-can-i-check-if-my-cpanel-server-has-any-test-email-accounts.1475848073.txt.gz · Last modified: 2016/10/07 08:47 by Daniel P.