add new multiple domains to sign dkim

  • Posted September 11, 2014
  • iRedMail version: 0.8.7
  • Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
  • Linux/BSD distribution name and version: Ubuntu 14.04

Hello guys I have got my iredmail up and running. The only thing is when I get to send emails they go to spam in gmail and don’t arrive at all in hotmail or outlook.

After testing it says that the dkim is not signed. How can I solve this? I have more than 1 virtual domain.

I tried to generate a new RSA key for my second domain. But in /etc/amavis/ there is no amavisd.conf or anything like that… But there is the following:

/etc/amavis/conf.d# ls 01-debian 15-content_filter_mode 30-template_localization 05-domain_id 20-debian_defaults 40-policy_banks 05-node_id 21-ubuntu_defaults 50-user 15-av_scanners 25-amavis_helpers 50-user.2014.

Can someone guide me through this to add the next domain?


Hi rustx see below posts for the email headers.

Hi reshadfar,

For I can help you with your setup, can you show the headers for mail that arrives in gmail as spam ?

The mail headers can help to know why a mailserver decided to consider your mail as spam.

Thanks for the information !

– rustx

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I am not familiar with iredmail but the config file you edit is the 50-user. has a good info on amavisd and dkim signing.

See below I have changed some confidential stuff :) the mail is sent to a gmail account since the hotmail and outlook accounts don’t receive mail at all. The mail is send with Laravel so I guess those should be fine…

Delivered-To: Received: by with SMTP id dv1csp550274lbc; Thu, 11 Sep 2014 00:00:40 -0700 (PDT) X-Received: by with SMTP id fq12mr15922wic.4.1410418840431; Thu, 11 Sep 2014 00:00:40 -0700 (PDT) Return-Path: Received: from ( []) by with ESMTPS id yw4si15174wjc.94.2014. for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Sep 2014 00:00:40 -0700 (PDT) Received-SPF: pass ( domain of designates as permitted sender); Authentication-Results:; spf=pass ( domain of designates as permitted sender) Received: by (Postfix, from userid 33) id 9A72F20A2F; Thu, 11 Sep 2014 03:00:39 -0400 (EDT) To: User Name Subject: Subscription X-PHP-Originating-Script: 0:SimpleMailInvoker.php Message-ID: Date: Thu, 11 Sep 2014 07:00:39 +0000 From: Tcr Cc: User Name MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Thanks in advance

And see my email test