SSL-Mailversand mit WSWIN

Moderatoren: Werner, Tex, weneu

Gesperrt
Benutzeravatar
weneu
Site Admin
Beiträge: 11560
Registriert: 22 Feb 2002 01:00
Wohnort: Donauwörth
Danksagung erhalten: 15 mal
Kontaktdaten:

SSL-Mailversand mit WSWIN

Beitrag von weneu »

Es gibt nun die Möglichkeit, mit WSWIN weiterhin den Emailbericht zu versenden und zwar miit SSL.
Dazu sind folgende Maßnahmen bzw. Voraussetzungen erforderlich:
- auf dem PC muss blat installiert sein (es sollte nach Möglichkeit die Version 3.1.2 sein, wie hier im Forum bereits angeboten oder neuer)
- das Programm Stunnel muss installiert werden
- in WSWIN müssen bei "Email" bestimmte Einstellungen geändert werden

Im Userbereich des Forums sind dazu bereits im Bereich 'prg/Stunnel' die notwendigen Dateien bereitgestellt, damit man sie nicht im Internet zusammensuchen muss:
http://www.pc-wetterstation.de/user/prg/Stunnel/
Die Datei 'stunnel.conf' ist dabei nur zum Ansehen gedacht, sie muss nicht heruntergeladen werden, da sie bei der Installation von Stunnel erzeugt wird.

Dies ist hier nur ein knapper Hinweis. Eine ausführliche Darstellung des Vorgehens findet sich auf meiner Seite
http://faqprobs.wernerneudeck.de
im Bereich "Wie erreiche ich, dass..." und dort dann bei "SSL-Mailversand"
Zuletzt geändert von weneu am 21 Feb 2017 18:12, insgesamt 1-mal geändert.
Benutzeravatar
Werner
Site Admin
Beiträge: 5674
Registriert: 04 Dez 2001 01:00
Wohnort: Lackenhäuser
Danksagung erhalten: 58 mal
Kontaktdaten:

Dazu ein paar Hardcopy und LOG-Auszüge:

Beitrag von Werner »

Log-Auszug aus ws_debug_email.txt (Wswin)
2014.04.12 00:18:43 (Sat)------------Start of Session-----------------
Blat v3.1.2 (build : Dec 27 2013 14:33:12)
32-bit Windows, Full, Unicode
2014.04.12 00:18:44 (Sat): Sending D:\Eigene Dateien\Elv\VantagV3\Text\email_1.txt to ???????????@t-online.de
2014.04.12 00:18:44 (Sat): Subject: Wetterdaten Report Lackenhaeuser 12.04.2014 - 00:18 WsWin32 - Test Message
2014.04.12 00:18:44 (Sat): Login name is ?????????@pc-wetterstation.de
2014.04.12 00:18:44 (Sat)-------------End of Session------------------
...

2014.04.12 00:19:25 (Sat)------------Start of Session-----------------
Blat v3.1.2 (build : Dec 27 2013 14:33:12)
32-bit Windows, Full, Unicode
2014.04.12 00:19:26 (Sat): Sending D:\Eigene Dateien\Elv\VantagV3\Text\email_1.txt to ???????????@t-online.de
2014.04.12 00:19:26 (Sat): Subject: Wetterdaten Report Lackenhaeuser 12.04.2014 - 00:18 WsWin32 - Test Message
2014.04.12 00:19:26 (Sat): Login name is ?????????@t-online.de
2014.04.12 00:19:26 (Sat)-------------End of Session------------------
...

2014.04.12 00:20:01 (Sat)------------Start of Session-----------------
Blat v3.1.2 (build : Dec 27 2013 14:33:12)
32-bit Windows, Full, Unicode
2014.04.12 00:20:01 (Sat): Sending D:\Eigene Dateien\Elv\VantagV3\Text\email_1.txt to ???????????@t-online.de
2014.04.12 00:20:01 (Sat): Subject: Wetterdaten Report Lackenhaeuser 12.04.2014 - 00:18 WsWin32 - Test Message
2014.04.12 00:20:01 (Sat): Login name is ?????????@googlemail.com
2014.04.12 00:20:04 (Sat)-------------End of Session------------------
...

2014.04.12 00:20:33 (Sat)------------Start of Session-----------------
Blat v3.1.2 (build : Dec 27 2013 14:33:12)
32-bit Windows, Full, Unicode
2014.04.12 00:20:34 (Sat): Sending D:\Eigene Dateien\Elv\VantagV3\Text\email_1.txt to ???????????@t-online.de
2014.04.12 00:20:34 (Sat): Subject: Wetterdaten Report Lackenhaeuser 12.04.2014 - 00:20 WsWin32 - Test Message
2014.04.12 00:20:34 (Sat): Login name is ?????????@yahoo.de
2014.04.12 00:20:35 (Sat)-------------End of Session------------------

Log-Auszug von stunnel:
2014.04.12 00:13:16 LOG5[6892]: stunnel 5.00 on x86-pc-msvc-1500 platform
2014.04.12 00:13:16 LOG5[6892]: Compiled/running with OpenSSL 1.0.1f-fips 6 Jan 2014
2014.04.12 00:13:16 LOG5[6892]: Threading:WIN32 Sockets:SELECT,IPv6 SSL:ENGINE,OCSP,FIPS
2014.04.12 00:13:16 LOG5[6892]: Reading configuration from file stunnel.conf
2014.04.12 00:13:16 LOG5[6892]: FIPS mode disabled
2014.04.12 00:13:16 LOG5[6892]: Configuration successful
2014.04.12 00:14:37 LOG5[6892]: Reading configuration from file stunnel.conf
2014.04.12 00:14:37 LOG5[6892]: FIPS mode disabled
2014.04.12 00:14:37 LOG5[6892]: Configuration successful
2014.04.12 00:18:43 LOG5[8188]: Service [1und1-smtp] accepted connection from 127.0.0.1:49453
2014.04.12 00:18:43 LOG5[8188]: s_connect: connected 212.227.15.183:465
2014.04.12 00:18:43 LOG5[8188]: Service [1und1-smtp] connected remote server from 192.168.0.3:49454
2014.04.12 00:18:44 LOG3[8188]: readsocket: Connection reset by peer (WSAECONNRESET) (10054)
2014.04.12 00:18:44 LOG5[8188]: Connection reset: 655 byte(s) sent to SSL, 335 byte(s) sent to socket
2014.04.12 00:19:25 LOG5[10220]: Service [t-online-smtp] accepted connection from 127.0.0.1:49458
2014.04.12 00:19:25 LOG5[10220]: s_connect: connected 194.25.134.46:465
2014.04.12 00:19:25 LOG5[10220]: Service [t-online-smtp] connected remote server from 192.168.0.3:49459
2014.04.12 00:19:26 LOG3[10220]: readsocket: Connection reset by peer (WSAECONNRESET) (10054)
2014.04.12 00:19:26 LOG5[10220]: Connection reset: 646 byte(s) sent to SSL, 464 byte(s) sent to socket
2014.04.12 00:20:01 LOG5[9940]: Service [gmail-smtp] accepted connection from 127.0.0.1:49466
2014.04.12 00:20:01 LOG5[9940]: s_connect: connected 173.194.69.109:465
2014.04.12 00:20:01 LOG5[9940]: Service [gmail-smtp] connected remote server from 192.168.0.3:49467
2014.04.12 00:20:04 LOG3[9940]: readsocket: Connection reset by peer (WSAECONNRESET) (10054)
2014.04.12 00:20:04 LOG5[9940]: Connection reset: 661 byte(s) sent to SSL, 490 byte(s) sent to socket
2014.04.12 00:20:33 LOG5[9000]: Service [yahoo-smtp] accepted connection from 127.0.0.1:49469
2014.04.12 00:20:33 LOG5[9000]: s_connect: connected 188.125.69.59:465
2014.04.12 00:20:33 LOG5[9000]: Service [yahoo-smtp] connected remote server from 192.168.0.3:49470
2014.04.12 00:20:35 LOG3[9000]: readsocket: Connection reset by peer (WSAECONNRESET) (10054)
2014.04.12 00:20:35 LOG5[9000]: Connection reset: 638 byte(s) sent to SSL, 288 byte(s) sent to socket

Stunnel startet mit debug-bit 7:
2014.04.12 15:08:07 LOG5[6892]: Reading configuration from file stunnel.conf
2014.04.12 15:08:07 LOG5[6892]: FIPS mode disabled
2014.04.12 15:08:07 LOG5[6892]: Configuration successful
2014.04.12 15:08:07 LOG7[6892]: Service [t-online-smtp] (FD=480) bound to 127.0.0.1:5025
2014.04.12 15:08:07 LOG7[6892]: Service [1und1-smtp] (FD=484) bound to 127.0.0.1:5026
2014.04.12 15:08:07 LOG7[6892]: Service [gmail-smtp] (FD=476) bound to 127.0.0.1:5027
2014.04.12 15:08:07 LOG7[6892]: Service [yahoo-smtp] (FD=568) bound to 127.0.0.1:5028
2014.04.12 15:08:07 LOG7[6892]: Service [hotmail-smtp] (FD=564) bound to 127.0.0.1:5029
2014.04.12 15:08:07 LOG7[6892]: Service [gmail-pop3] (FD=572) bound to 127.0.0.1:110
2014.04.12 15:08:07 LOG7[6892]: Service [gmail-imap] (FD=576) bound to 127.0.0.1:143
2014.04.12 15:08:07 LOG7[6892]: Signal pipe is empty

Einträge in der stunnel.conf
[t-online-smtp]
client = yes
accept = 5025
connect = securesmtp.t-online.de:465

[1und1-smtp]
client = yes
accept = 5026
connect = smtp.1und1.de:465

[gmail-smtp]
client = yes
accept = 5027
connect = smtp.gmail.com:465

[yahoo-smtp]
client = yes
accept = 5028
connect = smtp.mail.yahoo.com:465

[hotmail-smtp]
client = yes
accept = 5029
connect = smtp.live.com:465

[gmx-smtp]
client = yes
accept = 5030
connect = mail.gmx.net:465


[gmail-pop3]
client = yes
accept = 127.0.0.1:110
connect = pop.gmail.com:995

[gmail-imap]
client = yes
accept = 127.0.0.1:143
connect = imap.gmail.com:993

Einstellungen in Wswin
T-Online
Bild

1und1
Bild

Google
Bild

Yahoo
Bild

Der Ergebnis in Outlook:
Bild

Werner

Änderung am 18.04.2014:
- bei den Ports die IP-Adresse 127.0.0.1 (=localhost) entfernt,
damit kann man den Rechner, auf dem STunnel läuft auch für andere
Computer (oder auch Webcameras usw. ) nutzen die E-Mails verschlüsselt zu senden.

GMX als E-Mail-Provider (Port 5030) ergänzt!

Viele machen anscheinend den Fehler, wenn Sie in der stunnel.conf etwas ändern, das man danach die Änderung STunnel
mit "Reload Configuration" auch mitteilen muß.
Gesperrt