Skip to main content

Determine if Email account or server hacked

Comments

4 comments

  • cPanelMichael
    Hello :) Search for the email address in /var/log/exim_mainlog using the "exigrep" utility to get a better idea of how the messages were sent out. EX: exigrep user@domain /var/log/exim_mainlog
    Also, if any of the messages are still in the queue, view the headers with a command such as: exim -Mvh messageID
    Thank you.
    0
  • Bestrafung
    [quote="cPanelMichael, post: 1649822">Hello :) Search for the email address in /var/log/exim_mainlog using the "exigrep" utility to get a better idea of how the messages were sent out. EX: exigrep user@domain /var/log/exim_mainlog
    Also, if any of the messages are still in the queue, view the headers with a command such as: exim -Mvh messageID
    Thank you.
    Thanks for the response. I changed the password for that account but after 20 minutes or so the spammers were at it again. I'm running a ClamAV scan on the user's home directory now. The client has already run full AV and malware scans on all workstations used to access this account. I'm still not sure what is going on. I'll include a sample output from "exigrep user@domain /var/log/exim_mainlog" as soon as scan finishes and the load returns to acceptable levels.
    0
  • coroy
    Me also encountered this kind of problem. Is there any command determine what file is executing or sending an email? Thank you.
    0
  • triantech
    Hello, - To list the folders from which mails can be generated ( will include valid scripts too ) # awk '{ if ($0 ~ "cwd" && $0 ~ "home") {print $3} }' /var/log/exim_mainlog | sort | uniq -c | sort -nk 1 - To list which mail account is reporting highest activity : # exim -bpr | grep "<*@*>" | awk '{print $4}'|grep -v "<>" | sort | uniq -c | sort -n
    0

Please sign in to leave a comment.