フリーソフトウェアのコンパイル

DMZ 上のメールサーバ(mail1)でのメールアドレスディスパッチの設定指針

Postfix の transport には,宛て先のアドレスまで 書けるのでうまくいくかも.

経路等

transport に登録したユーザは,IronPort に smtp で転送されるようにする.

手順

すべて mail1 にておこなう. 0) sendmail を止める. iptables のテーブルを変更して,25ポートを受け付けないようにする.

1) postfix のパッケージをインストールする

# up2date postfix
# up2date redhat-switch-mail
# /usr/sbin/postfix stop
# chkconfig postfix off  (<-- 念のため)

1) redhat-switch-mail にて, システムの MTA を Postfix に変更する.

# /usr/sbin/postfix stop
# chkconfig postfix off  (<-- 念のため)

2) /etc/postfix/main.cf を編集する.

myhostname=mail1.example.jp
mydomain = example.jp
myorigin = $myhostname
# inet_interfaces = localhost   <-- コメントアウトする
mydestination = $myhostname, localhost.$mydomain
mynetworks = 172.16.1.2/32, 172.16.2.0/25, 127.0.0.0/8
                                             <-- mail2 と IronPort
relay_domains = $mydomain

# TRANSPORT MAP
#
# Insert text from sample-transport.cf if you need explicit routing.
transport_maps = hash:/etc/postfix/transport

その他

smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes

3) /etc/postfix/transport に以下のような行を加える. (3行目以下が,SPAM SCAN をする宛て先ユーザ)

example.jp    smtp:[mail2.example.jp]
.example.jp    smtp:[mail2.example.jp]
username1@example.jp	smtp:[ironport.example.jp]
username2@example.jp	smtp:[ironport.example.jp]
...

4)

postmap /etc/postfix/transport

で反映させる.


設定のチェック

# postfix check

キューの閲覧

# postcat -q quieue-id

キューの削除

# postsuper -d queiue-id

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-08-25 (水) 00:46:09