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

    Sep 3, 2009
    Likes Received:
    Trophy Points:
    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

    May 9, 2008
    Likes Received:
    Trophy Points:
    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

    Nov 5, 2008
    Likes Received:
    Trophy Points:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    I suggest having your Systems Administration team temporarily enable the following two options in APF to help identify dropped packets by your firewall:
    # [Logging and control settings]
    # Log all traffic that is filtered by the firewall
    # Extended logging information; this forces the output of tcp options and
    # ip options for packets passing through the log chains
    Once that is done, I would restart APF using it's init script:
    # /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:
    # 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
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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