This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DKIM Keys

I've set up DKIM but when I send an email to DKIM verifying sites it comes back saying it is not configured.

The setting mention "in ascii armor" for the private key. I presume that this means "complete with the beginning header, ending footer and the carriage returns in the text."

Can we please get some confirmation that we should paste the entire contents of the private key file that openssl created? Ie "in ascii armor" means with the "-----BEGIN RSA PRIVATE KEY-----" followed by the key itself, complete with carriage returns and ending with "-----END RSA PRIVATE KEY-----".

Am I missing something? Do I simply:
1. copy the complete private key into the text box
2. enter the key selector
3. Add my domain to the DKIM domains
4. Click Apply
5. Add the TXT record to my DNS for the public key and reload BIND.

Thanks,

James.

PS. I'm using 7.301.


This thread was automatically locked due to age.
Parents
  • I just went through this.  If anyone would like a cheat-sheet on all the steps to completing this, please email me at BAlfson at MediaSoftUSA dot com.  All I ask in return is feedback with ideas to improve it.

    Best - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Thanks to Bob I'm pretty sure I've properly set up DKIM in the Mail Security section and on my DNS (BIND).

    If I send an email using Apple's Mail.app to check-auth@verifier.port25.com to comes back saying:

    DKIM check details:
    Result: fail (signature doesn't verify)

    The same thing happens sending from my iPhone.

    But it works fine sending from the same computer using Thunderbird. Or if I use webmail (Roundcube or Ilohamail) to send the email.

    All are sending through the same mail server (Postfix), same account, with and without SSL.

    Has anyone had any similar problems with DKIM and certain mail clients when DKIM is set up via Astaro?

    Have I set up something incorrectly?

    Any suggestions?

    Thanks,

    James.
  • Now, I have an interesting problem.  I participate in an on-line discussion group that is presently hosted by Publishing Concepts.  Out of about 20 emails I've sent to the list in the last two days, two have been rejected with the notation:


    The first time it happened, I resent the message and received the same rejection.  I asked another person to forward the message to the group, and it worked just fine.

    Today, I received another such rejection.  I briefly removed my domain from the DKIM configuration in the Astaro and resent the message.  This time it went through without a problem.
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • "Message content rejected, UBE"

    So it looks like it thinks it is spam, probably because your DKIM signature does not match. Which is what I've been experiencing.

    I can only conclude that there is a bug somewhere in the Astaro code. Discussions on the Postfix mailing list indicate that that for some reason the email goes through Astaro twice and the second time is where the signature gets mangled.

    Eg this is one response I had:

    "Your signer signed the following header section:

    *****************

    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
    d=bordo.com.au; s=mail; h=Message-Id:From:To:In-Reply-To:
    Mime-Version:Subject[:D]ate:References:MIME-Version:Content-Type;
    bh=FBGlG3/lg4Qa0cw6oM9LAu83D6E9uxKw+uQSQmKN7EQ=; b=D8uXGWZusRopo
    0Dx4TQeApJbajiayRIpN/Q+GTgn/MPv7Qj+Cq5EOcwr75ZXv/GV+MRpo+qGiOfv0
    fJtqDvR1TwbjuvSuRTHgQVCc1+AY3T4iDEQ5f4EGJ0NPR56rPqrKGDi1AwCGjvVD
    sieq86AnRWfredZLTHzXvzq5neSGOE=
    Message-Id: 
    From: James Brown 
    To: postfix-users@postfix.org
    In-Reply-To: 
    MIME-Version: 1.0
    Subject: Re: [OFF]: DKIM broken by certain email clients
    Date: Wed, 24 Sep 2008 17:42:40 +1000
    References:  
    MIME-Version: 1.0
    Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="----31313EF4F437E4210E9DC5F9C2D9A7A1"

    ******************

    Note the double occurrence MIME-Version, but this is not in itself
    a reason for DKIM validation failure.

    The above header section was modified on its way out from your site,
    replacing the first "MIME-Version: 1.0" of the two with a
     Mime-Version: 1.0 (Apple Message framework v929.2)
    thus breaking the signature.

    So it seems you have two problems here: why are there two MIME-Version
    header fields in the first place, and why is one of them modified AFTER signing."
  • I have not experienced the rejections again.  It almost seems like a random occurence.

    James, if you have Platinum maintenance, why don't you submit a trouble ticket?  I think this will need to go to the developers in Germany though.
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • James, what is your mail setup? You mentioned a postfix server. It is important that the ASG is the last hop before the remote site(s). Using a smarthost that may modify messages will in some cases invalidate the signature.
Reply
  • James, what is your mail setup? You mentioned a postfix server. It is important that the ASG is the last hop before the remote site(s). Using a smarthost that may modify messages will in some cases invalidate the signature.
Children