SOLVED SMTP restrictions option false after server restart

tehnec

Registered
Dec 12, 2017
2
0
1
Zagreb
cPanel Access Level
Root Administrator
Hello, I have noticed a little inconsistency when playing with "SMTP restrictions" option. When I disable the option in WHM -> security center and restart the server, the option in WHM shows that it is still disabled, but actually, the option has been re-enabled in the background. I have to enable/disable it again to take effect.

Is there a way to make this change permanent, regardless of server restart?

I didn't find any documentation on what this option actually does, and are there any config files associated with it. I'm running Centos7.4 / WHM 68.0.19.

Any help would be appreciated, Thx.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

I was unable to reproduce this issue on a test system using the same environment. Could you run the following command and let us know the output?

Code:
systemctl status firewalld
Thank you.
 

tehnec

Registered
Dec 12, 2017
2
0
1
Zagreb
cPanel Access Level
Root Administrator
Hello,

I was unable to reproduce this issue on a test system using the same environment. Could you run the following command and let us know the output?

Code:
systemctl status firewalld
Thank you.
Hi, I don't use firewalld, I use iptables instead, so the command's output was:
Code:
Unit firewalld.service could not be found.
but I did some further iptables configuration checks and figured out where the problem was.
As it happens, I had an old iptables configuration loaded automatically at boot time, and in that configuration, the SMTP restrictions were enabled.
So every time I rebooted the system, the old configuration kicked in.

Sorry if I wasted your time, Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

I'm glad to see you were able to determine the cause of the issue. Thank you for updating us with the outcome.