系统centos5.4
参考前面的基本系统安装
设置emos的源
安装dspam dspam-mysql 出现错误 从官方源下载后手动安装
创建数据 create databases dspam;
grant all on dspam.* to dspam@localhost identified by '';
mysql -u dsapm -p< mysql_objects-4.1.sql virtual_users.sql 在两个文件前添加 use dspam;
crontab -e
0 0 * * * /usr/bin/mysql -u dspam -p'dspam' dspam < /usr/share/dspam/sql/mysql/purge-4.1.sql
0 0 * * * /usr/bin/dspam_logrotate -a 30 -d /var/spool/dspam/data
修改dspam.conf
MySQLServer /var/lib/mysql/mysql.sock
MySQLUser dspam
MySQLPass dspam
MySQLDb dspam
MySQLCompress true
MySQLUIDInSignature on
ClamAVPort 3310
ClamAVHost 127.0.0.1
ClamAVResponse spam
ServerPID /var/run/dspam.pid
ServerMode auto
ServerParameters "--user dspam --deliver=innocent,spam"
ServerDomainSocketPath "/tmp/dspam.sock"
DeliveryHost 127.0.0.1
DeliveryPort 10026
DeliveryIdent localhost
DeliveryProto SMTP
ParseToHeaders on
ChangeModeOnParse on
ChangeUserOnParse full
vi master.cf
smtp inet n - n - - smtpd
To:
smtp inet n - n - - smtpd
-o content_filter=lmtp:unix:/tmp/dspam.sock
lmtp unix - - n - - lmtp
127.0.0.1:10026 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
kosmin@windowsrefund.info>, relay=/tmp/dspam.sock[/tmp/dspam.sock],
delay=0, status=bounced (host /tmp/dspam.sock[/tmp/dspam.sock] said: 503
5.1.0 Authentication Required (in reply to MAIL FROM command))
ServerMode standard
阅读(1494) | 评论(0) | 转发(0) |