I had a server hack on saturday so transferred all sites (only 6) to another server.
all easily done with the backup and restore features of Virtualmin (have done quite often over the years)
However, sending emails failed to send.
I tracked this down to postfix failing to accept the send message request. saslauth was failing.
my question is this, why does the OUTGOING server username need to be brian-2mx.uk instead of brian@2mx.uk
did I make a mistake in teh backup.restore process ?
note that the incoming mail server settings still uses brian@2mx.uk
both on GPL
new server:
CentOS Linux 7.7.1908
Webmin version 1.942
Usermin version 1.791
Virtualmin version 6.09
old server:
Operating system CentOS Linux 7.7.1908
Webmin version 1.942
Usermin version 1.791
Virtualmin version 6.09
This sounds like saslauthd doesn’t have the -r flag enabled, though I can’t think of why that would happen. Are you sure there were no errors during installation and that all steps completed?
Check this setting in /etc/sysconfig/saslauthd, and see if it has FLAGS="-r"
# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/run/saslauthd
# Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled with the ablity to use.
MECH=pam
# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS="-r"
I found that I had to change the passwd file, the email with - to above the @ and it now works as expected.
I then restarted saslauthd, and works, I’ll just get users to check.
thanks again for your help.
brian