- 论坛徽章:
- 1
|
本帖最后由 errai 于 2014-04-29 09:45 编辑
POSTFIX+DSPAM MAIL
进入系统后测试邮件头并无X-DSPAM等信息出现,应该是DSPAM根本没有起作用,查看DSPAM程序有在系统运行,但感觉POSTFIX并没有将信件交给DSPAM处理!
main.cf DSPAM部分如下:
# smtpd related config
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
check_client_access pcre:/etc/postfix/dspam_filter_access
check_policy_service inet:127.0.0.1:10030
header_checks = regexp:/etc/postfix/dspam_header_checks
# Content-Filter
receive_override_options = no_address_mappings
dspam_filter_access里已经有:
/./ FILTER lmtp:[127.0.0.1]:10028
header_checks里:
/^(X-DSPAM-.*)/ IGNORE
/^(X-Spam-.*)/ IGNORE
master.cf里:
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-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
其他好像没有要设置的东西了参考资料中也是这样设置,不知为何不起作用
DSPAM日志:
2603: [04/28/2014 17:40:50] Daemon terminating on signal 15
2603: [04/28/2014 17:40:50] received signal. waiting for processing threads to exit.
2603: [04/28/2014 17:40:50] daemon is down.
2603: [04/28/2014 17:40:50] Daemon process exiting
2598: [04/28/2014 17:43:57] Daemon process starting
~
不过这个日志已经是头一天DSPAM无法写入PID文件错误修正后正常启动,到发表这个问题时已经相隔10多个小时没有新的日志产生!
MAILLOG里同一时间相关的日志是:
Apr 28 17:40:50 xxx dspam[2603]: Daemon terminating on signal 15
Apr 28 17:40:50 xxx dspam[2603]: received signal. waiting for processing threads to exit.
Apr 28 17:40:50 xxx dspam[2603]: daemon is down.
Apr 28 17:40:50 xxx dspam[2603]: Daemon process exiting
往后10个多小时再无类似错误日志产生
[root@xxx /]# /etc/init.d/dspamd status
dspamd (pid 259 is running...
DSPAM运行中
但邮件中,无论是内发的,还是外部进入的邮件,邮件头都无X-DSPAM类似DSPAM标记产生!不知为何DSPAM不起作用 |
|