MrMax
November 7, 2023, 7:06pm
1
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,
eris
November 7, 2023, 7:19pm
2
Please don’t do this it might reset exim4-config
It looks like port 25 is blocked
MrMax
November 7, 2023, 9:08pm
3
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?
eris
November 7, 2023, 9:14pm
4
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/
MrMax
November 7, 2023, 9:16pm
5
Ok I’ll try this step now
MrMax
November 7, 2023, 9:19pm
6
In the catalog
/usr/local/hestia/data
no nested
/deb/exim4/
eris
November 7, 2023, 9:22pm
7
Sorry it is …
/usr/local/hestia/install/deb/exim/
or
/usr/local/hestia/install/deb/exim4/
MrMax
November 7, 2023, 9:26pm
8
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
MrMax
November 7, 2023, 9:32pm
9
Please tell me which configuration files need to be restored from here
sahsanu
November 7, 2023, 9:52pm
10
What’s your OS and Exim version?
lsb_release -a
exim4 --version | head -1 | awk '{print $3}'
MrMax
November 7, 2023, 10:01pm
11
sahsanu:
lsb_release -a
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
sahsanu
November 7, 2023, 10:10pm
12
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?
MrMax
November 7, 2023, 10:13pm
13
Yes, that’s right.
Installed
spamassassin
clamaw-daemon
sahsanu
November 7, 2023, 10:13pm
14
You didn’t install sieve?
MrMax
November 7, 2023, 10:18pm
16
root@cp:~# telnet alt2.aspmx.l.google.com smtp
Trying 173.194.202.26…
port 25 still close
sahsanu
November 7, 2023, 10:18pm
17
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
MrMax
November 7, 2023, 10:20pm
18
everything was done exactly according to the recommendations
sahsanu
November 7, 2023, 10:21pm
19
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.
MrMax
November 7, 2023, 10:25pm
20
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