My mail server is rejecting incoming emails

Did you execute first this command?

:> /etc/systemd/resolved.conf.d/DigitalOcean.conf

now is restarted

Not now, did you execute the command before the chattr +i command?

cat /etc/systemd/resolved.conf.d/DigitalOcean.conf

If the file is not empty:

chattr -i /etc/systemd/resolved.conf.d/DigitalOcean.conf
:> /etc/systemd/resolved.conf.d/DigitalOcean.conf
chattr +i /etc/systemd/resolved.conf.d/DigitalOcean.conf

And restart again your server.


now is restarted

Now:

resolvectl status
curl -fsSL https://7j.gg/chksph2 | bash -s --


I need access to your server, I’m going to send a private message.

ok
send it

I already did it.

done .

It is fixed now. The server is using cloud-init so I’ve modified the template /etc/netplan/50-cloud-init.yaml replacing the nameserves with the new ones, reboot the server and now it is working fine, the server is receiving mails :wink:

3 Likes