Guest User

Untitled

a guest
Oct 30th, 2017
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. Login to the server via ssh
  2.  
  3. Then if you get blacklisted due to large bounce back emails
  4.  
  5. then run this command
  6.  
  7. sudo zgrep info@mcil.in /var/log/exim_mainlog* | grep 2017-07-15 | grep "<>"
  8.  
  9. if due to cloudmark then
  10.  
  11. sudo zgrep vimalv@hutgroup.in /var/log/exim_mainlog* | grep 2017-06-24 | grep CMAE
  12.  
  13. Note - make sure to change the date that you see when you run the blacklisted command
  14.  
  15. Eg - sudo grep info@mcil.in /var/log/scripts/bklist_activate_mail.log
  16.  
  17. Check the logs after running the commands sudo zgrep info@mcil.in /var/log/exim_mainlog* | grep 2017-07-15 | grep "<>" or sudo zgrep vimalv@hutgroup.in /var/log/exim_mainlog* | grep 2017-06-24 | grep CMAE
  18.  
  19. For bounceback or CMAE
  20.  
  21. you will get a list of logs
  22.  
  23. then make sure you select the ID that you see in R=
  24.  
  25. For eg - /var/log/exim_mainlog-20170716.gz:2017-07-15 08:58:25 1dWIu9-004HLx-0t <= <> R=1dWIu5-004Gyc-19 U=mailnull P=local S=2742 T="Mail delivery failed: returning message to sender" for info@mcil.in
  26.  
  27. Here R=1dWIu5-004Gyc-19
  28.  
  29. Then run the command accordingly
  30.  
  31. sudo zgrep 1dWIu5-004Gyc-19 /var/log/exim_mainlog*
  32.  
  33. then check the log and accordingly inform the cx the reason for the same.
  34.  
  35. then ask the cx for assurance to stop the practises.
  36.  
  37. then ask him to change the password.
  38.  
  39. to check if he has changed the password
  40.  
  41. For eg - sudo grep mcil.in /usr/local/cpanel/logs/access_log | grep passwd
  42.  
  43. Eg log for the same would be
  44.  
  45. 122.172.182.224 - info%40mcil.in [07/19/2017:07:53:05 -0000] "POST /cpsess8033794537/webmail/x3/mail/dopasswdpop.html HTTP/1.1" 200 0 "http://mcil.in:2095/cpsess8033794537/webmail/x3/mail/passwdpop.html?redirectdomain=&email=info&domain=mcil.in" "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" "s" "-" 2095
  46.  
  47. You see info@mcil.in
  48.  
  49. Then activate the email id from here
  50.  
  51. sudo /usr/local/scripts/techsupp_helper_scripts/abuse_handling_scripts/bklist_activate_mail.sh --activate (email)
  52.  
  53. Put the email id towards the end
  54.  
  55. then hit enter
  56.  
  57. Successfully activated outgoing mail functionality for Email account info@mcil.in!!!
Add Comment
Please, Sign In to add comment