我自從第一次接觸 postfix 之後, 就把 sendmail 丟到腦後了,
目前手上的每一台機器都是裝postfix :p

而postgrey是個簡單但是對擋廣告信有一定效果的東西, 而且又很好裝,
建議有架mail server的都裝一下吧:

cd /usr/ports/mail/postgrey/ && make install clean

vim /etc/rc.conf.local
==>加上 postgrey_enable="YES"

vim /usr/local/etc/postfix/main.cf
==>smtpd_recipient_restrictions在適當的位置加上check_policy_service inet:127.0.0.1:10023

sh /usr/local/etc/rc.d/postgrey start
postfix reload

搞定收工.
arrow
arrow
    全站熱搜

    Izero 發表在 痞客邦 留言(1) 人氣()