Closed nightfly83 closed 1 year ago
The fact that you're seeing "set log_full_trace_on_failure to see full ..." in your logs despite having log_full_trace_on_failure
set in your config file leads me to believe that the library is probably looking for its config file in an unexpected spot. I'm assuming you've built the library yourself since we don't have a pre-built library for Xenial, so can you double-check the baked-in config-file path?
$ strings PATH_TO_LIB_DIR/libsasl-xoauth2.so | grep sasl-xoauth2.conf
/etc/sasl-xoauth2.conf
My guess is that your library is looking in /usr/local/etc
rather than /etc
, in which case you'll have to move sasl-xoauth2.conf
.
Yes, you're guess was right:
root@fw-scar:~# strings /usr/lib/sasl2/libsasl-xoauth2.so | grep sasl-xoauth2.conf /usr/local/etc/sasl-xoauth2.conf
And sure, the package was compiled from source.
Problem solved, Thanks for your help.
Hi, on my system (Ubuntu 16.4.07 LTS with ESM), when try to connect to gmail via Postfix and sasl-xoauth2 I receive this error:
Oct 8 08:19:01 fw-scar postfix/smtp[19884]: 2467B284D8C: to=destinationaddress@gmail.com, relay=smtp.gmail.com[142.251.9.109]:587, delay=0.72, delays=0.1/0.03/0.58/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.gmail.com[142.251.9.109]: bad protocol / cancel)
Everything seems to be configured correctly:
Just in case, I copied the certificate file (with the *crt extension) in /var/spool/postfix/etc/ssl/certs/ and a copy of /etc/tokens/mytokensfile is in /var/spool/postfix/etc/tokens (just to avoid any chroot issue).
This is my saslfinger output:
Some additional informations:
1) I was unable to pickup any email via the sasl_xoauth2 lib before to copy it in /var/lib (i was getting the error "No worthy mechs found"); 2) With these 2 entries in my /etc/sasl-xoauth2.conf file:
I'm unable to get any trace inside /var/log/syslog:
And no trace log inside /var/log/mail.log:
Any help will be appreciated.
Thanks.