SMTP_ALLOWUSER doesn't work intermittently, must restart for
Posted: 12 Apr 2013, 15:50
I have "ConfigServer Security & Firewall" installed on my WHM/cPanel server. It's great and really thwarts a lot of intrusion attempts as well as other security features.
Have one BIG problem however. For security I have SMTP_BLOCK enabled to stop spam out from malicious scripts (if any where ever installed). Under CSF configuration I have SMTP_ALLOWUSER set to the accounts that I always want to be able to send mail out from scripts. This is set to: "cpanel,account1,account2" (where account1 and account2 are actual WHM account user names).
For some reason (haven't tracked when exactly this happens but probably on update) this setting intermittently stops working. It doesn't change but I have to restart CSF in order for the script to be able to send mail again. I find out because my client calls and is very mad because their contact us form doesn't work and throws a mail send error. Here's that error: CONTACT FORM ERROR: authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]
So it's blocking the script from sending email even though the configuration file still whitelists their account name under SMTP_ALLOWUSER! I have to go into WHM to the CSF config area and click the "Firewall Configuration" button, then just scroll to the bottom and click "Change" and then the "Restart CSF/LFD" button and it works again. I really MUST get this resolved. Is this due to CSF updating or maybe cPanel updating and not reading in that value? Any ideas?
I submitted this to my server tech support staff as well and here's what one of them said:
The nightly cPanel updates wouldn't be modifying the CSF installation. What I believe is causing this is actually the auto-update feature of CSF, which I've disabled via the WHM >> Plugins >> ConfigServer Security&Firewall >> Firewall Configuration. It's really not important to update the firewall software unless there is an explicit vulnerability against it, which I have yet to see. So this should prevent any future issues with it dropping the variable.
Now, I can see how that would cause the issue but I am worried that the auto-update installs protection from new exploits/vunerabilities so I don't want to miss out on those! Can you let me know how often CSF updates and if you feel this would solve this problem. I'm sure there is a better way than just disabling the auto-updates, right?
Have one BIG problem however. For security I have SMTP_BLOCK enabled to stop spam out from malicious scripts (if any where ever installed). Under CSF configuration I have SMTP_ALLOWUSER set to the accounts that I always want to be able to send mail out from scripts. This is set to: "cpanel,account1,account2" (where account1 and account2 are actual WHM account user names).
For some reason (haven't tracked when exactly this happens but probably on update) this setting intermittently stops working. It doesn't change but I have to restart CSF in order for the script to be able to send mail again. I find out because my client calls and is very mad because their contact us form doesn't work and throws a mail send error. Here's that error: CONTACT FORM ERROR: authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]
So it's blocking the script from sending email even though the configuration file still whitelists their account name under SMTP_ALLOWUSER! I have to go into WHM to the CSF config area and click the "Firewall Configuration" button, then just scroll to the bottom and click "Change" and then the "Restart CSF/LFD" button and it works again. I really MUST get this resolved. Is this due to CSF updating or maybe cPanel updating and not reading in that value? Any ideas?
I submitted this to my server tech support staff as well and here's what one of them said:
The nightly cPanel updates wouldn't be modifying the CSF installation. What I believe is causing this is actually the auto-update feature of CSF, which I've disabled via the WHM >> Plugins >> ConfigServer Security&Firewall >> Firewall Configuration. It's really not important to update the firewall software unless there is an explicit vulnerability against it, which I have yet to see. So this should prevent any future issues with it dropping the variable.
Now, I can see how that would cause the issue but I am worried that the auto-update installs protection from new exploits/vunerabilities so I don't want to miss out on those! Can you let me know how often CSF updates and if you feel this would solve this problem. I'm sure there is a better way than just disabling the auto-updates, right?