postfix のインストール
Debian パッケージから postfix をインストールする
# apt-get install postfix
- Postfix Configuration
- パッケージの設定
- インターネットサイト
- ドメイン名
- hikari.ep.sci.hokudai.ac.jp
- パッケージの設定
postfix の設定
配送先を各ホームディレクトリとし, SPAM 除けの設定を行う.
# vi /etc/postfix/main.cf # ドメインの設定 mydestination = taro.mtk.nao.ac.jp, localhost # 配送先の設定 mailbox_command = # メール配送先をホームディレクトリの Maildir/ に変更 home_mailbox = Maildir/ # HELO コマンドでホスト名を通知しないホストの接続を拒否 smtpd_helo_required = yes # fqdn に名前のないホストからの HELO コマンドを受け付けない smtpd_helo_restrictions = reject_non_fqdn_hostname, reject_invalid_hostname # VRFYコマンド(ユーザーが存在するか問い合わせるコマンド)を拒否 disable_vrfy_command = yes # 送信元メールアドレスが存在しない場合は拒否 smtpd_sender_restrictions = reject_unknown_address # オープンリレー対策 strict_rfc821_envelopes = yes allow_percent_hack = yes swap_bangpath = yes allow_untrusted_routing = no
再起動
# /etc/init.d/postfix restart