1

Topic: Iredmail pro not signing emails with DKIM

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.0 Upgraded by Zhang Huangbin 1.3.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Installed by Zhang
- Linux/BSD distribution name and version:  Ubuntu 20.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MYSQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Issues with DKIM. Emails outbound are not being signed. Below is the config of the file called 50-user


# DKIM
#
# Enable DKIM verification globally.
$enable_dkim_verification = 1;

# Disable DKIM signing globally, because it's controlled per policy bank.
$enable_dkim_signing = 1;

# Add dkim_key here.
dkim_key('mydomain-test.co.uk', 'dkim', '/var/lib/dkim/mydomain-test.co.uk.pem');
dkim_key('mydomain1.co.uk', 'dkim', '/var/lib/dkim/mydomain-test.co.uk.pem');


@dkim_signature_options_bysender_maps = ({
    # 'd' defaults to a domain of an author/sender address,
    # 's' defaults to whatever selector is offered by a matching key

    # Per-domain dkim key
    #"domain.com"  => { d => "domain.com", a => 'rsa-sha256', ttl => 10*24*3600 },

    # catch-all (one dkim key for all domains)
    # '.' =>  {d => 'mydomain-test.co.uk',
    #        a => 'rsa-sha256',
    #        c => 'relaxed/simple',
    #        ttl => 30*24*3600 },
"mydomain-test.co.uk"  => { d => "mydomain-test.co.uk", a => 'rsa-sha256', ttl => 10*24*3600 },
"mydomain1.co.uk"  => { d => "mydomain1.co.uk", a => 'rsa-sha256', ttl => 10*24*3600 },
'.' => {d => 'mydomain.com',a => 'rsa-sha256',c => 'relaxed/simple',ttl => 30*24*3600 },
});

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.