Skip to main content

Spam bypassing RBL check

Comments

9 comments

  • SysSachin
    You are the root administrator of your server so can you please try to check this mail logs with the following command and update here.
    grep 1cCHJz-0002b8-PU /var/log/exim_mainlog
    0
  • pwaara
    You are the root administrator of your server so can you please try to check this mail logs with the following command and update here.
    grep 1cCHJz-0002b8-PU /var/log/exim_mainlog

    Thanks for the reply. Here's what I got.
    grep 1cCHJz-0002b8-PU /var/log/exim_mainlog 2016-11-30 16:42:04 1cCHJz-0002b8-PU <= someusr@cough.example.top H=(things.domain.top) [91.219.238.138]:37755 P=esmtp S=5214 id=1174000610155115-312e6f7047660fe791a0b936ca7b1815christine@domain.com T="some title here." for christine@domain.com 2016-11-30 16:42:04 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1cCHJz-0002b8-PU 2016-11-30 16:42:04 1cCHJz-0002b8-PU => christine R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 AR4XJfyNP1j1JgAAfcuP6A Saved" 2016-11-30 16:42:04 1cCHJz-0002b8-PU Completed
    0
  • pwaara
    Anyone? The most suspicious thing I see is that all the spam that is getting through is authenticated as localdelivery, which will immediately accept the message, therefore bypass the RBL check. The question is, why is are the spam emails getting marked as local delivery? Anyone have any ideas? I've been researching this one for days, and I'm stuck.
    0
  • cPanelMichael
    -11-30 16:42:04 1cCHJz-0002b8-PU <= someusr@cough.example.top

    Hello, Is this the username of an account on the system? If so, it's possible the messages are coming from a script installed on the account. The following command may help you better determine where the email is coming from:
    awk '$3 ~ /^cwd/{print $3}' /var/log/exim_mainlog | sort | uniq -c | sed "s|^ *||g" | sort -nr
    This will list the source and the number of messages from each source. Thank you.
    0
  • pwaara
    Hello, Is this the username of an account on the system? If so, it's possible the messages are coming from a script installed on the account. The following command may help you better determine where the email is coming from:
    awk '$3 ~ /^cwd/{print $3}' /var/log/exim_mainlog | sort | uniq -c | sed "s|^ *||g" | sort -nr
    This will list the source and the number of messages from each source. Thank you.

    No, the source of the spam is definitely not one of the scripts. All accounts only sending a handful of emails. The only entry that has any significant email is
    1075 cwd=/var/spool/exim
    Any other ideas? I've been digging for days and can't find anything.
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here and we will update this thread with the outcome. Thank you.
    0
  • pwaara
    Support ticket created. ID 8043639. Thanks.
    0
  • pwaara
    After much investigation, it appears that everything is actually working as intended. What was confusing was that IP addresses that were on RBLs were delivering mail. After closely watching the logs and the RBLs, what appears to be happening is that a spam email gets delivered as the IP address is not on the checked RBLs, but a few seconds later that IP address shows up on the RBL and subsequent emails are not delivered. Either the RBLs were incorrectly reporting that the IP was not on the list or the IP got added quickly after the first fail. As more and more of the IPs are getting listed, fewer spam emails are getting through. Plus, a large majority of the spam was coming from .top TLD domains, so I added a filter to reject anything from *.top. Not sure if this will help anyone, but I wanted to let everyone who runs into similar issues what happened with me.
    0
  • cPanelMichael
    Hello, Thank you for taking the time to update this thread with the outcome. I'm marking this thread as resolved.
    0

Please sign in to leave a comment.