Closed 0xbrigles closed 2 years ago
I think there's a hint in the first line you included from /var/log/messages
:
Mar 8 16:58:37 de-testserver-01 pluginviewer[22979]: sasl-xoauth2: Exception during init: * Line 4, Column 3#012 Missing ',' or '}' in object declaration
Can you share your sasl-xoauth2.conf
, with the sensitive bits redacted?
Oh yes, it is a comma fail. My configuration looks like the following:
{
"client_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"client_secret": ""
"token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token"
}
I added the missing comma after "client_secret": ""
and now the plugin is loaded correctly.
/usr/sbin/pluginviewer -c
:
....
Plugin "sasl-xoauth2" [loaded], API version: 4
SASL mechanism: XOAUTH2, best SSF: 60
security flags: NO_ANONYMOUS|PASS_CREDENTIALS
features: WANT_CLIENT_FIRST|PROXY_AUTHENTICATION
....
I totally missinterpret the error message.
Now i think the authentication process is successfully done.
I've got a bounce message from relay but this should be a missing send as permission or something in this direction i think (Client not authenticated to send mail
).
Thanks for your fast reply and for this awesome project :+1:
Hi and thanks for your awesome work. Sadly i got this "No worthy mechs found" errors on my test maschine.
OS: Almalinux 8.5 (RHEL clone like CentOS) mail_version = 3.5.8
output
/var/log/messages
output
/var/log/maillog
/usr/sbin/pluginviewer -s (list server authentication (SASL) plugins)
the
libsasl-xoauth2.so
file is located under/usr/lib64/sasl2/
like all other sasl.so`s do.i compiled the plugin with the options
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc
selinux is temporarly disabled for testing
Maybe someone got the same error and knows what`s wrong on my setup.