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.

script error related to iptables

Discussion in 'General Discussion' started by Stanleytiew, Feb 18, 2006.

  1. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    I having one problem with iptables, whenever iptables is start my script is unable to run and giving this error message:

    Warning: 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 70

    However when I stop the iptables, everything is running very well. Did anybody having the same problem and have the solutions.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's most likely because you've enabled the WHM > Tweak Security > SMTP Tweak, whose function is to prevent exactly what you're doing.
     
  3. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    Thank you very much, my problem solved after disable smtp tweak
     
Loading...

Share This Page