[Erledigt] Postfix & SASL2 problem

Du hast Probleme mit Deinem eMail-Programm, Webbrowser oder Textprogramm? Dein Lieblingsprogramm streikt?
Antworten
ppreininger
Beiträge: 4
Registriert: 22.09.2019 20:40:49

[Erledigt] Postfix & SASL2 problem

Beitrag von ppreininger » 22.09.2019 21:09:25

Hallo,
ich habe ein Problem mit meiner postfix Konfiguration:

Grundsätzlich
sind bei mir mehrere E-Mail Adressen konfiguriert, die auch über ihre eigenen SMTP Server senden sollen. Dazu habe ich die Sender Relay DB eingerichtet. Die Mails werden auch wie es scheint von Postfix übernommen, es wird auch versucht, Mails an den jeweiligen SMTP weiterzuleiten. Jedoch bekommen ich einen Fehler, dass der SASL2 Mechanismus nicht verfügbar ist.

Konfiguration:

postconf -n

postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = maxwell.mydomain.com, localhost.mydomain.com, localhost
myhostname = maxwell.mydomain.com
mynetworks = 192.168.3.0/24 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sender_dependent_authentication = yes
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_sasl_application_name=smtpd


sasl_passwd:
# Per-sender authentication; see also /etc/postfix/sender_relay.
xxx@yyy.zz xxx@yyy.zz:my_pwd
admin@yyy.zz admin@yyy.zz:other_pwd
office@abc.de office@abc.de:pwd

# Login information for the default relayhost.
[default.server] xxx@yyy.zz:my_pwd


sender_relay:
# Per-sender provider; see also /etc/postfix/sasl_passwd.
xxx@yyy.zz [server.ddd]
admin@yyy.zz [server2.aaa]
office@abc.de [server3.aaa]



Wenn ich eine Mail sende bekomme ich im mail.log folgendes präsentiert:
Sep 22 16:39:21 maxwell postfix/smtpd[23975]: connect from unknown[192.168.4.130]
Sep 22 16:39:21 maxwell postfix/smtpd[23975]: 502A1A0110: client=unknown[192.168.4.130], sasl_method=PLAIN, sasl_username=pete
Sep 22 16:39:21 maxwell postfix/cleanup[23967]: 502A1A0110: message-id=<BC0B8E7D-D15F-47C8-879D-8920DACA075B@yyyy>
Sep 22 16:39:21 maxwell postfix/qmgr[23905]: 502A1A0110: from=<xxxxxx>, size=602, nrcpt=1 (queue active)
Sep 22 16:39:21 maxwell postfix/smtp[23915]: warning: SASL authentication failure: No worthy mechs found
Sep 22 16:39:21 maxwell postfix/smtp[23915]: 502A1A0110: to=<yyyyyyy>, relay=mail_server[ip_address]:25, delay=0.16, delays=0.08/0/0.08/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server mail_server[ip_address]: no mechanism available)



Ich bin da schon etwas am Verzweifeln. Ich habe bereits die libsasl2-2 erneut installiert. Danke für Eure Hilfe

lg
Peter
Zuletzt geändert von ppreininger am 24.09.2019 12:19:37, insgesamt 1-mal geändert.

Benutzeravatar
novalix
Beiträge: 1909
Registriert: 05.10.2005 12:32:57
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: elberfeld

Re: Postfix & SASL2 problem

Beitrag von novalix » 23.09.2019 13:00:50

Hi,

hast Du die eingebundenen Dateien mit den Auth-Daten gemapped?

Code: Alles auswählen

postmap hash:/etc/postfix/sasl_passwd
et.al.
Das Wem, Wieviel, Wann, Wozu und Wie zu bestimmen ist aber nicht jedermannns Sache und ist nicht leicht.
Darum ist das Richtige selten, lobenswert und schön.

ppreininger
Beiträge: 4
Registriert: 22.09.2019 20:40:49

Re: Postfix & SASL2 problem

Beitrag von ppreininger » 23.09.2019 13:27:18

Ja, hab ich. Für sender relay und die Passwörter

ppreininger
Beiträge: 4
Registriert: 22.09.2019 20:40:49

Re: Postfix & SASL2 problem

Beitrag von ppreininger » 24.09.2019 12:17:28

Danke, ich hab's gefunden:

Die Zeile hat in der main.cf gefehlt.
smtp_sasl_security_options = noanonymous

Antworten