Topic: Amavis is not signing my emails with DKIM
==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: ubuntu 12.10
- Related log if you're reporting an issue:
I have followed this tutorial: http://iredmail.org/wiki/index.php?titl … amAssassin
"Stop virus/spam scanning, keep DKIM signing/verification and Disclaimer"
I need to sign my emails with DKIM, but If i read the headers of an email that I have sent to @gmail account I do not see dkim there. Why?
I added the DNS (txt) record and I also tested it with amavis (it pass!):
root@mail:/etc/amavis/conf.d# amavisd-new testkeys perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MONETARY = "it_IT.utf8", LC_NUMERIC = "it_IT.utf8", LC_MEASUREMENT = "it_IT.utf8", LC_TIME = "it_IT.utf8", LANG = "it_IT.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). TESTING#1: dkim._domainkey.mydomain.net => pass
So, now what the problem? As I wrote above I only would like to disable spam and virus scanning but I must use DKIM.
This is the email source:
Delivered-To: firstname.lastname@example.org Received: by 10.182.126.170 with SMTP id mz10csp181421obb; Sat, 11 May 2013 14:21:43 -0700 (PDT) X-Received: by 10.112.74.201 with SMTP id w9mr10031605lbv.128.1368307302508; Sat, 11 May 2013 14:21:42 -0700 (PDT) Return-Path: <email@example.com> Received: from mail.mydomain.net (mail.mydomain.net. [xxx.xx.xxx.xxx]) by mx.google.com with ESMTP id dn7si2631883lbc.17.2013.05.11.14.21.41 for <firstname.lastname@example.org>; Sat, 11 May 2013 14:21:42 -0700 (PDT) Received-SPF: pass (google.com: domain of email@example.com designates xxx.xx.xxx.xxx as permitted sender) client-ip=xxx.xx.xxx.xxx; Authentication-Results: mx.google.com; spf=pass (google.com: domain of firstname.lastname@example.org designates xxx.xx.xxx.xxx as permitted sender) email@example.com Received: from mail.mydomain.net (localhost.localdomain [127.0.0.1]) by mail.mydomain.net (Postfix) with ESMTPA id 9614E6C90003 for <firstname.lastname@example.org>; Sat, 11 May 2013 17:21:39 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 11 May 2013 23:21:39 +0200 From: email@example.com To: <firstname.lastname@example.org> Subject: Test Message-ID: <email@example.com> X-Sender: firstname.lastname@example.org User-Agent: RoundCube WebMail Email di prova
and this is the /var/log/mail.log
May 11 17:21:39 mail postfix/smtpd: connect from localhost.localdomain[127.0.0.1] May 11 17:21:40 mail postfix/smtpd: 9614E6C90003: client=localhost.localdomain[127.0.0.1], sasl_method=LOGIN, email@example.com May 11 17:21:41 mail postfix/cleanup: 9614E6C90003: message-id=<firstname.lastname@example.org> May 11 17:21:42 mail postfix/qmgr: 9614E6C90003: from=<email@example.com>, size=628, nrcpt=1 (queue active) May 11 17:21:42 mail roundcube: User firstname.lastname@example.org [xxx.xx.138.xx]; Message for email@example.com; 250: 2.0.0 Ok: queued as 9614E6C90003 May 11 17:21:42 mail postfix/smtpd: disconnect from localhost.localdomain[127.0.0.1] May 11 17:21:43 mail postfix/smtp: 9614E6C90003: to=<firstname.lastname@example.org>, relay=gmail-smtp-in.l.google.com[126.96.36.199]:25, delay=4.2, delays=2.8/0.09/0.21/1.1, dsn=2.0.0, status=sent (250 2.0.0 OK$ May 11 17:21:43 mail postfix/qmgr: 9614E6C90003: removed
Could someone help me out ?
Get fast and professional support from iRedMail developers: