1

Topic: No DKIM when sending through SMTP

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Problem: Mails has no DKIM only when I'm sending them though SMTP. SMTP use port 587 and valid logins. Spent all day trying to undestand what is wrong.

Logs from postfix:
Sep 25 20:05:49 mail-serv postfix/submission/smtpd[12509]: connect from unknown[82.204.251.134]
Sep 25 20:05:49 mail-serv postfix/submission/smtpd[12509]: Anonymous TLS connection established from unknown[82.204.251.134]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Sep 25 20:05:50 mail-serv postfix/submission/smtpd[12509]: 08C1A62F54: client=unknown[82.204.251.134], sasl_method=LOGIN, sasl_username=********
Sep 25 20:05:50 mail-serv postfix/cleanup[12514]: 08C1A62F54: message-id=<7i5sn64223@denyagin-pc>
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 08C1A62F54: from=<zabbix-noreply@mail.******.com>, size=607, nrcpt=1 (queue active)
Sep 25 20:05:50 mail-serv postfix/submission/smtpd[12509]: disconnect from unknown[82.204.251.134] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Sep 25 20:05:50 mail-serv postfix/10025/smtpd[12522]: connect from mail-serv.******.com[127.0.0.1]
Sep 25 20:05:50 mail-serv postfix/10025/smtpd[12522]: 446AA62F60: client=mail-serv.******.com[127.0.0.1]
Sep 25 20:05:50 mail-serv postfix/cleanup[12514]: 446AA62F60: message-id=<7i5sn64223@denyagin-pc>
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 446AA62F60: from=<zabbix-noreply@mail.******.com>, size=1306, nrcpt=1 (queue active)
Sep 25 20:05:50 mail-serv postfix/10025/smtpd[12522]: disconnect from mail-serv.******.com[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Sep 25 20:05:50 mail-serv amavis[8019]: (08019-13) Passed CLEAN {RelayedInbound}, ORIGINATING [82.204.251.134]:56950 [82.204.251.134] <zabbix-noreply@mail.******.com> -> <******gin@gmail.com>, Queue-ID: 08C1A62F54, Message-ID: <7i5sn64223@denyagin-pc>, mail_id: ERhge-vYSiBd, Hits: -1, size: 768, queued_as: 446AA62F60, 160 ms, Tests: [ALL_TRUSTED=-1]
Sep 25 20:05:50 mail-serv postfix/amavis/smtp[12519]: 08C1A62F54: to=<******gin@gmail.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.32, delays=0.12/0.02/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 446AA62F60)
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 08C1A62F54: removed
Sep 25 20:05:50 mail-serv postfix/smtp[12523]: connect to gmail-smtp-in.l.google.com[2a00:1450:4010:c08::1a]:25: Network is unreachable
Sep 25 20:05:50 mail-serv postfix/smtp[12523]: Trusted TLS connection established to gmail-smtp-in.l.google.com[64.233.165.26]:25: TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)
Sep 25 20:05:50 mail-serv postfix/smtp[12523]: 446AA62F60: to=<******gin@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.165.26]:25, delay=0.4, delays=0.01/0.04/0.12/0.23, dsn=2.0.0, status=sent (250 2.0.0 OK 1537895150 v29-v6si3359917ljv.165 - gsmtp)
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 446AA62F60: removed

All configs was not altered after install iRedMail. Only added ssl certifitaces with real domain and CA.
Any suggestions what is wrong?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: No DKIM when sending through SMTP

igor.denyagin wrote:

- Linux/BSD distribution name and version: Ubuntu 18.04

Bug of Amavisd in Ubuntu 18.04:
https://bugs.launchpad.net/debian/+sour … ug/1770532

You can find patch(es) in above link. Help push package maintainer to merge the patch and release a new Amavisd version.

3

Re: No DKIM when sending through SMTP

ZhangHuangbin wrote:
igor.denyagin wrote:

- Linux/BSD distribution name and version: Ubuntu 18.04

Bug of Amavisd in Ubuntu 18.04:
https://bugs.launchpad.net/debian/+sour … ug/1770532

You can find patch(es) in above link. Help push package maintainer to merge the patch and release a new Amavisd version.

Thanks for answer. It works now!
Why you can add this bugfix into install package? It can be fast workable variant of solving this problem with amavisd-new 2.11 where it's not patched by maintainer.