This article is a rough explanation* how you can enable SASL authenticatie with IMAP for Postfix in CentOS 7. The idea is that the user authenticates using the login of the IMAP server. This solution can be used in combination with Kopano servers.
- Install sasl:
yum install cyrus-sasl-plain -y
- Open the default settings for SASL:
FLAGS = "-O your-imap.server.org"
- Run the following commands to enable sasl:
systemctl enable saslauthd systemctl start saslauthd
- Add the following to Postfix
smtpd_sasl_auth_enable = yes smtpd_sasl_path = smtpd smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
* Unlike most articles, this article has not been thoroughly tested. Please use this as a guidance instead.