1 (edited by claudio.villa1968 2013-05-12 05:42:55)

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:
====

Hello,

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: test@gmail.com
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: <postmaster@mydomain.net>
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 <test@gmail.com>;
        Sat, 11 May 2013 14:21:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of postmaster@mydomain.net 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 postmaster@mydomain.net designates xxx.xx.xxx.xxx as permitted sender) smtp.mail=postmaster@mydomain.net
Received: from mail.mydomain.net (localhost.localdomain [127.0.0.1])
    by mail.mydomain.net (Postfix) with ESMTPA id 9614E6C90003
    for <test@gmail.com>; 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: postmaster@mydomain.net
To: <test@gmail.com>
Subject: Test
Message-ID: <565dabf3fe66896ea4ff942dc91bd9b5@mydomain.net>
X-Sender: postmaster@mydomain.net
User-Agent: RoundCube WebMail

Email di prova

and this is the /var/log/mail.log

May 11 17:21:39 mail postfix/smtpd[10921]: connect from localhost.localdomain[127.0.0.1]
May 11 17:21:40 mail postfix/smtpd[10921]: 9614E6C90003: client=localhost.localdomain[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@mydomain.net
May 11 17:21:41 mail postfix/cleanup[10931]: 9614E6C90003: message-id=<565dabf3fe66896ea4ff942dc91bd9b5@mydomain.net>
May 11 17:21:42 mail postfix/qmgr[1821]: 9614E6C90003: from=<postmaster@mydomain.net>, size=628, nrcpt=1 (queue active)
May 11 17:21:42 mail roundcube: User postmaster@mydomain.net [xxx.xx.138.xx]; Message for test@gmail.com; 250: 2.0.0 Ok: queued as 9614E6C90003
May 11 17:21:42 mail postfix/smtpd[10921]: disconnect from localhost.localdomain[127.0.0.1]
May 11 17:21:43 mail postfix/smtp[10938]: 9614E6C90003: to=<test@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.143.27]: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[1821]: 9614E6C90003: removed

Could someone help me out ?
Thank you!

----

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

2

Re: Amavis is not signing my emails with DKIM

No amavisd log in /var/log/mail.log. Do you set "content_filter=smtp-amavis:127.0.0.1:10024" in Postfix main.cf?

3

Re: Amavis is not signing my emails with DKIM

ZhangHuangbin wrote:

No amavisd log in /var/log/mail.log. Do you set "content_filter=smtp-amavis:127.0.0.1:10024" in Postfix main.cf?

No. If I add this line, I alwasy get Connection Refused (in another thread you told me because I have less RAM than required. I have 256 MB but I need 1 GB at least.

So, what can i do ?

4

Re: Amavis is not signing my emails with DKIM

DKIM signing/verification is provided by Amavisd. If DKIM signing is required, buy more memory for your server.

5

Re: Amavis is not signing my emails with DKIM

Yes! That was the problem. I changed my VPS and now works good!