dragonvalor
Goto Top

Einrichtungsprobleme von Postfix und dem SMTP Zugang mit TLS Verschlüsselung von Office 365

Hallo,
ich habe ein Problem mit der Emailversendung über den SMTP-Sever von Office 365 mit hilfe von Postfix.

Hier einmal die mail.log Einträge des Fehlers.
Feb  3 23:39:00 webserver-example postfix/master[4769]: terminating on signal 15
Feb  3 23:39:00 webserver-example postfix/master[5025]: daemon started -- version 2.9.6, configuration /etc/postfix
Feb  3 23:39:01 webserver-example postfix/pickup[5028]: EBE347A0870: uid=0 from=<root>
Feb  3 23:39:01 webserver-example postfix/cleanup[5039]: EBE347A0870: message-id=<20140203223901.EBE347A0870@example.com>
Feb  3 23:39:02 webserver-example postfix/qmgr[5029]: EBE347A0870: from=<root@example.com>, size=818, nrcpt=1 (queue active)
Feb  3 23:39:02 webserver-example postfix/local[5041]: EBE347A0870: to=<root@example.com>, orig_to=<root>, relay=local, delay=0.15, delays=0.1/0.01/0/$
Feb  3 23:39:02 webserver-example postfix/qmgr[5029]: EBE347A0870: removed
Feb  3 23:39:09 webserver-example postfix/pickup[5028]: 376D37A0870: uid=0 from=<root>
Feb  3 23:39:09 webserver-example postfix/cleanup[5039]: 376D37A0870: message-id=<20140203223909.376D37A0870@example.com>
Feb  3 23:39:09 webserver-example postfix/qmgr[5029]: 376D37A0870: from=<root@example.com>, size=297, nrcpt=1 (queue active)
Feb  3 23:39:09 webserver-example postfix/smtp[5046]: warning: pod51014.outlook.com[157.56.253.54]:587 offered null AUTH mechanism list
Feb  3 23:39:14 webserver-example postfix/smtp[5046]: 376D37A0870: to=<p.straub@gmx.de>, relay=pod51014.outlook.com[157.56.253.54]:587, delay=5.5, delays$
Feb  3 23:39:14 webserver-example postfix/smtp[5046]: 376D37A0870: lost connection with pod51014.outlook.com[157.56.253.54] while sending RCPT TO
Feb  3 23:39:14 webserver-example postfix/cleanup[5039]: BDE657A0872: message-id=<20140203223914.BDE657A0872@example.com>
Feb  3 23:39:14 webserver-example postfix/qmgr[5029]: BDE657A0872: from=<>, size=2151, nrcpt=1 (queue active)
Feb  3 23:39:14 webserver-example postfix/bounce[5048]: 376D37A0870: sender non-delivery notification: BDE657A0872
Feb  3 23:39:14 webserver-example postfix/qmgr[5029]: 376D37A0870: removed
Feb  3 23:39:14 webserver-example postfix/local[5041]: BDE657A0872: to=<root@example.com>, relay=local, delay=0.09, delays=0.04/0/0/0.05, dsn=2.0.0, s$
Feb  3 23:39:14 webserver-example postfix/qmgr[5029]: BDE657A0872: removed
Feb  3 23:41:08 webserver-example postfix/master[5025]: terminating on signal 15
Feb  3 23:41:09 webserver-example postfix/master[5189]: daemon started -- version 2.9.6, configuration /etc/postfix
Feb  3 23:41:16 webserver-example postfix/pickup[5192]: 0F55B7A0870: uid=0 from=<root>
Feb  3 23:41:16 webserver-example postfix/cleanup[5197]: 0F55B7A0870: message-id=<20140203224116.0F55B7A0870@example.com>
Feb  3 23:41:16 webserver-example postfix/qmgr[5193]: 0F55B7A0870: from=<root@example.com>, size=297, nrcpt=1 (queue active)
Feb  3 23:41:16 webserver-example postfix/smtp[5199]: warning: pod51014.outlook.com[157.56.249.54]:587 offered null AUTH mechanism list
Feb  3 23:41:21 webserver-example postfix/smtp[5199]: 0F55B7A0870: to=<testmail@gmx.de>, relay=pod51014.outlook.com[157.56.249.54]:587, delay=5.6, delays$
Feb  3 23:41:21 webserver-example postfix/smtp[5199]: 0F55B7A0870: lost connection with pod51014.outlook.com[157.56.249.54] while sending RCPT TO
Feb  3 23:41:21 webserver-example postfix/cleanup[5197]: 9BD8E7A0872: message-id=<20140203224121.9BD8E7A0872@example.com>
Feb  3 23:41:21 webserver-example postfix/qmgr[5193]: 9BD8E7A0872: from=<>, size=2151, nrcpt=1 (queue active)
Feb  3 23:41:21 webserver-example postfix/bounce[5201]: 0F55B7A0870: sender non-delivery notification: 9BD8E7A0872
Feb  3 23:41:21 webserver-example postfix/qmgr[5193]: 0F55B7A0870: removed
Feb  3 23:41:21 webserver-example postfix/local[5203]: 9BD8E7A0872: to=<root@example.com>, relay=local, delay=0.11, delays=0.05/0.01/0/0.05, dsn=2.0.0$
Feb  3 23:41:21 webserver-example postfix/qmgr[5193]: 9BD8E7A0872: removed

Des weiteren hier die main.cf von Postfix.
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file = /etc/ssl/certs/ssl-certsnakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-certsnakeoil.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_cache
myhostname = example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = example.com, localhost.localdomain, localhost
relayhost = pod51014.outlook.com:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps =hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
smtp_generic_maps = hash:/etc/postfix/generic
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.8.38.0/24
mailbox_size_limit = 0
recipient_delimiter =
inet_interfaces = all
inet_protocols = all
und zum Schluss noch der aufbau der generic (wo ich das Gefühl habe, wenn ich mir die Log anschaue, das diese überhaupt nicht verwendet wird, da nur von "root@example" und nicht von "info@example" was geschrieben wird.
root@example.com  info@example.com

Vielleicht hat ja einer das selbe Problem bzw. kennt sich mit Postfix sehr gut aus. Ich finde den Fehler hierbei nicht.

Grüße und vielen Dank im voraus

Pad

Content-Key: 228580

Url: https://administrator.de/contentid/228580

Printed on: April 18, 2024 at 00:04 o'clock

Member: AndiEoh
AndiEoh Feb 05, 2014 at 18:02:22 (UTC)
Goto Top
Hallo,

Das ist wohl dein Problem:

warning: pod51014.outlook.com[157.56.249.54]:587 offered null AUTH mechanism list

Eine Diskussion dazu findet man hier:

https://groups.google.com/forum/#!topic/list.postfix.users/OqEv1kPLLo0

Mögliche Lösung: Falls Cyrus SASL verwendet wird müssen "plain" und "login" aktiviert sein. Eventuell hilft schon "smtp_sasl_security_options = noanonymous".

Mehr dazu ist hier zu finden:

http://www.postfix.org/SASL_README.html#client_sasl

Gruß

Andi
Member: DragonValor
DragonValor Mar 03, 2014 at 14:33:15 (UTC)
Goto Top
Hi,
habe das mit dem Postfix nach zwei Wochen verworfen und es über SSMTP realisiert. Allerdings gibt es noch ein Problem mit dem verschicken einer Mail mit einer anderen "From"-Adresse.
Gibt es da bei Office 365 Einstellungsmöglichkeiten das zu aktivieren oder kennt jemand das Phänomen?

Bekomme beim Abschicken der Mail immer folgenden Fehler:

Mar 3 12:24:48 webserver sSMTP[52040]: 550 5.7.1 Client does not have permissions to send as this sender


Beim abschicken einer Email mit der Adresse, welche auch für den Login am Server benutzt wird funktioniert alles.

G Patrick
Member: AndiEoh
AndiEoh Mar 04, 2014 at 12:47:45 (UTC)
Goto Top
Hallo,

ich nehme an das ist ein "Feature" um das Fälschen der Absender Adresse zu unterbinden.

Gruß

Andi
Member: DragonValor
DragonValor Mar 05, 2014 at 09:42:03 (UTC)
Goto Top
Hi Andi,
ja das war das Problem. Allerdings kann ich jetzt nur als root eine Mail mit der geänderten From-Adresse verschicken. Sobald der von Apache genutzte User www-data eine Mail verschicken will, kommt der selbe Fehler.
Kann man den User ändern oder gibt es da einen anderen Weg?`

G Patrick
Member: DragonValor
DragonValor May 22, 2014 at 10:42:24 (UTC)
Goto Top
Habe es nun mit SSMTP zum laufen gebracht. Falls jemand Informationen dazu brauch einfach kurz schreiben. G Patrick