Skip to main content

Mail server down after chmod chown screw up

Comments

7 comments

  • cPanelMichael
    Hello :) Do you notice any specific error messages in /var/log/exim_mainlog or /var/log/exim_paniclog? You could also try running:
    /scripts/mailperm --verbose
    Thank you.
    0
  • John Donnellon
    discovered that everything was held up in queue . exim_mainlog showed that there was a whole lot of activity over the last three days from two IP addresses. seems that the mail server was hacked and used for spamming.
    0
  • cPanelMichael
    seems that the mail server was hacked and used for spamming.

    Could you elaborate on this? Were you able to determine the source of the SPAM and remove the offending script? Thank you.
    0
  • John Donnellon
    My host ran a scan and sent me a list of files containing suspicious code. Among them was c99.php which was in the public_html directory of one of the accounts. I don't know a whole lot about this script, but I do know it can be pretty bad, giving the would be hacker free reign over the serve. I'm assuming that they got ftp access to this particular account and planted the script. Then used their access to send spam through bogus email accounts. I think I caught it very quickly and won't get blacklisted, but I'm paranoid about security moving forward. I'm mean they could have changed file permissions on critical system files, who knows. Anyone else ever deal with this and have advice?
    0
  • cPanelMichael
    Could you elaborate further on how you are sure that root access was obtained? Is there additional evidence beyond the sent emails? Thank you.
    0
  • John Donnellon
    I really don't have any other evidence than that. I've gone through logs looking for some evidence but I don't know enough about c99 to know where to look.
    0
  • Infopro
    My host ran a scan and sent me a list of files containing suspicious code. Among them was c99.php which was in the public_html directory of one of the accounts. I don't know a whole lot about this script, but I do know it can be pretty bad, giving the would be hacker free reign over the serve. I'm assuming that they got ftp access to this particular account and planted the script. Then used their access to send spam through bogus email accounts. I think I caught it very quickly and won't get blacklisted, but I'm paranoid about security moving forward. I'm mean they could have changed file permissions on critical system files, who knows. Anyone else ever deal with this and have advice?

    You should assume your server has been compromised. Time to set up a new server and move your backups to it. How will you ever know you're safe otherwise? Google that file name...
    0

Please sign in to leave a comment.