Closed kavih closed 10 years ago
Hello Kavih, thank you for your support. I have just created an AOL e-mail account and tested the lib against it, the DKIM signature passes. I think you have to figure out what your MTA is doing wrong.
The issue was as I expected. AOL parses the very first DKIM header, or something like that, because when I turned off my server's dkim daemon, it worked great. Thanks again, Louis!
You're welcome !
Hi Louis,
Thank you so much for providing this set of code to do DKIM signatures. I know in your comments you specify that you've only successfully tested against Gmail, Yahoo, Live.com, and appmaildev.com, but I was wondering if you could dig into AOL support as well? I have accounts for all of the above (minus appmaildev.com) and AOL is the only one DKIM fails on. It could be that my server's dkim daemon injects it's own DKIM header and AOL takes the first one it gets, but all the other email clients work fine with the same setup, so that is where I'm not sure. Here are the full message source from AOL, which fails:
(image)
(text, some of which GitHub removed characters from, e.g. html code, etc.)
Return-Path: webserv@truthmapper.com Received: from truthmapper.com (truthmapper.com [216.55.143.16]) by mtain-di04.r1000.mx.aol.com (Internet Inbound) with ESMTP id 4313C3800009F for goatdubbs@aol.com; Mon, 21 Apr 2014 00:17:45 -0400 (EDT) Received: by truthmapper.com (Postfix, from userid 501) id 4E7CBB60153; Sun, 20 Apr 2014 21:17:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=truthmapper.com; s=default; t=1398053864; bh=7mDNCswHl11YdDCW5bbTBmdxIXltwXDegLogmU8UUUs=; h=To:Subject:From:Date; b=oW2FqByYBy4zU5yazhv/qQEs5StPyA0qhQ2iuZnlQS5TKS3wTLbctebof+G2dj7ub vIcK2cgriSXREluVGYDe0yzBkZwOkEjaFtp3Rq+6StSv87U1j6DyYFyH66MArs51I7 4QNyn23piOAXK9j27ltUs0L3hJZ6aOjEbCFJio0E= To: Kavih goatdubbs@aol.com Subject: Domainkeys Test DKIM-Signature: v=1; a=rsa-sha1; q=dns/txt; s=default; t=1398053864; c=relaxed/relaxed; h=mime-version:from:to:subject; d=truthmapper.com; bh=ZxaqlPOuVCsVUKzh4g6QR1rbovI=; b=FUb4xbgjdlJR8hDucC5ujAgOTNTwHObMSF+QxJR8N1IO/UUD44+cN9cDp3bm5LLm fhA08djJ6GLrJjloEUDRjt9YWh7M/POdMHRd5mlqiTUJ8gWSxHpmCt4QfvaxCiK6 x9M9hVB0YW/l78uMGC4aSXh7tzXOdpxvt3jrnCoHXTk= MIME-Version: 1.0 From: "Truth Mapper" noreply@truthmapper.com Content-type: text/html; charset=utf8 Message-Id: 20140421041744.4E7CBB60153@truthmapper.com Date: Sun, 20 Apr 2014 21:17:44 -0700 (MST) x-aol-global-disposition: S X-AOL-SCOLL-AUTHENTICATION: mtain-di04.r1000.mx.aol.com ; domain : null DKIM : none Authentication-Results: mx.aol.com; spf=pass (aol.com: the domain truthmapper.com reports 216.55.143.16 as a permitted sender.) smtp.mailfrom=truthmapper.com; dkim=fail (aol.com: No valid DKIM header.) header.d=null; X-AOL-REROUTE: YES x-aol-sid: 3039ac1da60853549be84b20 X-AOL-IP: 216.55.143.16 X-AOL-SPF: domain : truthmapper.com SPF : pass
DKIM Test EmailAnd the same email sent to my Gmail account, which succeeds:
(image)
(text, some of which GitHub removed characters from, e.g. html code, etc.)
Delivered-To: kavih7@gmail.com Received: by 10.140.27.230 with SMTP id 93csp179516qgx; Sun, 20 Apr 2014 21:15:48 -0700 (PDT) X-Received: by 10.15.111.206 with SMTP id cj54mr44046159eeb.8.1398053747772; Sun, 20 Apr 2014 21:15:47 -0700 (PDT) Return-Path: webserv@truthmapper.com Received: from truthmapper.com (truthmapper.com. [216.55.143.16]) by mx.google.com with ESMTP id 43si52394647eei.55.2014.04.20.21.15.46 for kavih7@gmail.com; Sun, 20 Apr 2014 21:15:47 -0700 (PDT) Received-SPF: pass (google.com: domain of webserv@truthmapper.com designates 216.55.143.16 as permitted sender) client-ip=216.55.143.16; Authentication-Results: mx.google.com; spf=pass (google.com: domain of webserv@truthmapper.com designates 216.55.143.16 as permitted sender) smtp.mail=webserv@truthmapper.com; dkim=pass header.i=@truthmapper.com Received: by truthmapper.com (Postfix, from userid 501) id ABD3DB60153; Sun, 20 Apr 2014 21:15:45 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=truthmapper.com; s=default; t=1398053745; bh=7mDNCswHl11YdDCW5bbTBmdxIXltwXDegLogmU8UUUs=; h=To:Subject:From:Date; b=YaWT0qO2FCy6WZEZNxK8ChXdMiy/PAFN16ZrPbjrJ8AFigF3Kd5y4pNcRls2z8qDu yZD1DMrPh/04SN4AX8KT+zOBa1JrskvdlQPvxSU2twDiBUF6uF+LiTubDxQs5l3Nvi ffeSlYoae1d13HpbD1fRooIOy38NB2QWyEwt3COs= To: Kavih kavih7@gmail.com Subject: Domainkeys Test DKIM-Signature: v=1; a=rsa-sha1; q=dns/txt; s=default; t=1398053745; c=relaxed/relaxed; h=mime-version:from:to:subject; d=truthmapper.com; bh=ZxaqlPOuVCsVUKzh4g6QR1rbovI=; b=g7NSMQ9ywzOUccqpiEsv4rksHiOg3/GRFJ29fK450kI8QGnCb2l1dnWxaqnIvgGj Em1MI5JF1StnGkRHDnDuernImNyVulcDF5Lo7Keth+mvuSLa8OcVAcZbhQzu7rn4 CGYOQ7ikE/4n2mOBY964HkwdHqGjGhVeVmoSiUZ3kOU= MIME-Version: 1.0 From: "Truth Mapper" noreply@truthmapper.com Content-type: text/html; charset=utf8 Message-Id: 20140421041545.ABD3DB60153@truthmapper.com Date: Sun, 20 Apr 2014 21:15:45 -0700 (MST)
DKIM Test Email