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!

How to enable in iptables outgoing traffic from selected domain

Discussion in 'General Discussion' started by Stanleytiew, Jun 16, 2007.

  1. Stanleytiew

    Stanleytiew Well-Known Member

    May 9, 2005
    Likes Received:
    Trophy Points:
    I'm having problem with iptables who block the outgoing email from my php script. It will be working well if I stop the iptables. stopping the iptables is unsafe for the server and not the right way to do. what I wanted to do is to allow the selected domain to bypass iptables and send out the email. Anybody can help on this?

    below is the error message.

    Warning: fsockopen() [function.fsockopen]: unable to connect to in /home/sms/public_html/class.smtp.php on line 105

    Warning: Cannot modify header information - headers already sent by (output started at /home/sms/public_html/class.smtp.php:105) in /home/sms/public_html/engine.php on line 71

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