exim-und-smtp-authentication-via-imap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exim-und-smtp-authentication-via-imap [2017/08/21 08:45] – baumi | exim-und-smtp-authentication-via-imap [2017/08/22 08:22] (current) – baumi | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~META: | ||
+ | date created = 2013-01-22 16:41 | ||
+ | &date modified = 2013-01-22 16:41 | ||
+ | ~~ | ||
====== EXIM und SMTP Authentication via IMAP ====== | ====== EXIM und SMTP Authentication via IMAP ====== | ||
- | Nachdem der externe Zugriff auf die IMAP Boxen eingerichtet ist, ging es nun darum, wie man den Externen den Mailversand über den öffentlichen Mailserver ermöglichen konnte. | + | Nachdem der externe Zugriff auf die IMAP Boxen [[imaps-proxy-mit-perdition|eingerichtet]] ist, ging es nun darum, wie man den Externen den Mailversand über den öffentlichen Mailserver ermöglichen konnte. |
===== Folgende Dinge sollten dabei erreicht werden: ===== | ===== Folgende Dinge sollten dabei erreicht werden: ===== | ||
Line 24: | Line 28: | ||
</ | </ | ||
- Variante 2 – vorhandenes Zertifikate verwenden – dann weiß man eh was zu tun ist | - Variante 2 – vorhandenes Zertifikate verwenden – dann weiß man eh was zu tun ist | ||
- | | + | |
- | - TLS und Perl Funktionen aktivieren – dazu in / | + | - TLS und Perl Funktionen aktivieren – dazu in / |
MAIN_TLS_ENABLE = yes | MAIN_TLS_ENABLE = yes | ||
perl_startup = do '/ | perl_startup = do '/ | ||
perl_at_start | perl_at_start | ||
</ | </ | ||
+ | - SMTP-Authentication konfigurieren – dazu folgenden Code als / | ||
+ | imap_plain: | ||
+ | driver = plaintext | ||
+ | public_name = PLAIN | ||
+ | server_condition = ${perl{imapLogin}{172.16.1.9}{$2}{$3}} | ||
+ | server_set_id = $2 | ||
+ | |||
+ | imap_login: | ||
+ | driver = plaintext | ||
+ | public_name = LOGIN | ||
+ | server_prompts = " | ||
+ | server_condition = ${perl{imapLogin}{172.16.1.9}{$1}{$2}} | ||
+ | server_set_id = $1 | ||
+ | </ | ||
+ | - exim4 Config aktualisieren und exim neustarten< | ||
+ | # update-exim4.conf | ||
+ | # / | ||
+ | </ | ||
+ | - Testen, ob das alles funktioniert | ||
+ | - Generelles Setup< | ||
+ | # telnet 192.168.1.7 25 | ||
+ | Trying 192.168.1.7... | ||
+ | Connected to 192.168.1.7. | ||
+ | Escape character is ' | ||
+ | 220 psserver1.as1ext.local ESMTP Exim 4.72 Tue, 22 Jan 2013 17:04:03 +0100 | ||
+ | EHLO . | ||
+ | 250-psserver1.as1ext.local Hello . [192.168.1.254] | ||
+ | 250-SIZE 52428800 | ||
+ | 250-PIPELINING | ||
+ | 250-AUTH PLAIN LOGIN | ||
+ | 250-STARTTLS | ||
+ | 250 HELP | ||
+ | QUIT</ | ||
+ | - TLS < | ||
+ | # telnet 192.168.1.7 25 | ||
+ | Trying 192.168.1.7... | ||
+ | Connected to 192.168.1.7. | ||
+ | Escape character is ' | ||
+ | 220 psserver1.as1ext.local ESMTP Exim 4.72 Tue, 22 Jan 2013 17:08:13 +0100 | ||
+ | EHLO . | ||
+ | 250-psserver1.as1ext.local Hello . [192.168.1.254] | ||
+ | 250-SIZE 52428800 | ||
+ | 250-PIPELINING | ||
+ | 250-AUTH PLAIN LOGIN | ||
+ | 250-STARTTLS | ||
+ | 250 HELP | ||
+ | STARTTLS | ||
+ | 220 TLS go ahead</ | ||
+ | - Authentication – das ist ein wenig diffiziler, denn UserID und Passwort werden als base64 string erwartet – printf und openssl helfen, diese Strings zu erhalten: < | ||
+ | # printf ' | ||
+ | dXNlcg== | ||
+ | # printf ' | ||
+ | cGFzc3dvcmQ=</ | ||
+ | # telnet 192.168.1.7 25 | ||
+ | Trying 192.168.1.7... | ||
+ | Connected to 192.168.1.7. | ||
+ | Escape character is ' | ||
+ | 220 psserver1.as1ext.local ESMTP Exim 4.72 Tue, 22 Jan 2013 17:15:00 +0100 | ||
+ | EHLO . | ||
+ | 250-psserver1.as1ext.local Hello . [192.168.1.254] | ||
+ | 250-SIZE 52428800 | ||
+ | 250-PIPELINING | ||
+ | 250-AUTH PLAIN LOGIN | ||
+ | 250-STARTTLS | ||
+ | 250 HELP | ||
+ | AUTH LOGIN | ||
+ | 334 VXNlcm5hbWU6 | ||
+ | dXNlcg== | ||
+ | 334 UGFzc3dvcmQ6 | ||
+ | cGFzc3dvcmQ= | ||
+ | 235 Authentication succeeded | ||
+ | QUIT | ||
+ | 221 psserver1.as1ext.local closing connection | ||
+ | Connection closed by foreign host.</ | ||
+ | |||
+ | {{tag>kb linux exim4 smtp imap mailserver}} | ||
+ |
exim-und-smtp-authentication-via-imap.1503297919.txt.gz · Last modified: 2017/08/21 08:45 by baumi