Hi all,
sorry for a noob question but I could not have solved this myself and could not found a working solution by googling.
Background: I installed latest version of Hestia CP with multiphp and dovecot & bind.
Dovecot & bind are installed as a backup because we intend to use external mail server.
I installed first wit installer script web domain as mycompany.tld and that is using hosting operators internal use ip. After that I installed an another domain which uses servers external IP and uploaded there the shopping cart files. This IP is going to be the new mycompany.com domain.
I have problems to test the shopping cart functionalities which send mails. Shopping cart supports php mail,sendmail,sendmail-f & SMTP mail
hi ScIT,
I am currently not using SMTP. I have tried php mail,sendmail and sendmail-f. Our mycompany.com and mailserver is currently in production use and I aim to build a new webshop which only has an ip address currently (no nameservers attached) but I would need to test also email functionality of the shop with that ip.
Usualy mails will be shipped over your local installed mta. If you want to use a external mail service, you’ll need to change the webshop to use your external mail server - or adjust exim to use your external mailserver as relay (check the exim config, there is a commented out section for relay).
I tried to use smtp from web shop but no luck. I forgot to say the installer also installed dovecot. I stopped it. Netstat foreign address looks suspicious from my opinion. Also there is no exim smtp visible
I added dns for public IP
I also tried to configure mailserver as a relay but no luck
I am total newbie in emails and also in hestia CP so I think the solution must be pretty easy but I can not figure it out. Any help would be greatly appreciated because server and web shop would be production ready otherwise but I must be sure that email functionalities work also with external mailserver.
It looks like your hosting provider is blocking your outgoing (smtp) traffic (BTW what provider do you use)
Please check with this command:
telnet hotmail-com.olc.protection.outlook.com 25
You should see an output like this:
Trying 104.47.55.161...
Connected to hotmail-com.olc.protection.outlook.com.
Escape character is '^]'.
220 BN8NAM12FT026.mail.protection.outlook.com Microsoft ESMTP MAIL Service ready at Mon, 30 Sep 2019 08:03:35 +0000
To close the connection pres CTRL + ] and enter “quit” at the telnet prompt
my current webhosting upcloud.com has blocked port 25 as a security measure but it can be opened.
Our mail provider is OVH-SAS hosting firm and they use different port for incoming mail:
The incoming mail server:SSL0.OVH.NET Incoming server port:993 or 143
I tried with this:
root@mycompany:/etc/exim4# hostname && hostname -f
mycompany.tld
mycompany.tld
root@mycompany:/etc/exim4# telnet SSL0.OVH.NET 143
Trying 193.70.18.144…
Connected to SSL0.OVH.NET.
Escape character is ‘^]’.
OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot on host 93 ready
^] BAD Error in IMAP command received by server.
When I installed hestia cp I used mycompany.tld bocus address but in the future I like to use the live domain name mycompany.fi (now reserved for production environment) Also dovecot is installed as a spare and not necessary in the future I think.
I tried to activate smarthost on update-exim4.conf.conf:
I still haven’t figured this out. I will offer a small compensation to anyone who knows how to resolve this. I could set up a teamviewer session so I could see how it is done if anybody is interested.
I have for example this kind of response so I think it is not OVH mail server which is causing the issue:
root@mycompany:~# ping google.com
PING google.com(arn11s04-in-x0e.1e100.net (2a00:1450:400f:80b::200e)) 56 data bytes
64 bytes from arn11s04-in-x0e.1e100.net (2a00:1450:400f:80b::200e): icmp_seq=1 ttl=56 time=8.09 ms
64 bytes from arn11s04-in-x0e.1e100.net (2a00:1450:400f:80b::200e): icmp_seq=2 ttl=56 time=8.17 ms
64 bytes from arn11s04-in-x0e.1e100.net (2a00:1450:400f:80b::200e): icmp_seq=3 ttl=56 time=8.15 ms
64 bytes from arn11s04-in-x0e.1e100.net (2a00:1450:400f:80b::200e): icmp_seq=4 ttl=56 time=8.10 ms
^C
— google.com ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 8.098/8.134/8.175/0.115 ms
root@mycompany:~# openssl s_client -starttls smtp -crlf -connect SSL0.OVH.NET:993
CONNECTED(00000003)
^C
root@mycompany:~# openssl s_client -starttls smtp -crlf -connect SSL0.OVH.NET:143
CONNECTED(00000003)
Didn’t find STARTTLS in server response, trying anyway…
140455833220160:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:…/ssl/record/ssl3_record.c:332:
no peer certificate available
No client certificate CA names sent
SSL handshake has read 247 bytes and written 347 bytes
Verification: OK
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)