Shortly after yum did its nightly updates my SMTP server started to refuse relaying of mail for several reasons. Looking at the yum logs, it looks like it pulled the updated RPM from:
Now the -S tcpserver option no longer works, so apparently it is no longer using mysql auth to check incoming IP for allowed relay. Apparently the rpm knew this, because it renamed
/var/qmail/control/sql to /var/qmail/control/sql.rpmsave ??
Also, if I remove the -S option, SMTP auth is still failing. Inside outlook I’m receiving the error message in my email client (Outlook):
The message seems to indicate that they are being allowed to relay. I have searched google for anything related to this, and it only comes up with one hit
Actually it looks like latest update to qmail or qmail-pop3d causing the problem!
I downloaded and compiled ucspi-tcp myself and applied the mysql patch to allow use of -S. However, this did not change the problem.
Looking at the yum.log file, it looks like qmail and qmail-pop3d were updated also:
Aug 02 21:39:07 Updated: ucspi-tcp.i386 0.88-200.rhe4x.iworx
Aug 02 21:39:36 Updated: qmail.i386 1.03-209.rhe4x.iworx
Aug 02 21:39:59 Updated: clamav.i386 0.88.3-100.rhe4x.iworx
Aug 02 21:40:11 Updated: qmail-pop3d.i386 1.03-209.rhe4x.iworx
Aug 02 21:40:16 Updated: simscan.i386 1.2-100.rhe4x.iworx
It must be the case that the new qmail or qmail-pop3d packages are causing problems.
Is there any way I can obtain the older RPM packages? Can someone reccommend an easy, iworx friendly way to recompile qmail / qmail-pop3d making sure to undefine CHKUSER_ENABLE_LOGGING in chkuser_settings.h so that it won’t log this message??
Thanks to the very helpful support team at interworx for working through this issue with us. I’m definitely impressed with the level of their support. I’m posting what we found out for others to find and learn from.
Apparently the latest qmail update from yum for centOS supports STARTTLS natively. So clients such as Outlook can use port 25 and check “my SMTP server requires a secure connection” and it will try STARTTLS. But for ports other than 25 Outlook will attempt to negotiate SSL first (which requires stunnel on the listening end).
The new qmail build has additional CHKUSER logging enabled, which was causing problems. Interworx found a solution at:
Essentially, stunnel needs to run in foreground mode. The newer versions of stunnel use a config file instead of command line switches. My /service/smtp-ssl/run file now looks like:
With that in place now all messages from CHKUSER are logged to /dev/null (or the file you specify in the service run file) instead of to stdout (which tcpserver would send across the network).
Thanks again to interworx support for helping to diagnose and resolve the issue.
This problem only affected smtp-over-ssl setups (which is not setup on InterWorx servers by default). Normal port 25 smtp, and alternate port 587 smtp, work fine after the update.
The aformentioned package updates were built and distrubted us (InterWorx) and not the CentOS folks.
There are a number of improvements / new features with these updates, and we’ll be putting together a forum post describing them in the not-too-distant future.