postscreenに関してだけだが、ちょっと進んだ。
嬉しい。
前回書いた通り、postscreenが立ち上がらないでいた。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Apr 10 11:16:09 mail postfix/master[355]: reload -- version 3.7.4, configuration /opt/local/etc/postfix Apr 10 11:16:11 mail postfix/postscreen[15817]: fatal: service smtp requires a process limit of 1 Apr 10 11:16:12 mail postfix/master[355]: warning: process /opt/local/libexec/postfix/postscreen pid 15817 exit status 1 Apr 10 11:16:12 mail postfix/master[355]: warning: /opt/local/libexec/postfix/postscreen: bad command startup -- throttling Apr 10 11:17:12 mail postfix/postscreen[15829]: fatal: service smtp requires a process limit of 1 Apr 10 11:17:13 mail postfix/master[355]: warning: process /opt/local/libexec/postfix/postscreen pid 15829 exit status 1 Apr 10 11:17:13 mail postfix/master[355]: warning: /opt/local/libexec/postfix/postscreen: bad command startup -- throttling Apr 10 11:18:13 mail postfix/postscreen[15835]: fatal: service smtp requires a process limit of 1 Apr 10 11:18:14 mail postfix/master[355]: warning: process /opt/local/libexec/postfix/postscreen pid 15835 exit status 1 Apr 10 11:18:14 mail postfix/master[355]: warning: /opt/local/libexec/postfix/postscreen: bad command startup -- throttling Apr 10 11:19:14 mail postfix/postscreen[15844]: fatal: service smtp requires a process limit of 1 Apr 10 11:19:15 mail postfix/master[355]: warning: process /opt/local/libexec/postfix/postscreen pid 15844 exit status 1 Apr 10 11:19:15 mail postfix/master[355]: warning: /opt/local/libexec/postfix/postscreen: bad command startup -- throttling |
ここでspam 対策として、とりあえず postscreen を有効化しておくにあった通りにmaster.cfを直し、main.cfを書き足した。
master.cfはpostscreenのchrootをyにした。(元々コピー元がnだったのでそのままだった)
|
1 2 3 |
smtp inet n - y - - postscreen #smtp inet n - n - - smtpd # -o receive_override_options=no_address_mappings |
main.cfは記事にあった通りにパスだけ変えて追加する。
|
1 2 3 4 |
postscreen_access_list = permit_mynetworks, cidr:/opt/local/etc/postfix/postscreen_access.cidr postscreen_greet_wait = 15s postscreen_greet_action = enforce |
ここまででpostscreenのerrorが消えた……間違い。消えなかった。
続けてPostfix Postscreen Howtoからmaster.cfの設定をそのまま反映。
chrootをnに戻し、maxprocを1に指定。
|
1 |
smtp inet n - n - 1 postscreen |
漸くpostscreenの起動に成功したらしい。ps axで確認する。
|
1 |
16062 ?? Ss 0:00.04 postscreen -l -n smtp -t inet -u |
確かに立ち上がっている。最初からここ見ていれば良かったのか……
更に見ていくと色々あるわ。main.cfに追加しよう。
現行、main.cfのpostscreen関連はこうなっている。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# PostScreen settings postscreen_access_list = permit_mynetworks, cidr:/opt/local/etc/postfix/postscreen_access.cidr postscreen_greet_wait = 15s postscreen_greet_action = enforce postscreen_dnsbl_threshold = 2 postscreen_dnsbl_sites = zen.spamhaus.org*2 bl.spamcop.net*1 b.barracudacentral.org*1 postscreen_dnsbl_reply_map = texthash:/opt/local/etc/postfix/dnsbl_reply postscreen_cache_map = proxy:btree:$data_directory/postscreen_cache # See note 1 below. postscreen_cache_cleanup_interval = 0 |
postscreenのエラーは出ていない。
そして
|
1 2 3 4 5 6 7 |
Apr 10 13:19:34 mail postfix/postscreen[17222]: CONNECT from [193.56.29.192]:20114 to [192.168.0.35]:25 Apr 10 13:19:34 mail postfix/dnsblog[17224]: addr 193.56.29.192 listed by domain b.barracudacentral.org as 127.0.0.2 Apr 10 13:19:34 mail postfix/dnsblog[17225]: addr 193.56.29.192 listed by domain zen.spamhaus.org as 127.0.0.4 Apr 10 13:19:34 mail postfix/dnsblog[17225]: addr 193.56.29.192 listed by domain zen.spamhaus.org as 127.0.0.11 Apr 10 13:19:34 mail postfix/postscreen[17222]: PREGREET 11 after 0.3 from [193.56.29.192]:20114: EHLO User\r\n Apr 10 13:19:34 mail postfix/postscreen[17222]: DNSBL rank 3 for [193.56.29.192]:20114 Apr 10 13:19:35 mail postfix/postscreen[17222]: DISCONNECT [193.56.29.192]:20114 |
ちゃんと弾いてくれるようになった。


