I had this weird issue. On CentOS 7 I set up mail server with Postfix, Dovecot, ClamAV, rspamd and OpenDKIM. Everything was working fine except all of my outgoing emails weren’t signed by DKIM.
In mail log this message was shown:
... Mar 2 14:02:16 vps opendkim[10810]: 6FD942E30BB: not authenticated Mar 2 14:02:16 vps opendkim[10810]: 6FD942E30BB: no signature data ...
After a lot of trying different configs an options, I googled answer on this forum. Apparently, opendkim thought that user wasn’t authenticated, but in reality, it was. This was due to Postfix configuration. There was missing milter macro. I added {auth_type} macro to milter_mail_macros. Then restarted Opendkim and Postfix and it started to work properly.
Now my postfix configuration (main.cf) for milters looks like this:
milter_protocol = 6 milter_default_action = accept milter_connect_macros = j {daemon_name} v {if_name} _ milter_mail_macros="i {mail_addr} {client_addr} {client_name} {auth_type} {auth_authen}" smtpd_milters = inet:localhost:11332 inet:localhost:8891 unix:/var/spool/postfix/clamav/clamav-milter.socket non_smtpd_milters = $smtpd_milters
And emails are getting signed correctly:
... Mar 2 14:15:56 vps opendkim[11513]: 8C5213E36D: DKIM-Signature field added (s=mail, d=domain.com) ...
Recent Comments