Configuring SASL Auth in Postfix
A) SASL Configuration First ensure that Cyrus- SASL and salsauthd are installed. Then configure /etc/sysconfig/saslauthd so that SASL uses IMAP authentication => MECH=rimap FLAGS="-O localhost" (Assuming that localhost is the IMAP Server) restart saslauthd service test sasl by using the command - testsaslauthd. The testsaslauthd command for a user should return success. If it does, SASL configuration is fine. Now to configure Postfix. B) Configure Postfix to use this underlying SASL => 1. Edit main.cf => # vim /etc/postfix/main.cf smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_security_options = noanonymous 2. Edit /usr/lib/sasl2/smtpd.conf => pwcheck_method: saslauthd mech_list: PLAIN LOGIN To ensure that username and the "from" address in an email client match => Create the File vim /etc/postfix/controlled_ envelope_senders # envelope sender owners ( S