Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    8

    Default with :fail:, some bounce messages still being sent

    Hello CPanel-ers,

    I am having an issue with Exim sending bounce e-mail messages.

    The problem:
    When anyone sends mail to a non-existent address, Exim is still generating a bounce email. (the queue is filled with them)

    I expect this is because they are sending the mail in the correct fashion:
    Spammer -> Our external MX servers (whitelisted) -> CPanel box

    However, I thought :fail: would prevent ANY bounces from being sent, regardless of the circumstances.

    Here is the setup:
    - The CPanel server is the outgoing mail server, which sends mail directly out to recipients
    - All incoming mail is sent to an external MX server for filtering and then the mail is forwarded to the CPanel server for each users' mailbox.
    - Users POP3 directly into the CPanel box to receive their mail.

    Here are a few of the important config settings:
    - All non-existent e-mail addresses are set to :fail:, both at the global level in WHM and on the specific account we have running on the server.
    - The external MX servers are added to "Whitelist: Trusted Mail Hosts/Ip Blocks"
    - I added a special ACL setting in Exim that denies any other external servers from trying to send mail directly to the CPanel server (spammers try that all the time). They get a 550 error if they try.

    Does anyone have any ideas on how to stop the bounce emails?
    Last edited by Samuraid; 01-30-2008 at 12:33 PM.

  2. #2
    Member
    Join Date
    Apr 2006
    Posts
    8

    Default

    In case anyone else runs into something like this in the future...


    I solved this issue by moving this configuration statement:
    Code:
    #recipient verifications are required for all messages that are not sent to the local machine
      #this was done at multiple users requests
      require verify = recipient
        message = "The recipient cannot be verified.  Please check all recipients of this message to verify they are valid.  Details: $acl_verify_message"
    and placing it ABOVE the [% ACL_WHITELIST_BLOCK %] and other whitelist verifications.

    The server now seems to be correctly sending 550 errors on bad addresses instead of trying to send bounces.

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    199

    Default

    Without having access to the mail server(s) involved, here are a few things to try:

    1. See http://www.root0.net/script/spamcheck_ip.html and http://www.root0.net/script/index.html (Find out spammer IPs link).

    This may be helpful in tracking abusive IP's which can then be blocked in the firewall.

    2. If you have not already blocked TCP port 113 incoming, then please do so.

    3. You may already know these, but some helpful netstat commands (which can be modified as you desire):

    # Provide a list of IP's connecting to port 25 along with how many connections
    netstat -ntu | grep ':25' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort

    # Check for possible syn floods against port 25
    netstat -an | grep SYN | grep :25 | sort

    # Overall count of port 25 connections
    netstat -nap | grep :25 | wc -l

    # Provide a list of connection IP's by count
    netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

    maybe chirpy can right something us for us on this matter...

Similar Threads & Tags
Similar threads

  1. Exim Bounce messages
    By Dudesayswhat in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-05-2006, 06:08 PM
  2. Using filters to bounce messages
    By ericjay in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-04-2006, 05:38 AM
  3. Filtering bounce messages
    By dougsonos in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-13-2004, 11:51 PM
  4. :fail: does not bounce
    By Sumsar in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-14-2003, 08:47 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube