Postfix

From Wikifications
Revision as of 17:00, 16 April 2005 by Dre (Talk | contribs) (initial rev from backup)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Postfix docs:

http://yocum.org/faqs/postfix-tls-sasl.html

http://www.porcupine.org/postfix-mirror/newdoc/SASL_README.html

http://postfix.state-of-mind.de/patrick.koetter/smtpauth/index.html

Install postfix and cyrus-sasl2 from ports.

in /etc/rc.conf:

sendmail_enable3D"NONE"

in /etc/periodic.conf:

daily_clean_hoststat_enable 3D "NO"
daily_status_mail_rejects_enable 3D "NO"
daily_status_include_submnit_mailq 3D "NO"
daily_submit_queryrun 3D "NO"

drop in a default aliases file:

cp /usr/local/etc/postfix/aliases /etc/aliases

Create a copy of sample-main.cf and customize. Important bits are:

# sasl config
smtpd_sasl_auth_enable 3D yes
smtpd_sasl_security_options 3D noanonymous
smtpd_sasl_local_domain 3D $myhostname
broken_sasl_auth_clients 3D yes
smtpd_sender_restrictions 3D permit_sasl_authenticated, permit_mynetworks
smtpd_recipient_restrictions 3D permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
# tls config
smtpd_use_tls 3D yes
smtpd_enforce_tls 3D no
smtp_tls_note_starttls_offer 3D yes
smtpd_tls_key_file 3D /usr/local/etc/apache/CA/server_key.pem
smtpd_tls_cert_file 3D /usr/local/etc/apache/CA/server_cert.pem
smtpd_tls_CAfile 3D /usr/local/etc/apache/CA/cacert.pem
smtpd_tls_received_header 3D yes
smtpd_tls_session_cache_timeout 3D 3600s
tls_random_source 3D dev:/dev/urandom
smtpd_tls_loglevel 3D 1

For cyrus Change the cyrus lines in master.cf to:

cyrus     unix  -       n       n       -       -       pipe
 user3Dcyrus argv3D/usr/local/cyrus/bin/deliver -r ${sender} -m ${extension} ${user}

Enable cyrus as the mailbox transport in main.cf:

mailbox_transport 3D cyrus

For courier

home_mailbox 3D Maildir/

back to meta