Unable to connect to Postfix

OS : Debian Linux 10
Linux 4.19.0-18-amd64 sur x86_64
Webmin v 1.981
Virtualmin version 6.17-3

Hello,

I just install a fresh new server. Everything is working but Postfix !?

Postfix is listening on port 25/465 :slight_smile:

sudo netstat -tnlp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 18825/master
tcp6 0 0 :::25 :::* LISTEN 18825/master

sudo netstat -tnlp | grep :465
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 18825/master
tcp6 0 0 :::465 :::* LISTEN 18825/master

But if I do an nmap on the server I don’t see port 25 :
nmap_serveur21

When I try to connect to SMTP, it is not working. I can’t authenticate.

When I look at logs, I had this error :
mail.log : warning: SASL authentication failure: Password verification failed
mail.warn : warning: unknown[20.70.186.28]: SASL LOGIN authentication failed: authentication failure

I then try this command : sudo testsaslauthd -s smtp -u user -p password (with correct user/password)
I get this : connect() : No such file or directory

I add a symbolic link for /var/spool/postfix/var/run/saslauthd in /var/run/saslauthd with this command :
sudo ln -s /var/spool/postfix/var/run/saslauthd /var/run/saslauthd

And now testsaslauthd is working (Response : 0: OK “Success.”)

But Postfix is not working. What can I do ??
Thank you for your help.

Jeff.

After rebooting, everything is working like a charm :slight_smile:
The problem was symbolic link that was not created on install.