postfixを使ってメールリレーをするように設定
/etc/postfix/main.cfの以下を書き換え
relayhost = [smtp_host_name]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_sasl_security_options = noanonymous
/etc/postfix/relay_passwordを作成
smtp_host_name:587 user_name:password
postmapコマンドを実行
postmap hash:/etc/postfix/relay_password