I give up after tons of mails here and days of tries…
I have my own SME server as the mail server in my home office. It uses SSL/TLS for POP3 and SMTP.
When I run wireshark on my mail client (kmail) sending a mail, I see port 465 is used.
When I run:
root@erpnext:/home/frappe# nc -vv srv.plris.com 465
Connection to srv.plris.com 465 port [tcp/urd] succeeded!
Don’t know what is “urd”…
But if I configure my email domain in ERPNext as TLS+465 it exits with timeout.
But any attempt to send an email fails with no traces of anything anywhere including wireshark running on ERP machine.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The server also listens on port 25 with TLS. Below is the wireshark. Here 250 is ERPNext machine, 254 is the mail server.
No. Time Source Destination Protocol Length Info
36 22.546442 192.168.50.250 192.168.50.254 TCP 74 48372 → 25 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=48917 TSecr=0 WS=64
No. Time Source Destination Protocol Length Info
37 22.546793 192.168.50.254 192.168.50.250 TCP 74 25 → 48372 [SYN, ACK] Seq=0 Ack=1 Win=14480 Len=0 MSS=1460 SACK_PERM=1 TSval=2678674271 TSecr=48917 WS=64
No. Time Source Destination Protocol Length Info
38 22.546837 192.168.50.250 192.168.50.254 TCP 66 48372 → 25 [ACK] Seq=1 Ack=1 Win=29248 Len=0 TSval=48918 TSecr=2678674271
No. Time Source Destination Protocol Length Info
39 22.622440 192.168.50.254 192.168.50.250 SMTP 94 S: 220 extern.plris.com ESMTP
No. Time Source Destination Protocol Length Info
40 22.622536 192.168.50.250 192.168.50.254 TCP 66 48372 → 25 [ACK] Seq=1 Ack=29 Win=29248 Len=0 TSval=48936 TSecr=2678674345
No. Time Source Destination Protocol Length Info
41 22.622897 192.168.50.250 192.168.50.254 SMTP 84 C: ehlo [127.0.1.1]
No. Time Source Destination Protocol Length Info
42 22.622978 192.168.50.254 192.168.50.250 TCP 66 25 → 48372 [ACK] Seq=29 Ack=19 Win=14528 Len=0 TSval=2678674347 TSecr=48936
No. Time Source Destination Protocol Length Info
43 22.624682 192.168.50.254 192.168.50.250 SMTP 178 S: 250 plris.com Hi erp.plris.com [192.168.50.250] | 250 PIPELINING | 250 8BITMIME | 250 SIZE 15000000 | 250 STARTTLS
No. Time Source Destination Protocol Length Info
44 22.624859 192.168.50.250 192.168.50.254 SMTP 76 C: STARTTLS
No. Time Source Destination Protocol Length Info
45 22.625389 192.168.50.254 192.168.50.250 SMTP 89 S: 220 Go ahead with TLS
No. Time Source Destination Protocol Length Info
46 22.625661 192.168.50.250 192.168.50.254 TLSv1.2 355 Client Hello
No. Time Source Destination Protocol Length Info
47 22.641055 192.168.50.254 192.168.50.250 TLSv1.2 2962 Server Hello
No. Time Source Destination Protocol Length Info
48 22.641065 192.168.50.254 192.168.50.250 TLSv1.2 844 Certificate, Server Key Exchange, Server Hello Done
[2 Reassembled TCP Segments (3000 bytes): #47(2825), #48(175)]
Secure Sockets Layer
Secure Sockets Layer
No. Time Source Destination Protocol Length Info
49 22.641118 192.168.50.250 192.168.50.254 TCP 66 48372 → 25 [ACK] Seq=318 Ack=3060 Win=35008 Len=0 TSval=48941 TSecr=2678674361
No. Time Source Destination Protocol Length Info
50 22.643963 192.168.50.250 192.168.50.254 TLSv1.2 192 Client Key Exchange, Change Cipher Spec, Encrypted Handshake Message
No. Time Source Destination Protocol Length Info
51 22.644959 192.168.50.254 192.168.50.250 TLSv1.2 292 New Session Ticket, Change Cipher Spec, Encrypted Handshake Message
No. Time Source Destination Protocol Length Info
52 22.645154 192.168.50.250 192.168.50.254 TLSv1.2 113 Application Data
No. Time Source Destination Protocol Length Info
53 22.647927 192.168.50.254 192.168.50.250 TLSv1.2 193 Application Data
No. Time Source Destination Protocol Length Info
54 22.648959 192.168.50.250 192.168.50.254 TCP 66 48372 → 25 [FIN, ACK] Seq=491 Ack=4191 Win=40832 Len=0 TSval=48943 TSecr=2678674371
No. Time Source Destination Protocol Length Info
55 22.649575 192.168.50.254 192.168.50.250 TLSv1.2 97 Encrypted Alert
No. Time Source Destination Protocol Length Info
56 22.649597 192.168.50.250 192.168.50.254 TCP 54 48372 → 25 [RST] Seq=492 Win=0 Len=0
The last two packets put me in stupor.
Any help will be very highly appreciated!
Many thanks ahead.