[SOLVED] Strato + Postfix

Ronny1978

Member
Mar 13, 2023
68
16
8
Hallo Zusammen,

ich versuche verzweifelt die Postfix Konfiguration mir einer Strato E-Mail hinzubekommen. Ich bin nach den typischen Anleitungen vorgegangen, komme ich aber zu keinem Ergebnis. Folgendes habe ich eingestellt:

1. Datacenter -> Option -> E-Mail from Address -> Absender eingestellt proxmox@meineDomain.de (ist auch bei Strato angelegt
2. /etc/postfix/main.cf bearbeitet

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

myhostname=pve.home.arpa

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#mydestination = $myhostname, localhost.$mydomain, localhost
#relayhost =
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +

compatibility_level = 2

relayhost = [smtp.strato.de]:465
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt

3. /etc/postfix/sasl_passwd bearbeitet

Code:
[smtp.strato.de]:465 proxmox@meineDomain.de:meinPasswort

4. Folgende Fehlermeldungen stehen im Log:
Network is unreachable
warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
SMTPS wrappermode (TCP port 465) requires setting "smtp_tls_wrappermode = yes", and "smtp_tls_security_level = encrypt" (or stronger)

Ich hoffe, mir kann jemand helfen, wie ich die E-Mail Notification zum Laufen bringen kann. Die Testmails komme leider nicht an. Ich bin noch ein Neuling bei Proxmox ;)

Danke euch. Ich wünsche euch ein wunderschönes Wochenende.
 
Code:
/etc/postfix/sasl_passwd
smtp.strato.de:465 email@domain.xx:<Password>

Code:
/etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

myhostname=pve.home.arpa

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#mydestination = $myhostname, localhost.$mydomain, localhost
#relayhost =
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +

compatibility_level = 2

relayhost = smtp.strato.de:465
smtp_use_tls = yes
smtp_tls_wrappermode = yes
smtp_sasl_auth_enable = yes
smtp_tls_security_level = encrypt
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
sender_canonical_classes = envelope_sender, header_sender
sender_canonical_maps =  regexp:/etc/postfix/sender_canonical_maps
smtp_header_checks = regexp:/etc/postfix/header_check

Ich denke, die entscheidende Zeile bei Strato ist:

smtp_tls_wrappermode = yes

Danach ging es. ;)
 
Muss ich noch mal schauen, habe ich aber glaube drin. Strato raubt mir da echt den letzten Nerv.

Trotzdem erstmal vielen Dank
Da muss ich dir leider zustimmen. ;) Du kannst ja mal dein Log posten. Das musste bei mir auch drin stehen:

smtp_tls_security_level = encrypt
 
;), ja: Ich muss/musste mich hier auch erst einlesen. Es gibt viele Anleitungen. Die richtige zu finden, ist nicht immer einfach.
 
Last edited:
Hallo!
Bei mir ist trotzdem noch der Wurm drin...
2023-08-30T11:59:50.440903+00:00 pmg postfix/lmtp[412]: 69A1D1540A: to=<xxx@xxx.com>, relay=127.0.0.1[127.0.0.1]:10023, delay=2390, delays=2390/0.04/0.05/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])

Was will er mir damit sagen?
Kurz davor hatte er Mails gesendet...

relayhost = smtp.strato.de:465
smtp_use_tls = yes
smtp_tls_wrappermode = yes
smtp_sasl_auth_enable = yes
smtp_tls_security_level = encrypt
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
 
Komisch, aber nachdem ich TLS im Webinterface deaktiviert habe schickt er auch Mails raus...