Problem with the mail server

Hello,
I installed nextcloud in a dedicated Raspberry and everything works correctly.
I only have one problem:
The mail server does not work (for sending notifications and password recovery).
I set all the parameters correctly (used in other occurrences) but the error message is:
There was a problem sending the email. Check your settings. (Error: Connection could not be established with host smtps.aruba.it [# 0] Log data: ++ Starting Swift_SmtpTransport !! Connection could not be established with host smtps.aruba.it [# 0] (code: 0))
I attach the screen.
Do I have to configure anything else to enable the Raspberry?
Thanks in advance for the help


Gustavo Caprioli

shouldn’t it be smtp.aruba.it instead of smtps.aruba.it?

Probably not a good idea to post issues with screenshots of domain names.

You’re right I didn’t have to post the domain data. When it works I will delete this account and make a new one.
The server is smtps.aruba.it and I’m sure the parameters entered are correct. They work in other environments.
I don’t know if the problem is some configuration of the Raspberry.
Thanks a lot, do you have any ideas?
Gustavo

What do you mean with “They work in other environments”?

If you are trying to say, that the parameters work on other machines in your network, it could be a network/firewall configuration problem on your Raspberry.

I just tried a ping and a traceroute to the above host smtps.aruba.it - The hoster seems to block ICMP request, so a traceroute would be the only option to test.

Connect to your Rapsberry and from there do traceroute smtps.aruba.it to see if your Raspberry is able to resolve the host to its source.

Thank you so much for your help
From my network other devices with the indicated parameters work correctly.
From the Raspberry I tried to send mail (with the address we are talking about) with the command:
echo “email text” | mail -s “test” sample@gmail.com and at the address indicated the e-mail has arrived correctly.
The result of the traceroute smtp.aruba.it is:
root@DietPi:/# traceroute smtps.aruba.it
traceroute to smtps.aruba.it (62.149.128.218), 30 hops max, 60 byte packets
1 192.168.2.1 (192.168.2.1) 1.321 ms 1.306 ms 1.386 ms
2 192.168.1.254 (192.168.1.254) 4.924 ms 4.911 ms 4.885 ms
3 10.1.131.202 (10.1.131.202) 13.893 ms 17.813 ms 15.100 ms
4 10.250.136.66 (10.250.136.66) 17.690 ms 17.676 ms 10.250.136.74 (10.250.136.74) 17.669 ms
5 10.250.119.186 (10.250.119.186) 21.503 ms 22.779 ms 21.452 ms
6 10.254.0.217 (10.254.0.217) 18.759 ms 16.842 ms 12.851 ms
7 89.97.200.186 (89.97.200.186) 14.219 ms 15.488 ms 89.97.200.190 (89.97.200.190) 12.825 ms
8 93-63-100-145.ip27.fastwebnet.it (93.63.100.145) 27.226 ms 93-63-100-141.ip27.fastwebnet.it (93.63.100.141) 31.119 ms 32.397 ms
9 aruba.mix-it.net (217.29.66.90) 25.820 ms 29.708 ms 25.780 ms
10 it1-core-b.aruba.it (62.149.191.52) 38.825 ms 48.009 ms 40.095 ms
11 it1-is2-a.aruba.it (62.149.185.27) 40.036 ms 40.039 ms 37.225 ms
12 smtps.aruba.it (62.149.128.218) 49.014 ms 37.915 ms 40.590 ms
root@DietPi:/#

The traceroute looks good and if the mail sent via the shell arrived as well, it must be something else.

Please try the following:

Connect to your Raspberry and change to the directory with your webserver logs (Apache or whatever you are using). Now enter tail -f error_log_file and execute the mail test in Nextcloud again. Hopefully the webserver error_log shows a little more information on what is going on.

I still think that something is blocking the port 465

I’m sorry but I’m not very experienced,
I entered the / var / log / apache2 folder which contains “access.log error.log other_vhosts_access.log”. I launched the command you suggested to me “tail -f error_log_file” but the file does not exist.
I ran tail -f error.log but the system does not respond.
What am I doing wrong?
Thanks a lot
Gustavo

Sorry,
I’m not very experienced, someone can help me.
Thank you very much in advance
Gustavo