Admin Life Errors, Fixes, and Encounters

19Oct/10Off

freebsd cyrus sasl2 saslauthd

Here is a step by step setup of what I did to get cyrus sasl2 saslauthd working on Freebsd

You'll notice that i reinstall postfix due to the fact that I needed it compiled with sasl2 which I didn't have.

# cd /usr/ports/security/cyrus-sasl2-saslauthd
# make install clean
# cd /usr/ports/mail/postfix
# make config (make sure you check on cyrus-sasl2-saslauthd)
# make
# make FORCE_PKG_REGISTER=yes install clean

now you edit /etc/rc.conf and add the following lines near the top of the file.

postfix_enable="YES"
saslauthd_enable="YES"

#If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

# And you can disable some sendmail specific daily maintenance routines in your system
# If /etc/periodic.conf does not exist please create it and add those values.

/etc/periodic.conf file:

daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

After installing saslauthd

/usr/local/etc/rc.d/saslauthd start
vi /etc/postfix/main.cf

Add this to the end...

# sasl config
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =

smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

/usr/local/sbin/postfix stop && /usr/local/sbin/postfix start

/usr/local/sbin/saslpasswd2 -c -u domain.com -a smtpauth usernameeee

/usr/local/etc/rc.d/saslauthd restart

Filed under: FreeBSD, Unix Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.