Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SMTP timed out when apf enabled...

Discussion in 'E-mail Discussion' started by replay147, Oct 9, 2009.

  1. replay147

    replay147 Member

    Joined:
    Sep 3, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    Some e-mails cannot be sent through the server while the APF is enabled. In the logs "connection timed out" message appears. No contact is established with the smtp server of the sent party. When I turn off the AFP mails are sent on a normal basis.

    I write down the IP addresses of SMTP server's that do not receive mail to the allow list of the AFP, however the problem does not resolve.

    Does anyone have any suggestions..
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    Kindly provide me the exact logs of the error message you are receiving. You can check the logs from the /var/log/error_log. Make sure that the SMTP port address 35 and 587 are not blocked in your firewall.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I suggest having your Systems Administration team temporarily enable the following two options in APF to help identify dropped packets by your firewall:
    Code:
    ##
    # [Logging and control settings]
    ##
    # Log all traffic that is filtered by the firewall
    LOG_DROP="0"
    
    # Extended logging information; this forces the output of tcp options and
    # ip options for packets passing through the log chains
    LOG_EXT="0"
    Once that is done, I would restart APF using it's init script:
    Code:
    # /etc/init.d/apf restart
    You may then use a command such as the following to monitor your firewall logging of dropped packets when testing outbound e-mail:
    Code:
    # tail -fvn0 /var/log/messages
    For example, you could start the above command to watch the syslog followed by a test of your normal outbound e-mail sending to an externally-hosted server.

    Please note that APF is a third-party product and so to receive formal support for it you will need to contact the vendor from where it was obtained; a direct link to the vendor site is listed below.

    Additional reference & resources:
    Advanced Policy Firewall | R-fx Networks
    APF firewall - Google Search
    http://forums.cpanel.net/f7/third-party-applications-available-cpanel-whm-106785.html
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice