我自從第一次接觸 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
搞定收工.
目前手上的每一台機器都是裝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
搞定收工.












Recommend to Front page

milter 也不錯
其實 postfix 也支援 sendmail 的 milter.postgrey, clamav 等等的東西, 也都有 milter 的版本了.
使用 milter 最大的好處是, 效率好了點, 不像 postgrey 之類的, 三明治方式, 一封信要在 port 之間送來送去.
東西進來, 直接問 milter 過不過, 然後 postfix 直接判斷該怎樣處理.
Comment Permissions: Allow commenting