1

Topic: DKIM on managesieve filtered messages

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Deployed with iRedMail Easy or the downloadable installer?  Don't remember
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- 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.
====

Hello iRedMail users!

I'm encountering issues where email sent as a result of a roundcube managesieve filter is not being DKIM signed.  For example, vacation notices, email notifications, etc. all go unsigned.

All other outgoing mail is correctly DKIM signed.

Is there a simple fix for this?

----

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

2

Re: DKIM on managesieve filtered messages

Hey,

This is a known issue:

https://bitbucket.org/zhb/iredmail/issu … e-not-dkim

No fix released yet according to bitbucket, maybe the boss can tell youmore about it tomorrow wink

3

Re: DKIM on managesieve filtered messages

In your amavisd config file, make sure you have "d =>" for catch-all domain like below (replace "<my-domain>" by your real domain which already has DKIM key locally):

@dkim_signature_options_bysender_maps = ( {
    '.' => { d => "<my-domain>", a => 'rsa-sha256', c => 'relaxed/simple', ttl => 30*24*3600 },
} );

4 (edited by jasongo 2019-09-01 22:48:50)

Re: DKIM on managesieve filtered messages

[SOLVED]

As discussed in https://bitbucket.org/zhb/iredmail/issu … e-not-dkim

1. Open /etc/postfix/master.cf, then look for the pickup transport configuration.
2. Add the following code below the pickup transport code

-o content_filter=smtp-amavis:[127.0.0.1]:10026

This should look something like

pickup     unix  n       -       n       60      1       pickup
        -o content_filter=smtp-amavis:[127.0.0.1]:10026

Then restart postfix.

This code was suggested by Zhang. All the thanks to this great man!