Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-26-2012, 06:49 AM   #1
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 :

X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
X-Spam-Status: No, score=0.5 required=6.0 tests=DKIM_ADSP_CUSTOM_MED,
	autolearn=no version=3.3.1
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at, low
	*      trust
	*      [ listed in]
	*  0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
	*      (myemail[at]
	*  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 :

Mon Nov 26 13:34:40 2012 [12995] info: spamd: connection from localhost.localdomain [] at port 55274
Mon Nov 26 13:34:40 2012 [12995] info: spamd: processing message <> 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=,rport=55274,mid=<>,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 :

# opendkim -t - < /home/vmail/.../recievedemail 
opendkim: (stdin): verification (s=20120113,, 2048-bit key) succeeded
When receiving an email, I use maildrop with the command
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.


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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:55 PM.

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