Todo: DH-Parameter einbinden
Debian ( ab 4.0 ):
exim4 sasl2-bin
/etc/exim4/conf.d/auth/30_exim4-config_examples
:
( einfach Kommentarzeichen entfernen )
plain_saslauthd_server: driver = plaintext public_name = PLAIN server_condition = ${if saslauthd{{$auth2}{$auth3}}{1}{0}} server_set_id = $auth2 server_prompts = : .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}} .endif login_saslauthd_server: driver = plaintext public_name = LOGIN server_prompts = "Username:: : Password::" # don't send system passwords over unencrypted connections server_condition = ${if saslauthd{{$auth1}{$auth2}}{1}{0}} server_set_id = $auth1 .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}} .endif
/etc/exim4/conf.d/main/000_localmacros
: ( nur ohne SSL notwendig )
AUTH_SERVER_ALLOW_NOTLS_PASSWORDS="true"
update-exim4.conf /etc/init.d/exim4 reload
Debian:
swaks oder libmime-perl oder metamail
swaks -f from@example.com -t to@example.com -s localhost -a -au nutzer14 -ap test -apt
Encodiertes Passwort erzeugen:
perl -MMIME::Base64 -e 'print encode_base64("iw\0iw\0passwort")'
oder:
echo -en "iw\0iw\0passwort" | mimencode
Authentifizierung testen:
netcat -v localhost 25 220 notebook12.linuxhotel.de ESMTP Postfix (Debian/GNU) EHLO localhost 250-localhost 250-AUTH LOGIN PLAIN AUTH PLAIN aXcAaXcAdGVzdA== 235 Authentication successful