3.9 postfix + libsasl failures
Alpine 3.9 introduced split of cyrus-sasl
into multiple packages. This
resulted in plugins removed from the libsasl
package (i.e plain and
login auth were moved into separate packages).
In a container[1] I had postfix configured to use sasl auth for upstream smtp server. This worked fine using alpine:3.8. After I upgraded to alpine:3.9, I started to see errors when attempting to send message to upstream server, errors were
postfix/smtp[88]: warning: SASL authentication failure: No worthy mechs found
After some research, I figured out that I need to add to packages: cyrus-sasl-plain and cyrus-sasl-login, but it did not solve the problem. I was still seeing same error message from postfix and mail won’t go out to the upstream server.
While browsing the APKBUILD
file for cyrus-sasl
, I decided to see
what’s inside it’s config and instead of cd /etc/sasl2
typed
mkdir /etc/sasl2
(don’t ask how). Few steps later I sent a test
message and it was delivered. I thought something else helped, but I
re-traced every step and mkdir /etc/sasl2
was the command which
addressed the problem.
So to sum up: one of the packages libsasl
, cyrus-sasl-plain
, or
cyrus-sasl-login
require presence of the /etc/sasl2
directory.
[1]: https://github.com/sashkab/docker-postfix
(from redmine: issue id 9987, created on 2019-02-16, closed on 2019-06-19)
- Changesets:
- Revision 16692f09 on 2019-02-16T21:40:52Z:
main/cyrus-sasl: add missing /etc/sasl2 to libsasl2
fixes #9987
- Revision 8f5360d3 on 2019-02-16T21:44:14Z:
main/cyrus-sasl: add missing /etc/sasl2 to libsasl2
fixes #9987