Skip to main content

How to ensure Exim is only script sending out mail

Comments

6 comments

  • NOC_Serverpoint
    Hi, It's seems the mail sending from account using php mail script. I think there is infected file under the account which is sending mails. Please try running the following command: grep cwd /var/log/exim_mainlog|grep -v /var/spool|awk -F"cwd=" '{print $2}'|awk '{print $1}'|sort|uniq -c|sort -n Following command that will show you the script which is using script to send the email. If it is from php then use # egrep -R "X-PHP-Script" /var/spool/exim/input/* Also please check the below article: How to Prevent Email Abuse - cPanel Knowledge Base - cPanel Documentation
    0
  • Jcats
    Check out this thread as well, it may be of some use to you. Spam emails being sent from cPanel account
    0
  • sktest123
    guess SMTP restrictions at whm is a nice option
    0
  • cPanelMichael
    Hello, In addition to the previous posts, you may also find this document helpful (referenced earlier in this thread) for preventing email abuse in the future:
    0
  • mikefromnz
    Thanks all, logs all checked out OK and SMTP is forced to send out from Exim no matter what the source via our CFS firewall. Seems it was some SPF record issues that caused the problem with Spamhaus, all sorted now. Cheers for the help
    0
  • cPanelMichael
    Seems it was some SPF record issues that caused the problem with Spamhaus, all sorted now. Cheers for the help

    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.