使用Dspam时的Opendkimvalidation

我有Opendkim很好的签署邮件,但validation失败,我想这是因为电子邮件是从Dspam注入127.0.0.1:25000,所以Opendkim尝试签署的邮件,而不是validation它

从gmail收到邮件时,这是一个例子:

Dec 3 13:10:58 mail postfix/smtpd[16282]: connect from mail-qy0-f169.google.com[209.85.216.169] Dec 3 13:10:59 mail postfix/smtpd[16282]: NOQUEUE: filter: RCPT from mail-qy0-f169.google.com[209.85.216.169]: <[email protected]>: Recipient address triggers FILTER smtp-dspam:[127.0.0.1]:25000; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-qy0-f169.google.com> Dec 3 13:10:59 mail postfix/smtpd[16282]: 997C03FF20: client=mail-qy0-f169.google.com[209.85.216.169] Dec 3 13:10:59 mail postfix/cleanup[16290]: 997C03FF20: message-id=<[email protected]> Dec 3 13:10:59 mail opendkim[15867]: 997C03FF20: mail-qy0-f169.google.com [209.85.216.169] not internal Dec 3 13:10:59 mail opendkim[15867]: 997C03FF20: not authenticated Dec 3 13:10:59 mail opendkim[15867]: 997C03FF20: no signature data 

我认为dspam之前有dkim会解决这个问题,但我不知道如何?

这是我的Postfix conf:

main.cf:

 smtpd_recipient_restrictions = check_recipient_access pcre:/etc/postfix/dspam_filter permit_mynetworks permit_sasl_authenticated reject_non_fqdn_recipient reject_non_fqdn_sender reject_non_fqdn_helo_hostname reject_invalid_helo_hostname reject_unknown_sender_domain reject_unknown_recipient_domain reject_unlisted_recipient reject_unlisted_sender reject_unauth_destination #reject_rbl_client bl.spamcop.net #reject_rbl_client zen.spamhaus.org check_recipient_access pcre:/etc/postfix/dspam_filter_rejectexternal check_sender_access pcre:/etc/postfix/dspam_filter_rejectexternal permit milter_default_action = accept smtpd_milters = inet:127.0.0.1:8891 

master.cf:

 localhost:25001 inet n - - - - smtpd -o content_filter= -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_milters -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8 

receive_override_options结尾处的no_milters选项告诉Postfix在重新注入邮件后不要使用更多的邮件。 这通常用于阻止OpenDKIM在使用内容filter时对邮件进行两次签名。

你的问题说DSpam注入25000,但你的master.cf设置为25501.哪一个是准确的?