I finally got Domainkeys to sign my outgoing emails! BUT...

Discussion in 'HOWTO-Related Questions' started by chantown, Mar 18, 2008.

  1. chantown

    chantown New Member

    It's status is "bad" , according to gmail. It didn't pass the test for some reason.

    I followed this tutorial by Topdog: http://howtoforge.com/how-to-implement-domainkeys-in-postfix-using-dk-milter-centos5.1

    My signature is REALLY weird, can anyone tell me why?
    Code:
    DomainKey-Status: bad (test mode)
    X-DomainKeys: Sendmail DomainKeys Filter v0.6.0 schoogo.com EE12C1A90063
    DomainKey-Signature: a=rsa-sha1; s=default; d=schoogo.com; c=simple; q=dns;
    	b=to6TQe3+wqNaDxD/jbDxKpbniHIpBtbqhpvppzS7iDknErZyxg/ggbNXYM3qImmzj
    	UiHtOgcXVIRlTYa8jsG1w==
    Why is the code so "short"? The other signatures I've seen have REALLY long codes (including the one that I generated in public Key.)

    This is my public key:
    -----BEGIN PUBLIC KEY-----
    MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANtFt3vFVex9aT9aRvx4vV7a7JOPXRs7
    2ypS1s6LbqpD1h9a2U/vHC0MjQYJ7eR7s/QqMXiLkDzJIRqJpy1ThxECAwEAAQ==
    -----END PUBLIC KEY-----

    And this is my private key:
    -----BEGIN RSA PRIVATE KEY-----
    MIIBOgIBAAJBANtFt3vFVex9aT9aRvx4vV7a7JOPXRs72ypS1s6LbqpD1h9a2U/v
    HC0MjQYJ7eR7s/QqMXiLkDzJIRqJpy1ThxECAwEAAQJAZKyrw84k10H1crr2YLDm
    8Yg+mrl2HCztQY9rRMXL96v4F5KYKk6bY8GCnHNuD2Qv6SHzHbmSf2ajLKc/Y5NV
    CQIhAPROEe20iL20AqsSqpPfEIgAmLaFfBbvGUj5lny8W3PbAiEA5cTf5vQ/tk3p
    0nMkdMv4yBexkdI7QM2m1o1jBq85GoMCIGflV6yOjWSXzFayjoZqY95i2o8sv3QF
    ZOxq8HvFouLnAiEApLH5zBJHmOVANRlTiGSsbsCNB3kp/8lpTWELGj9/LwECIGXz
    +GuEtHS0+0vZ/ULNORI7cHFfSOB5aaznW0lw2ffY
    -----END RSA PRIVATE KEY-----


    My dk-milter config:
    Code:
    # Default values
    #
    USER="dk-milt"
    PORT="local:/var/run/dk-milter/dk.sock"
    SIGNING_DOMAIN="schoogo.com"
    SELECTOR_NAME="default"
    KEYFILE="/etc/mail/domainkeys/dk_${SIGNING_DOMAIN}.pem"
    SIGNER=yes
    VERIFIER=yes
    CANON=simple
    REJECTION="bad=r,dns=t,int=t,no=a,miss=r"
    EXTRA_ARGS="-h -l -D"
    MILTER_GROUP="mail"

    This is my mail log:
    Code:
    Mar 17 23:40:45 schoogo dk-filter[30267]: Sendmail DomainKeys Filter: mi_stop=1
    Mar 17 23:40:45 schoogo dk-filter[30267]: Sendmail DomainKeys Filter v0.6.0 terminating with status 0, errno = 0
    Mar 17 23:40:49 schoogo dk-filter[30443]: Sendmail DomainKeys Filter v0.6.0 starting (args: -u dk-milt -p local:/var/run/dk-milter/dk.sock -d schoogo.com -s /etc/mail/domainkeys/dk_schoogo.com.pem -S default -b sv -c simple -C bad=r,dns=t,int=t,no=a,miss=r -h -l -D -P /var/run/dk-filter0.pid)
    Mar 17 23:41:10 schoogo sendmail[30476]: m2I4fAds030476: from=apache, size=135, class=0, nrcpts=1, msgid=<200803180441.m2I4fAds030476@schoogo.com>, relay=apache@localhost
    Mar 17 23:41:10 schoogo postfix/smtpd[30477]: connect from localhost.localdomain[127.0.0.1]
    Mar 17 23:41:10 schoogo postfix/smtpd[30477]: 7D22D1A90063: client=localhost.localdomain[127.0.0.1]
    Mar 17 23:41:10 schoogo postfix/cleanup[30481]: 7D22D1A90063: message-id=<200803180441.m2I4fAds030476@schoogo.com>
    Mar 17 23:41:10 schoogo sendmail[30476]: m2I4fAds030476: to=skoogo@gmail.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30135, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 7D22D1A90063)
    Mar 17 23:41:10 schoogo postfix/qmgr[30417]: 7D22D1A90063: from=<apache@schoogo.com>, size=582, nrcpt=1 (queue active)
    Mar 17 23:41:10 schoogo postfix/smtpd[30477]: disconnect from localhost.localdomain[127.0.0.1]
    Mar 17 23:41:13 schoogo postfix/smtp[30482]: 7D22D1A90063: to=<skoogo@gmail.com>, relay=smtp.charter.net[209.225.8.224]:25, delay=2.7, delays=0.12/0.01/0.14/2.5, dsn=2.0.0, status=sent (250 Message received: 20080318044109.SYUG11293.aarprv06.charter.net@schoogo.com)
    I've tried multiple combinations of TLS/SMTPD-AUTH...disable/enable, but still the same thing exists. (Fail domain key)
    I've also tried c=nofws.

    I'm sending my mail through PHP mail(). Could this mess up the headers?

    I've done everything in the tutorial, can someone tell me what's wrong?

    Thanks!
     
    Last edited: Mar 18, 2008
  2. chantown

    chantown New Member

    Can somebody please help me!? I'm in an urgent hurry :/

    Pleasee anyone have any ideas?
     
  3. falko

    falko Super Moderator

    Have you tried to send a test mail to autorespond+dk@dk.elandsys.com?
     
  4. chantown

    chantown New Member

    Yes, but I don't know how to accept incoming mail (My server is only setup to do outgoing mail), so I don't know what's the problem.
     
  5. falko

    falko Super Moderator

Share This Page