Hi
I don’t know if this has been addressed before, or it’s just my server that does it.
I have setup the latest Virtualmin on a fresh Debian 10.6.0
After the setup, everything except email was working. In the mail log I got the following error:
Nov 30 22:23:32 vps1 postfix/smtpd[2278]: connect from unknown[X.X.X.X] Nov 30 22:23:33 vps1 postfix/smtpd[2278]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory Nov 30 22:23:33 vps1 postfix/smtpd[2278]: warning: unknown[X.X.X.X]: SASL LOGIN authentication failed: generic failure Nov 30 22:23:33 vps1 postfix/smtpd[2278]: lost connection after AUTH from unknown[X.X.X.X] Nov 30 22:23:33 vps1 postfix/smtpd[2278]: disconnect from unknown[X.X.X.X] ehlo=1 auth=0/1 commands=1/2
Running service saslauthd status
gave me:
root@vps1:/tmp# service saslauthd status
● saslauthd.service - LSB: saslauthd startup script
Loaded: loaded (/etc/init.d/saslauthd; generated)
Active: active (exited) since Mon 2020-11-30 21:32:26 CET; 57min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 2359)
Memory: 0B
CGroup: /system.slice/saslauthd.service
nov 30 21:32:26 vps1 systemd[1]: Starting LSB: saslauthd startup script...
nov 30 21:32:26 vps1 saslauthd[3705]: To enable saslauthd, edit /etc/default/saslauthd and set START=yes ... (warning). nov 30 21:32:26 vps1 systemd[1]: Started LSB: saslauthd startup script.
The strange thing is that when I looked in the “/etc/default/saslauthd” the (OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r") was defined twice. Once in it’s “normal” location, and another time, in the bottom of the file.
# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options. OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
And
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
After I commented one of them out, and restarted saslauthd, everything was running correctly, except my hostname was replaced with a (SPACE) so I had to add it manually to the postfix conf.
root@vps1:/tmp# service saslauthd status
● saslauthd.service - LSB: saslauthd startup script
Loaded: loaded (/etc/init.d/saslauthd; generated)
Active: active (running) since Mon 2020-11-30 22:31:21 CET; 56s ago
Docs: man:systemd-sysv-generator(8)
Process: 5808 ExecStart=/etc/init.d/saslauthd start (code=exited, status=0/SUCCESS)
Tasks: 5 (limit: 2359)
Memory: 4.3M
CGroup: /system.slice/saslauthd.service
├─5830 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
├─5831 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
├─5832 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
├─5833 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
└─5834 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
nov 30 22:31:21 vps1 systemd[1]: Starting LSB: saslauthd startup script...
nov 30 22:31:21 vps1 saslauthd[5830]: : master pid is: 5830
nov 30 22:31:21 vps1 saslauthd[5808]: Starting SASL Authentication Daemon: saslauthd. nov 30 22:31:21 vps1 systemd[1]: Started LSB: saslauthd startup script. nov 30 22:31:21 vps1 saslauthd[5830]: : listening on socket: /var/spool/postfix/var/run/saslauthd/mux