さくらVPSで、メールを送信出来るようにする

以下のページを見ながら、postfixのインストールと設定。
さくらのVPSをもう少しセットアップしてみる | @blog.justoneplanet.info


とりあえず、送信専用。

"/etc/postfix/main.cf" 更新箇所

myhostname = www9999u.sakura.ne.jp
mydomain = www9999u.sakura.ne.jp
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

saslauthdの起動

/etc/rc.d/init.d/saslauthd start
/sbin/chkconfig saslauthd on
/sbin/chkconfig --list caslauthd

postfixの起動

/etc/rc.d/init.d/postfix start
/sbin/chkconfig postfix on