Skip to main content

Spam bounces in Exim queue

Comments

4 comments

  • cPanelMichael
    Hello :) It's likely the bounces are from previously sent messages, however I recommend reviewing /var/log/exim_mainlog to see if new messages are still sending out from your server. Thank you.
    0
  • glauco
    Well, thanks for telling me about that log file... I browsed to that location and found that it is a whopping 1.3 GB in size! I guess I will have to download it and open it, though I'm not sure which text program will be able to open a file that large. Would it be safe to delete it, along with exim_mainlog.1.gz which is 183 MB? Meanwhile, I have managed to stop the bounce messages clogging uo the mail queue by blocking the IP addresses of the three spammers (from Russia and Poland) which were showing in the logs. However, they could easily change IP addresses so I don't feel safe yet...
    0
  • cPanelMichael
    You could review active activity in that log with a command such as: tail -f /var/log/exim_mainlog Or, to see the last 500 lines, use a command such as: tail -500 /var/log/exim_mainlog If messages are coming from a specific email address, search it via: exigrep user@domain /var/log/exim_mainlog I do not advise deleting the logs until you are able to verify the source of the SPAM. The size you mentioned is not surprising based on the amount of email sent out. Thank you.
    0
  • euro-space
    You may consider running following as well: If spamming from outside domain then you can block that domain or email id on the server """ vi /etc/antivirus.exim if $header_from: contains "name@domain.com" then seen finish endif """ Shows number of frozen emails """ exim -bpr | grep frozen | wc -l To remove FROZEN mails from the server """ exim -bp | exiqgrep -i | xargs exim -Mrm exim -bp | awk "$6~"frozen" {print $3 }" | xargs exim -Mrm exiqgrep -z -i | xargs exim "Mrm To display the IP and no of tries done bu the IP to send mail but rejected by the server """ tail -3000 /var/log/exim_mainlog |grep "rejected RCPT" |awk "{print$4}"|awk -F[ '{print $2} '|awk -F] "{print $1} "|sort | uniq -c | sort -k 1 -nr | head -n 5 """ Shows the connections from a certain ip to the SMTP server """ netstat -plan|grep :25|awk {"print $5?}|cut -d: -f 1|sort|uniq -c|sort -nk 1 """ To shows the domain name and the no of emails sent by that domain """ exim -bp | exiqsumm | more """ Thanks to serveradminz
    0

Please sign in to leave a comment.