配置 – Exim 4.71不会将DKIM签名添加到外发电子邮件中

前端之家收集整理的这篇文章主要介绍了配置 – Exim 4.71不会将DKIM签名添加到外发电子邮件中前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试将DKIM添加到我的域中,我创建了一个密钥,将以下内容添加到/etc/exim4/conf.d/transport/30_exim4_config_remote_smtp:
dkim_domain = mydomain.com
dkim_selector = mail1
dkim_private_key = /etc/exim4/dkim.key

重新启动的exim服务,尝试了dpkg-reconfigure,但所有电子邮件都是在没有签名的情况下发送的. /var/log/exim4/panic.log为空.没有错误或任何事情.

我究竟做错了什么? Ubuntu 10.04 LTS

### transport/30_exim4-config_remote_smtp
#################################
# This transport is used for delivering messages over SMTP connections.

remote_smtp:
  debug_print = "T: remote_smtp for $local_part@$domain"
  driver = smtp
.ifdef REMOTE_SMTP_HOSTS_AVOID_TLS
  hosts_avoid_tls = REMOTE_SMTP_HOSTS_AVOID_TLS
.endif
.ifdef REMOTE_SMTP_HEADERS_REWRITE
  headers_rewrite = REMOTE_SMTP_HEADERS_REWRITE
.endif
.ifdef REMOTE_SMTP_RETURN_PATH
  return_path = REMOTE_SMTP_RETURN_PATH
.endif
.ifdef REMOTE_SMTP_HELO_DATA
  helo_data=REMOTE_SMTP_HELO_DATA
.endif

dkim_domain = mydomain.com
dkim_selector = mail1
dkim_private_key = /etc/exim4/dkim.key

.ifdef DKIM_CANON
dkim_canon = DKIM_CANON
.endif
.ifdef DKIM_STRICT
dkim_strict = DKIM_STRICT
.endif
.ifdef DKIM_SIGN_HEADERS
dkim_sign_headers = DKIM_SIGN_HEADERS
.endif

电子邮件的日志行:

2013-03-21 20:25:14 1UIfUY-0008Tz-1g <= nick@mydomain.com U=nick P=local S=365
2013-03-21 20:25:16 1UIfUY-0008Tz-1g => nick@myemail.com R=dnslookup T=remote_smtp H=ASPMX.L.GOOGLE.com [173.194.79.26] X=TLS1.0:RSA_ARCFOUR_SHA1:16 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com"
2013-03-21 20:25:16 1UIfUY-0008Tz-1g Completed
我不是外行专家,但是我找到的指南引用了一个宏表,
/etc/exim4/conf.d/main/00_local_macros

和你的配置引用ifdef DKIM_CANON.

尝试删除if语句或添加宏表.

弱SHA1,但仍然. DKIM-signing_outgoing_mail_with_exim4

猜你在找的Ubuntu相关文章