The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    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 domain.com:25 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
     
Loading...

Share This Page