LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2012, 06:49 AM   #1
martvefun
Member
 
Registered: Apr 2010
Location: Belgium
Distribution: Archlinux
Posts: 53

Rep: Reputation: 1
SpamAssassin fails to verify a valid DKIM signature


I have installed spamassassin on my debian machine to verify incoming dkim signature (package spamassassin and libmail-dkim-perl). I use postfix and maildrop on virtual maildir mailbox.

I send an email from a Gmail address (which is supposed to have a valid DKIM signature) and the headers of my email contains that :

Code:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mart.ovh.net
X-Spam-Level: 
X-Spam-Status: No, score=0.5 required=6.0 tests=DKIM_ADSP_CUSTOM_MED,
	FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,SPF_PASS,T_DKIM_INVALID
	autolearn=no version=3.3.1
X-Spam-Report: 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
	*      trust
	*      [209.85.217.180 listed in list.dnswl.org]
	*  0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
	*      (myemail[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	* -0.0 SPF_PASS SPF: sender matches SPF record
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list
In my log spamd, I see :

Code:
Mon Nov 26 13:34:40 2012 [12995] info: spamd: connection from localhost.localdomain [127.0.0.1] at port 55274
Mon Nov 26 13:34:40 2012 [12995] info: spamd: processing message <50B361BA.8090007@gmail.com> for spamd:5001
Mon Nov 26 13:34:51 2012 [12995] info: spamd: clean message (0.5/6.0) for spamd:5001 in 10.6 seconds, 3117 bytes.
Mon Nov 26 13:34:51 2012 [12995] info: spamd: result: . 0 - DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,SPF_PASS,T_DKIM_INVALID scantime=10.6,size=3117,user=spamd,uid=5001,required_score=6.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=55274,mid=<50B361BA.8090007@gmail.com>,autolearn=no
(by the way: the verification took 10sec, that's really long no ? I use spamc/spamd because it was supposed to speed up the verification)

I checked manually the signature of the email with opendkim and it succeed :

Code:
# opendkim -t - < /home/vmail/.../recievedemail 
opendkim: (stdin): verification (s=20120113, d=gmail.com, 2048-bit key) succeeded
When receiving an email, I use maildrop with the command
Code:
xfilter "/usr/bin/spamc -u spamd"
Any idea what can cause that ?
Thank you

Last edited by martvefun; 11-26-2012 at 06:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DKIM Verify ? LBM Linux - Software 1 10-02-2011 08:23 AM
Email Dkim-signature mnauta General 1 01-17-2010 05:33 AM
Sendmail - dkim-filter problem. Test : fail (signature doesn' verify) ethic Linux - Server 0 05-15-2009 01:16 PM
How to verify signature ? visu Linux - Newbie 5 05-07-2009 05:25 PM
Using Kgpg, how to verify signature gljubuncic Linux - Software 2 05-14-2005 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration