If you are trying to send mail via webmail and it is not working out, you may have the answer right under your nose. If you have CSF installed, it is likely blocking port 25.
You may be getting the following error message:
|
|
There was an error sending your message: Failed to set sender: you@domain.com [SMTP: Failed to write to socket: not connected (code: -1, response: )] |
From /etc/csf/csf.conf approx line number 279:
|
|
# If SMTP_BLOCK is enabled but you want to allow local connections to port 25 # on the server (e.g. for webmail or web scripts) then enable this option to # allow outgoing SMTP connections to the loopback device SMTP_ALLOWLOCAL = "0" |
Simply change that 0 to a 1 and restart csf:
Related posts from Linux Brigade!
Migrating from Plesk to cPanel via commandline If you’re anything like me, you prefer to do things via command line (CLI) rather than relying on a GUI to do most things in Linux. You also realize that while some of us don’t like to use […]
Understanding cron job times Often, you’ll want to use cron to schedule daily, weekly, hourly (etc…) tasks on your linux system(s). cPanel has a little GUI for it, but since I don’t trust GUIs very often, I like […]
Bash ShellShock bug – Find out if you’ve been “tested” We’ve seen the articles about how to find out if you’re vulnerable to the bash shellshock bug, we’ve also seen the articles on how to patch your system. What I’ll show you is how to find […]
LFD: Excessive resource usage If you run the CSF/LFD firewall on your server then you’ve no doubt seen the emails complaining about high resource usage for various accounts. This small tutorial will show you how to […]
Warning: Skipping the data of table mysql.event. Your MySQL script was running great, but then you started getting errors – If you get this warning when dumping the mysql database, it’s not a bug – MySQL did this on purpose because they […]
Awwl, man… As I was reading this, I tried coming up with a solution in my head. It included some convoluted code, a sacrificial goat and some naked surf dancing. Your answer consisted of 5 whole characters. (K.I.S.S. at its best.)