Autoreply (vacation) mails are not DKIM signed

Issue #137 new
Anonymous created an issue
  • iRedMail 0.9.7 on Debian9 with RoundCube
  • automatic reply "vacation" mails are not DKIM signed by AMAVIS, this makes GMail unhappy and causes discards with my strict DMARC policy ;)

Comments (4)

  1. Zhang Huangbin repo owner

    Do you have enable_dkim_signing in Amavisd policy bank MYNETS like below?

    $policy_bank{'MYNETS'} = {   # mail originating from @mynetworks
        originating => 1,  # is true in MYNETS by default, but let's make it explicit
        enable_dkim_signing => 1,
        ...
    };
    

    Still not working?

  2. ornatipaolo

    Yes I have and it doesn't work ;)

    $policy_bank{'MYNETS'} = {   # mail originating from @mynetworks
        originating => 1,  # is true in MYNETS by default, but let's make it explicit
        os_fingerprint_method => undef,  # don't query p0f for internal clients
        allow_disclaimers => 1,  # enables disclaimer insertion if available
        enable_dkim_signing => 1,
    };
    

    And I have a sigle DKIM key to sign for many different domains:

    # Add dkim_key here.
    dkim_key("*", "dkim", "/var/lib/dkim/sermix.local.pem");
    
    @dkim_signature_options_bysender_maps = ( {
       # explicit 'd' forces a third-party signature on foreign (hosted) domains
        "sermix.local"  => { d => "sermix.local", a => 'rsa-sha256', ttl => 10*24*3600 },
        # catchall defaults
        '.' => { a => 'rsa-sha256', c => 'relaxed/simple', ttl => 30*24*3600 },
    } );
    
  3. ornatipaolo

    No luck, it doesn't work.

    I think the root problem may be the "Envelope From" of the autoreply email.. it's empty! ;)

    May 28 12:28:25 gec-mx postfix/10025/smtpd[17572]: 690DC47A56B: client=localhost[127.0.0.1]
    May 28 12:28:25 gec-mx postfix/cleanup[15377]: 690DC47A56B: message-id=<dovecot-sieve-1527503305-182879-0@gec-mx.local>
    May 28 12:28:25 gec-mx postfix/qmgr[39681]: 690DC47A56B: from=<>, size=1254, nrcpt=1 (queue active)
    
  4. Log in to comment