Chinaunix

标题: postfix发送邮件不走milter问题 [打印本页]

作者: godsad    时间: 2014-09-15 10:56
标题: postfix发送邮件不走milter问题
本帖最后由 godsad 于 2014-09-15 11:03 编辑

邮件能正常发送,但是postfix死活不走milter走,日志里没有opendkim的header插入.邮件发送时抓包也显示postfix无视milter配置.

系统是centos6.5

postfix和opendkim都是yum的

postfix milter配置
  1. smtpd_milters           = inet:127.0.0.1:8891
  2. non_smtpd_milters       = inet:127.0.0.1:8891
  3. milter_default_action   = accept
  4. milter_protocol   = 2
复制代码
opendkim配置
  1. PidFile /var/run/opendkim/opendkim.pid
  2. Mode    sv
  3. Syslog  yes
  4. SyslogSuccess   yes
  5. LogWhy  yes
  6. UserID  opendkim:opendkim
  7. Socket  inet:8891@localhost
  8. Umask   002
  9. Canonicalization        relaxed/relaxed
  10. Domain xxx.com
  11. Selector        hyz20140912
  12. MinimumKeyBits 1024
  13. KeyFile /etc/opendkim/keys/hyz20140912.private
  14. KeyTable        /etc/opendkim/KeyTable
  15. SigningTable    refile:/etc/opendkim/SigningTable
  16. ExternalIgnoreList      refile:/etc/opendkim/TrustedHosts
  17. InternalHosts   refile:/etc/opendkim/TrustedHosts       #发送端ip已加入
  18. X-Header yes
复制代码
发送邮件时的maillog,没有传说中的"DKIM-Signature header added",抓包数据也显示postfix无视milter配置段
  1. Sep 15 10:40:25 localhost postfix-1/smtpd[21397]: connect from unknown[xxx.xxx.138.2]
  2. Sep 15 10:40:25 localhost postfix-1/smtpd[21397]: D3E8C24378C: client=unknown[xxx.xxx.138.2]
  3. Sep 15 10:40:25 localhost postfix-1/cleanup[21400]: D3E8C24378C: message-id=<201409151040312595021@just_for_test.com>
  4. Sep 15 10:40:25 localhost postfix-1/qmgr[21025]: D3E8C24378C: from=<poster1@just_for_test.com>, size=1729, nrcpt=1 (queue active)
  5. Sep 15 10:40:25 localhost postfix-1/smtpd[21397]: disconnect from unknown[xxx.xxx.138.2]
  6. Sep 15 10:40:27 localhost postfix-1/smtp[21401]: D3E8C24378C: to=<poster1@www.brandonchecketts.com>, relay=www.brandonchecketts.com[66.135.56.251]:25, delay=1.6, delays=0.08/0/1.1/0.42, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as AEDF353300BA)
  7. Sep 15 10:40:27 localhost postfix-1/qmgr[21025]: D3E8C24378C: removed
复制代码

作者: godsad    时间: 2014-09-15 11:23
咳咳~~~~原来是postfix配置里空格数有限制
作者: godsad    时间: 2014-09-15 11:25
我要跳楼,楼下的不要拦我
作者: godsad    时间: 2014-09-15 11:53
本帖最后由 godsad 于 2014-09-15 11:54 编辑

必须得瑟一下

QQ图片20140915115230.jpg (28.48 KB, 下载次数: 88)

QQ图片20140915115230.jpg





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2