sakura VPS の postfix を google mail へ一本化
さて、apacheでサクッと複数ドメインは設定できたがそれらのメールアドレスはどうするの?という問題。dovecotでもいいが、一番簡単なのは、 virtusertable でgmail.comへ飛ばす方法。
/etc/postfix/main.cf の最下行に以下2行を追加virtual_alias_domains = hoge1.com , hoge2.info
virtual_maps=hash:/etc/postfix/virtusertable
次は /etc/postfix/virtusertable に振り分けをテキストで書く[email protected] [email protected]
[email protected] [email protected]
保存したら、 sudo postmap /etc/postfix/virtusertable で virtusertable.db 作成
後は、 sudo /etc/init.d/postfix restart でおしまい。
The Art of Opensource: sakura VPS の postfix を google mail へ一本化
12ヶ月前 | 固定リンク | 2011年 5月 27日 | 
