- 论坛徽章:
- 0
|
本帖最后由 iheaing 于 2010-02-02 13:48 编辑
(一)声明:
(1)我在安装过程中,发现大量网站的转贴有排版格式超烂的问题。
所以本文只有 www.chinaunix.net 与 www.freebsdchina.org
发表,不准转贴!如果你藐视这个声明,转贴时请注意文章格式。
(2)如果你的回复少于十个字,请再三考虑是否有回复的必要。
(二)感谢:
作者iheaing感谢 google.com、CU mail论坛的诸位版主、各软件的开发者和……。
(三)安装
防 spam 我选择了 postgrey,网上的文章大多使用了 spamassassin、dspam 加上
amavisd-new……我安装、测试了几天最终选择了 postgrey。postgrey 有个缺点就
是:“一个陌生女人的来信会让你等十五分钟……”
# cd /usr/ports/mail/postgrey
# make install clean
我安装的版本为 postgrey1.32。
(二)设置
(1)修改 /usr/local/etc/postfix/main.cf
# defualt_database_type = pgsql
#######SASL#######
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
reject_unauth_destination,
check_policy_service inet:192.168.1.2:10023,
permit
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_sasl_path = smtpd
(2)修改 /etc/rc.conf
[ 本帖最后由 iheaing 于 2010-1-29 18:15 编辑 ] |
|