postfix
aptitude install postfix
   exim4は自動的に削除される

/etc/postfix/main.cf 編集
append_dot_mydomain = no
myhostname = ドメインネーム
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ドメインネーム, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8
allow_mail_to_commands = alias,forward,include
permit_mynetworks,reject_non_fqdn_recipient,
  check_relay_domains

エイリアスが古いとエラーになるので、
newaliases
を実行

停止と起動
/etc/init.d/postfix stop
/etc/init.d/postfix start

これで、メールを送信できるようになる。

余談 大量にたまったqueueを削除するには。
/usr/sbin/postfix abort ←緊急で停止する場合はstopじゃなくてコレ!
  (stopだとqueueにあるものを全て送信してから停止するので緊急時は×)
postsuper -d ALL
/etc/init.d/postfix start

 
<< 開始 < 1 2 3 4 5 6 7 8 9 10 > 最後 >>

ページ 1 の 15