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
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