Jag har samma problem! Men jag verkar inte kunna lösa det så lätt.
Kan ni verifiera att det fortfarande fungerar med hjälp av stunnel?
Jag kan få det att fungera så länge jag kör på gmail som server, men nackdelen där är att alla mail skickas med just det gmailkontot som avsändare.
Men när jag försöker med mailout.privat.bahnhof.se:465 så händer ingenting, loggen för stunnel ger mig inga svar, jag har även försökt med att använda samma konfig, (server adresser, portar och konto, kör med mitt mb123456) i outlook och där fungerar det fint.
har någon något tips?
exempel på stunnel konfig
client = yes
debug = debug
[Bahnhof]
accept = 127.0.0.1:259
connect = mailout.privat.bahnhof.se:465
[GMAIL]
accept = 127.0.0.1:258
connect = smtp.gmail.com:465
-------------------------------------
Log:
2016.12.25 22:48:29 LOG7[main]: Found 1 ready file descriptor(s)
2016.12.25 22:48:29 LOG7[main]: FD=504 ifds=r-x ofds=---
2016.12.25 22:48:29 LOG7[main]: FD=540 ifds=r-x ofds=r--
2016.12.25 22:48:29 LOG7[main]: Service [Bahnhof] accepted (FD=996) from 127.0.0.1:44045
2016.12.25 22:48:29 LOG7[main]: Creating a new thread
2016.12.25 22:48:29 LOG7[main]: New thread created
2016.12.25 22:48:29 LOG7[44]: Service [Bahnhof] started
2016.12.25 22:48:29 LOG7[44]: Option TCP_NODELAY set on local socket
2016.12.25 22:48:29 LOG5[44]: Service [Bahnhof] accepted connection from 127.0.0.1:44045
2016.12.25 22:48:29 LOG6[44]: failover: round-robin, starting at entry #1
2016.12.25 22:48:29 LOG6[44]: s_connect: connecting 79.136.2.55:465
2016.12.25 22:48:29 LOG7[44]: s_connect: s_poll_wait 79.136.2.55:465: waiting 10 seconds
2016.12.25 22:48:29 LOG5[44]: s_connect: connected 79.136.2.55:465
2016.12.25 22:48:29 LOG5[44]: Service [Bahnhof] connected remote server from 192.168.5.32:44049
2016.12.25 22:48:29 LOG7[44]: Option TCP_NODELAY set on remote socket
2016.12.25 22:48:29 LOG7[44]: Remote descriptor (FD=1012) initialized
2016.12.25 22:48:29 LOG6[44]: SNI: sending servername: mailout.privat.bahnhof.se
2016.12.25 22:48:29 LOG6[44]: Peer certificate not required
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): before/connect initialization
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 write client hello A
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 read server hello A
2016.12.25 22:48:29 LOG6[44]: Certificate verification disabled
2016.12.25 22:48:29 LOG6[44]: Certificate verification disabled
2016.12.25 22:48:29 LOG6[44]: Certificate verification disabled
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 read server certificate A
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 read server key exchange A
2016.12.25 22:48:29 LOG6[44]: Client certificate not requested
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 read server done A
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 write client key exchange A
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 write change cipher spec A
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 write finished A
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 flush data
2016.12.25 22:48:29 LOG7[44]: SSL state (connect): SSLv3 read finished A
2016.12.25 22:48:29 LOG7[44]: 27 client connect(s) requested
2016.12.25 22:48:29 LOG7[44]: 27 client connect(s) succeeded
2016.12.25 22:48:29 LOG7[44]: 0 client renegotiation(s) requested
2016.12.25 22:48:29 LOG7[44]: 0 session reuse(s)
2016.12.25 22:48:29 LOG6[44]: SSL connected: new session negotiated
2016.12.25 22:48:29 LOG7[44]: Deallocating application specific data for addr index
2016.12.25 22:48:29 LOG6[44]: Negotiated TLSv1.2 ciphersuite ECDHE-RSA-AES256-GCM-SHA384 (256-bit encryption)
2016.12.25 22:48:29 LOG7[44]: Compression: null, expansion: null
2016.12.25 22:48:30 LOG6[44]: Read socket closed (readsocket)
2016.12.25 22:48:30 LOG7[44]: Sending close_notify alert
2016.12.25 22:48:30 LOG7[44]: SSL alert (write): warning: close notify
2016.12.25 22:48:30 LOG6[44]: SSL_shutdown successfully sent close_notify alert
2016.12.25 22:48:30 LOG6[44]: SSL socket closed (SSL_read)
2016.12.25 22:48:30 LOG7[44]: Sent socket write shutdown
2016.12.25 22:48:30 LOG5[44]: Connection closed: 153355 byte(s) sent to SSL, 564 byte(s) sent to socket
2016.12.25 22:48:30 LOG7[44]: Remote descriptor (FD=1012) closed
2016.12.25 22:48:30 LOG7[44]: Local descriptor (FD=996) closed
2016.12.25 22:48:30 LOG7[44]: Service [Bahnhof] finished (0 left)
Ser dock inte rader så som
2016.12.25 22:48:29 LOG6[44]: Certificate verification disabled
2016.12.25 22:48:29 LOG6[44]: Certificate verification disabled
2016.12.25 22:48:29 LOG6[44]: Certificate verification disabled
när jag kör med Gmail som server