Here's the first question in the new Postfix forum. I'm re-posting this from the Linux Server forum...
Has anybody gotten Cyrus SASL to work with Postfix? I want to use SASL so that authenticated users can relay.
I've already seen the docs on Postfix's website about this.
This is what I've done....
- installed Cyrus SASL (tried both RPMs and source)
- compiled Postfix with support for SASL...
make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include" AUXLIBS="-L/usr/local/lib -lsasl"
- edited the main.cf to include the sasl parameters...
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
relay_domains = $mydestination
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
check_relay_domains
- created /usr/lib/sasl/smtpd.conf and added "pwcheck_method: sasldb" inside. This file is owned by the postfix user.
- ran 'saslpasswd -a smtpd -c user' to create a user in the /etc/sasldb database
If I telnet to the server and issue a EHLO command, it responds with the correct AUTH commands so SASL is compiled okay. The problem is I can't authenticate.
Anyone have any ideas? This is driving me crazy! I'm about to give up and allow relaying by IP address.
Thanks,
ChrisP
Has anybody gotten Cyrus SASL to work with Postfix? I want to use SASL so that authenticated users can relay.
I've already seen the docs on Postfix's website about this.
This is what I've done....
- installed Cyrus SASL (tried both RPMs and source)
- compiled Postfix with support for SASL...
make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include" AUXLIBS="-L/usr/local/lib -lsasl"
- edited the main.cf to include the sasl parameters...
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
relay_domains = $mydestination
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
check_relay_domains
- created /usr/lib/sasl/smtpd.conf and added "pwcheck_method: sasldb" inside. This file is owned by the postfix user.
- ran 'saslpasswd -a smtpd -c user' to create a user in the /etc/sasldb database
If I telnet to the server and issue a EHLO command, it responds with the correct AUTH commands so SASL is compiled okay. The problem is I can't authenticate.
Anyone have any ideas? This is driving me crazy! I'm about to give up and allow relaying by IP address.
Thanks,
ChrisP