postfix-tls / sid

メモ

 # dpkg --get-selections | grep postfix
postfix                                         install
postfix-ldap                                    install
postfix-pcre                                    install
postfix-tls                                     install
 # dpkg --get-selections | grep sasl
libsasl2                                        install
libsasl2-modules                                install
libsasl2-modules-gssapi-heimdal                 install
sasl2-bin                                       install
chgrp postfix /var/spool/postfix/etc/sasldb2
chmod 640 /var/spool/postfix/etc/sasldb2
saslpasswd2 -f /var/spool/postfix/etc/sasldb2 -u $DOMAIN $USER

main.cf

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_local_domain = $mydomain
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
	reject_unauth_destination
broken_sasl_auth_clients = yes

master.cf

smtps     inet  n       -       n       -       -       smtpd
	-o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes