MTA: Postfix

SMTP authentification

by ross at 08:40:51 on October 30, 2011

Install:

# cd /usr/ports/security/cyrus-sasl2-saslauthd
# make install clean
# rehash

Options for cyrus-sasl-saslauthd:

  • Leave at their defaults

Add to /etc/rc.conf:

saslauthd_enable="YES"

Create /usr/local/lib/sasl2/smtpd.conf:

pwcheck_method: saslauthd

Start saslauthd:

# service saslauthd start

Add to main.cf:

smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
   permit_mynetworks
   permit_sasl_authenticated
   reject_unauth_destination
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes

Reload postfix:

# postfix reload

 

Comments