Prev / Next

2010-09-08 / さくら VPS で Postfix

とりあえず,特に難しく考えることもなく使えるはずだけど,
試用期間中は OP25B があるので,どこかのサーバを経由しないといけない.

で,今回は gmail 経由で送ることにしてみた.
# 基本的な設定は済んでる前提

/etc/postfix/main.cf

mtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_sasl_tls_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes


認証用の id と password は /etc/postfix/saslpass に

[smtp.gmail.com]:587 [email protected]:password


のように書いて,

postmap /etc/postfix/saslpass


saslpass.db が出来るので,saslpass は消去可.

あとは open relay checker で,relay しないか確認.

- さくらの VPS 申し込んでみた [2010-09-07-1]

Referrer (Inside):
[2010-09-23-1] さくらの VPS に Momonga Linux 7 をインストールする
comments powered by Disqus