Edit Domain of Postfix

Postfix must run in a chroot on Debian and Ubuntu systems.

We configure the /var/spool/postfix/var/run/milter-greylist/milter-greylist.sock socket file for Postfix in Virtualmin. I recall fixing this a long time ago, and I believe we’re doing it right.

However, the OP categorized the ticket as “Webmin,” and I hope that is accurate. I also hope they are not using an outdated version of Virtualmin that once had a bug.

@LuigiMdg Are you using Virtualmin?

Either way, check you /etc/milter-greylist/greylist.conf config file and make sure you have this line in it:

socket "/var/spool/postfix/var/run/milter-greylist/milter-greylist.sock" 666

I confirm that it contains the line

socket "/var/spool/postfix/var/run/milter-greylist/milter-greylist.sock" 666

It is already disabled on Virtualmin and on the main.cf

What is this file? What is the output of:

ls -ls /var/spool/postfix/var/run/milter-greylist/milter-greylist.sock
0 srw-rw-rw- 1 greylist greylist 0 Dec 15 16:12 /var/spool/postfix/var/run/milter-greylist/milter-greylist.sock

@LuigiMdg Is milter-greylist service running? What is your Virtualmin version?

Virtualmin 7.30.2

service milter-greylist status
● milter-greylist.service - Greylist Mail Filter Daemon
     Loaded: loaded (/lib/systemd/system/milter-greylist.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2024-12-15 16:12:44 CET; 1 weeks 0 days ago
   Main PID: 464 (milter-greylist)
      Tasks: 7 (limit: 9492)
     Memory: 5.1M
        CPU: 33.852s
     CGroup: /system.slice/milter-greylist.service
             └─464 /usr/sbin/milter-greylist -u greylist

Dec 15 16:12:44 panel.donagest.com systemd[1]: Starting Greylist Mail Filter Daemon...
Dec 15 16:12:44 panel.donagest.com milter-greylist[422]: cannot read dumpfile "/var/lib/milter-greylist/greylist.db"
Dec 15 16:12:44 panel.donagest.com milter-greylist[422]: starting with an empty greylist
Dec 15 16:12:44 panel.donagest.com systemd[1]: Started Greylist Mail Filter Daemon.

It looks fine. Then I suggest checking if /etc/postfix/master.cf is configured to run Postfix in chroot. Alternatively, just disable mail rate limiting on the “Email Settings ⇾ Mail Rate Limiting” page.

Mail rate limiting is already disabled!

master.cf:

smtp	inet	n	-	y	-	-	smtpd -o smtpd_sasl_auth_enable=yes -o smtpd_tls_security_level=may

Are there any mentions of milter-greylist in any of your Postfix configuration files?

Yes, in the main.cf but I already disabled it, the error is no longer displayed but it still does not work

Well, then we need a new error. Since it can no longer be the greylist milter problem, we need to figure out what else is wrong.

Unfortunately I can’t find anything else…
When I try to send a message, nothing is recorded in the mail.log

Are you sure Postfix is logging to mail.log and not the journal?

Anyway, if nothing appears in the log, then it’s a DNS problem, because it means your mail client is not reaching the server you think it is.

Could also be firewall or network, of course.

You can check it yourself:

Can’t anyone help me?

Just tail the mail log, maybe

tail -f /var/log/mail.log

In one window and use you email client in another so you watch in real time what happens when you try to connect. You could also try using telnet to connect to the server directly

Unfortunately it does not record any message in the mail.log, only the client gives me this error:

Connection could not be established with host mail.coveriphone.eu :stream_socket_client(): Unable to connect to tcp://mail.coveriphone.eu:587 (Connection refused)

There you are you can not connect to the server, hence nothing logged. You need to find out why port 587 on your server is refusing connections. Are you banned by fail2ban ? Is dovecot running correctly?