-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Malformed response (XOAUTH2?) #101
Comments
So I'm running into the same issue on Alpine (not using XOAUTH here) in relay mode. After trying a bunch of random things, it seems to get fixed automagically by doing any kind of DNS resolution before Postfix receives any mail. I tried adding an nslookup as init script and it helped but it was still eventually falling back to this every now and then... So I moved to the Ubuntu image, which had other issues (see #102) but once those were fixed it works all fine here on k8s 1.22 |
I'm getting this far with XOAUTH2. 2022-03-15T20:48:15.492557979Z 2022-03-15T21:48:15.491803+01:00 INFO postfix/smtp[322]: < smtp.gmail.com[209.85.233.108]:587: 250-smtp.gmail.com at your service, [185.65.135.169] But then this appears. 2022 Mar 15 21:48:15 nas Process 609233 (smtp) of user 100 dumped core. Stack trace of thread 322: |
Hopefully this should reduce issues like #101.
boky/postfix:latest
Trying to setup a smtp relay using gmail and xoauth2 but getting this. Any idea how to debug this further or what it could be?
INFO postfix/smtpd[275]: disconnect from test.local.lan[192.168.1.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
WARNING postfix/qmgr[265]: warning: private/smtp socket: malformed response
WARNING postfix/qmgr[265]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
WARNING postfix/master[263]: warning: process /usr/libexec/postfix/smtp pid 279 killed by signal 11
WARNING postfix/master[263]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
INFO postfix/error[282]: 39B9612B: to=test@example.com, relay=none, delay=0.77, delays=0.11/0.65/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
I've setup these options
ALLOWED_SENDER_DOMAINS domain1 domain2
MASQUERADED_DOMAINS domain2
RELAYHOST [smtp.gmail.com]:587
RELAYHOST_USERNAME gmail-address
POSTFIX_smtp_tls_security_level encrypt
XOAUTH2_CLIENT_ID id
XOAUTH2_SECRET secret
ALLOW_EMPTY_SENDER_DOMAINS true
XOAUTH2_INITIAL_ACCESS_TOKEN token
XOAUTH2_INITIAL_REFRESH_TOKEN token
INBOUND_DEBUGGING 1
XOAUTH2_SYSLOG_ON_FAILURE yes
XOAUTH2_FULL_TRACE yes
/var/spool/postfix and /etc/postfix each have a volume.
The text was updated successfully, but these errors were encountered: