Open firefrei opened 2 years ago
Probably also important: I am using SASL-XOAUTH with Office365.
Well, for starters, you will need to share your postfix configuration / startup parameters so that I know how to replicate the issue.
Sure! Environment variables:
RELAYHOST="[smtp.office365.com]:587"
RELAYHOST_USERNAME="webservice@example.com"
ALLOWED_SENDER_DOMAINS="webservice@example.com"
POSTFIX_smtp_tls_security_level="encrypt"
POSTFIX_myhostname="example.com"
POSTFIX_inet_protocols="ipv4"
XOAUTH2_CLIENT_ID="-"
XOAUTH2_SECRET="-"
XOAUTH2_SYSLOG_ON_FAILURE="yes"
XOAUTH2_FULL_TRACE="yes"
INBOUND_DEBUGGING="no"
/etc/sasl-xoauth2.conf (manually created)
{
"token_endpoint": "https://login.microsoftonline.com/1234567890/oauth2/v2.0/token",
"client_id": "0987654321",
"client_secret": "",
"log_to_syslog_on_failure": "yes",
"log_full_trace_on_failure": "yes"
}
/var/spool/postfix/xoauth2-tokens/webservice\@example.com
{
"access_token" : "blabla",
"expiry" : "1655877563",
"refresh_token" : "blubblub"
}
@firefrei did you figure this out?
Yes and No. One of my installation suddenly started working, however, the second one still does not work. Both have the latest image. I could not figure out yet what the differences are. Both are authenticating against Office365. v3.5.0 works fine on the second installation, but needs manual interaction every 90 days ;-).
So, yes. Problem still exists.
Hello,
I am running two independent instances of docker-postfix. Both failed to relay mails after upgrading to the latest image version (v3.5.1).
mailq
says: "unknown mail transport error" logs say:As the container only has an IPv4 address, I set POSTFIX_inet_protocols="ipv4" in order to deactivate the lookup of ipv6 addresses by postfix - no changes.
postfix flush
also does not help.Reverting to v3.5.0 solves the issue.