情報過多の時代、古いPCを蘇らせて、よりシンプルに使っていくために、Linuxを勉強してます

2010年4月14日水曜日

exim4を使ったメール送信

exim4のスマートホストを使ってgmailにリレーしてメール送信させるための設定

# aptitude install exim4
# dpkg-reconfigure exim4-config

  • Choose mail sent by SMARTHOST; received via SMTP or fetchmail
  • Type System Mail Name: e.g. company.com
  • Type IP Adresses to listen on for incoming SMTP connections: 127.0.0.1
  • Leave Other destinations for which mail is accepted blank
  • Leave Machines to relay mail for: blank
  • Type Machine handling outgoing mail for this host (smarthost): smtp.gmail.com::587
  • Choose NO, don't hide local mail name in outgoing mail.
  • Chose NO, don't keep number of DNS-queries minimal (Dial-on-Demand).
  • Choose YES, split configuration into small files
# vim /etc/exim4/passwd.client

以下の記述を追加
gmail-smtp.l.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD
*.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD
smtp.gmail.com:yourAccountName@gmail.com:y0uRpaSsw0RD

# update-exim4.conf

メールコマンドで送信テスト
 gmailで、専用のアドレスを作成してしまった。成功!

参照サイト:
http://wiki.debian.org/GmailAndExim4

0 件のコメント:

コメントを投稿

category

reader