Postfix and DKIM

Discussion in 'Server Operation' started by krdzal, Jul 19, 2010.

  1. krdzal

    krdzal New Member

    Im trying to set up Postfix with DKIM for a 2 days now, but now luck :mad:

    Postfix is UP and runing ans DKIM is UP and runing

    i have followed this tutorial
    http://www.howtoforge.com/postfix-dkim-with-dkim-milter-centos5.1

    But when i test the emails for verification they are not passing

    Im using this tool http://www.mailradar.com/domainkeys/

    When i send email to Yahoo this are the haedares

    From [email protected] Mon Jul 19 18:49:40 2010
    X-Apparently-To: [email protected] via 69.147.75.20; Mon, 19 Jul 2010 11:47:01 -0700
    Return-Path: <[email protected]>
    X-YahooFilteredBulk: 64.191.67.124
    Received-SPF: pass (mta1027.mail.sk1.yahoo.com: domain of [email protected] designates 64.191.67.124 as permitted sender)
    X-YMailISG: 16nU4JwcZAoebsfTagOTWi6CHEdkOeUA4XezWAnjROIMbq9w ShTd8SDKTgVwEKosYw.3CfNV5l1FduzE8tMN25XFAuiBuoEeqWV3w3AR0pEt s2SOYo.IlWsYG0whm.bj3ftstccYK4XRlDpwBV177ZJSssnp2Gm4lUcdcQaN jMu2T1NvBlAiIXy8bykK7PlRNIHN77VhSREa3k3T5v7GXONl.PC.FdUbMuCl 3DUmUhJ1ekNviAi2jGwHSN9gbPbjBAKsQc9vCMGJoxYIrvrVCpIpPSdYuwyv mVsDhWlZMmD9Sf47HVbOXgc_YZk4VHfsQiUbpwp3gk4wy4_bO7Ey_3fuxCYb lHtJDYCjOoJUKgAgWAdDux4iMq17uGwCVvgzNE7efEozkA_i1X2ZmJmW6eJn GJ5J_mNegeYwgMVoiOGXhwUPk30948jXeVcnzurlKI9tKndIo7mOxzqgwTxm VE4p4o6NSOBh_8IyW8sy9lY5c3cFII_nx2tvQ9gzRg--
    X-Originating-IP: [64.191.67.124]
    Authentication-Results: mta1027.mail.sk1.yahoo.com from=avtomakedonija.com; domainkeys=neutral (no sig); from=avtomakedonija.com; dkim=permerror (bad sig)
    Received: from 127.0.0.1 (EHLO avtomakedonija.com) (64.191.67.124) by mta1027.mail.sk1.yahoo.com with SMTP; Mon, 19 Jul 2010 11:47:01 -0700
    Received: by avtomakedonija.com (Postfix, from userid 0) id 783A78718A2A; Mon, 19 Jul 2010 22:49:40 +0400 (MSD)
    X-DKIM: Sendmail DKIM Filter v2.2.1 avtomakedonija.com 783A78718A2A
    DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=avtomakedonija.com; s=default2; t=1279565380; bh=2jmj7l5rSw0yVb/vlWAYkK/YBwk=; h=From: Subject:To:Cc:Message-Id:X-Originating-IP:X-Mailer:Date: Content-Type; b=J/FVS8TLq1C6GA/CKhRRuCgEbmfi1N0vCh9IimhWjkO1OZE8Dt gutNWn3HBT1c4sBtYSWHLAkGs9ZXHSGan1bcCzbimJL+CrUZTcVv4tonRiRDnwagoBP a0UM6jiOZ1lxHEsMkRXGWdNr2KXTl229vKploMIjpnt4fFRYNByACk=
    From:
    [email protected]
    Add sender to Contacts
    Subject:
    To: [email protected]
    Cc:
    Message-Id: <[email protected]>
    X-Originating-IP: 85.187.227.155
    X-Mailer: Webmin 1.510
    Date: Mon, 19 Jul 2010 22:49:40 +0400 (MSD)
    Content-Type: text/plain
    Content-Length: 0

    This i have put in main.cf

    smtpd_milters = unix:/var/run/dkim-milter/dkim.sock
    non_smtpd_milters = unix:/var/run/dkim-milter/dkim.sock



    and this is dkim-milter config
    USER="dkim-milt"
    PORT=local:/var/run/dkim-milter/dkim.sock
    SIGNING_DOMAIN="avtomakedonija.com"
    SELECTOR_NAME="default2"
    KEYFILE="/etc/dkim-milter/${SIGNING_DOMAIN}_${SELECTOR_NAME}.key.pem"
    SIGNER=yes
    VERIFIER=yes
    CANON=simple
    SIGALG=rsa-sha1
    REJECTION="bad=r,dns=t,int=t,no=a,miss=r"
    EXTRA_ARGS="-h -l -D"


    And this is in BIND DNS for my domain zone

    default2._domainkey IN TXT "v=DKIM1; g=*; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDNreverFSF609QD5ggU7dmWwW4TEJSLEWvzEm9ROcGWKR3Ec4K/y9Qgat1z6vvyBw3Ko38E2iDkgrqw+854Sg31IXiExCGHy11CVVGbs3LXN1zwf0czHU4BSUSCgAvPj07ejJ5+CAhQBhQy+4SogJE2oXkwxtC8T0l61UkL3hrlQIDAQAB" ; ----- DKIM default for avtomakedonija.com


    I have domain form another hosting company and hosting from another? The above default2._domainkey is in the DNS zone which is created in the hosting company, not where the domain is hosted (maybe that is the problem)

    Please help :(
     

Share This Page