さくらVPSでメール送信専用サーバ構築

インストール

$ yum install postfix

postfix設定

$ vim /etc/postfix/main.cf
-----
#myhostname = foo.bar.com
myhostname = testhost.com
:
#mydomain = foo.bar.com
mydomain = testhost.com
:
#myorigin = $mydomain
myorigin = $mydomain
:
:
(ファイル末尾に追記)
# SMTP-Auth configuration
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_unauth_destination

# limit
message_size_limit = 10485760

認証デーモン起動&自動起動設定

$ sudo /etc/rc.d/init.d/saslauthd start
$ sudo /sbin/chkconfig saslauthd on
$ sudo /sbin/chkconfig --list saslauthd
# saslauthd       0:off   1:off   2:on    3:on    4:on    5:on    6:off

Postfix起動&自動起動設定

$ sudo /etc/rc.d/init.d/postfix start
$ sudo /sbin/chkconfig postfix on
$ sudo /sbin/chkconfig --list postfix
# postifx       0:off   1:off   2:on    3:on    4:on    5:on    6:off