pixelstore

Member
Jun 6, 2012
17
0
51
cPanel Access Level
Root Administrator
First I couldn't send email (via apache/php) to an external smtp-server.

I added the rules in iptables and then it worked. Beautiful, I thought at first. Now it seems like it's reseting itself or something, because suddenly you can't send any emails.

If I stop iptables, and then starts it again it works. So the rules is saved properly I guess, but along the way it seems like the rules is reseted somehow?

I'm running CentOS 5.

Any clue?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

cPanel does not utilize firewall rules for any options beyond:

"WHM Home » Security Center » SMTP Restrictions"

However, firewall rules related to this option would not populate automatically. Do you have a third-party firewall installed that could be modifying the rules?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Is this a VPS? If so, you may want to consult with your VPS hosting provider to see if rules are modified from the VPS hardware node. You can also try saving the rules via:

Code:
# /etc/init.d/iptables save
Thank you.