Problems with mail settings

Hello, friends!
Please, who can, advise.
Fresh installation, new virtual server.
Mail is sent only to local accounts. The mail is coming.
Experience to understand and got stuck.
message in logs

R=dnslookup T=remote_smtp defer (-54): retry time not reached for any host for

Im launched the reconfiguration

sudo dpkg-reconfigure exim4-config

The wizard asked several questions which I may have answered incorrectly.

Now the Roundcube client returns a communication error with the SMTP server and has stopped sending mail altogether.

And the messages in the queue are frozen,

R=nonlocal: Mailing to remote domains not supported

I will think very sanely thanks to your kind help. Give me some hint please

Sincerely,

Please don’t do this it might reset exim4-config

It looks like port 25 is blocked

root@cp:~# telnet alt2.aspmx.l.google.com smtp
Trying 74.125.200.27…

You’re right. Everything is exactly like that
When connecting to the Google smtp server, the port is open. Now closed

What steps can you take?

Use an smtp relay like smtp2go or Amazon SES…

You probally need to restore the exim config with Hestia default that can be found in /usr/local/hestia/data/deb/exim4/

Ok I’ll try this step now

In the catalog
/usr/local/hestia/data

no nested
/deb/exim4/

Sorry it is …
/usr/local/hestia/install/deb/exim/

or

/usr/local/hestia/install/deb/exim4/

Ok Found it! Now I’ll take a closer look at comparing the files of my configuration and the reference one.

Please tell me, is there perhaps a way to do a hot reset of the installation?
Reinstallation of MTA Exim4

image
Please tell me which configuration files need to be restored from here

What’s your OS and Exim version?

lsb_release -a
exim4 --version | head -1 | awk '{print $3}'

root@cp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

root@cp:~# exim4 --version | head -1 | awk ‘{print $3}’
4.95

Then you need to copy 4.95 conf file.

cp /usr/local/hestia/install/deb/exim/exim4.conf.4.95.template /etc/exim4/exim4.conf.template
chmod 640 /etc/exim4/exim4.conf.template
cp -f /usr/local/hestia/install/deb/exim/dnsbl.conf /etc/exim4/
cp -f /usr/local/hestia/install/deb/exim/spam-blocks.conf /etc/exim4/
cp -f /usr/local/hestia/install/deb/exim/limit.conf /etc/exim4/
cp -f /usr/local/hestia/install/deb/exim/system.filter /etc/exim4/
touch /etc/exim4/white-blocks.conf
echo "$(head /dev/urandom | tr -dc 'A-Za-z0-9' | head -c16)" > /etc/exim4/srs.conf
chmod 640 /etc/exim4/srs.conf
chown root:Debian-exim /etc/exim4/srs.conf
mkdir -p /etc/exim4/domains

Did you install sieve, spamassassin and or clamav?

Yes, that’s right.
Installed
spamassassin
clamaw-daemon

You didn’t install sieve?

sieve is not installed

root@cp:~# telnet alt2.aspmx.l.google.com smtp
Trying 173.194.202.26…

port 25 still close

Ok, if sieve is not installed, in addition to the above commands you also have to execute these commands:

sed -i "s/#SPAM/SPAM/g" /etc/exim4/exim4.conf.template
sed -i "s/#CLAMD/CLAMD/g" /etc/exim4/exim4.conf.template

And once done, restart exim:

systemctl restart exim4

everything was done exactly according to the recommendations

That is another problem not related to Exim and seems your host provider is blocking connections from your server to external servers using port 25. You should ask to your hosting provider.

Oh yes I understand that
Now with renewed vigor, thanks to your help, which is very nice, please accept my deep gratitude for your help!

I will now begin to act towards overcoming the next difficulty, aiming to get results quickly.

I will try to please you with good news

With great respect for your time and effort

1 Like