GreyFilter。

スパムが入ってきそうな予感がするので、着たメールをいったん撥ねて、もっかい送ってよー的な行動を取るGreyFilterを導入してみました。


[追加]/etc/mail/${host}.mc
define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO``, {verify}'')
define(`confMILTER_MACROS_ENVRCPT', confMILTER_MACROS_ENVRCPT``, {greylist}'')
INPUT_MAIL_FILTER(`greylist',`S=unix:/var/milter-greylist/milter-greylist.sock, F=T;T=R:30s')


[追加?]/usr/local/etc/mail/greylist.conf
dumpfile "/var/milter-greylist/greylist.db"
dumpfreq 1h
timeout 5d
greylist 5m


[追加]/etc/rc.conf
miltergreylist_enable="YES"


ってな感じに設定しておいて、
# sudo /usr/local/etc/rc.d/milter-greylist.sh start
しておしまい。




telnet ${host} 25
helo ${host}
mail from:
rcpt to:
ってな感じにして、5分後にもっかいメール送りなおしてよってなメッセージが表示されたら*多分*OK!