problems with dkim-milter and mailscanner/postfix

Paul Hutchings paul.hutchings at
Tue Apr 22 15:12:57 IST 2008

Ok some of the terminology is being lost on me here.

The Howtoforge instructions are totally straightforward for me to
follow, I suspect whatever is happening relates to either MailScanner
(full body edits?) or the version of Postfix.

I don't do anything especially complex with Postfix so I could use one
of Simon Mudds RPMs to get up to the latest version (assuming he's still
churning them out).

I also noticed in the logs errors such as:

902141FCDE SSL error:04067069:rsa routines:RSA_EAY_PUBLIC_DECRYPT:pkcs1
padding too short

Which mean nothing to me.

Frankly this seems a nightmare :-)

-----Original Message-----
From: mailscanner-bounces at
[mailto:mailscanner-bounces at] On Behalf Of Glenn
Sent: 22 April 2008 10:41
To: MailScanner discussion
Subject: Re: problems with dkim-milter and mailscanner/postfix

On 22/04/2008, andrew colin <andrew.colin at> wrote:
> I have been investigating this issue as i have also come across it,
>  Well as the postfix queue format is not
>  documented my assumptions were just guess work so correct me if i am
A bit more sophisticated than that:-). There is the code, and some
fairly extensive comments in there, so it is far from pure
guessing/reverse engineering. There is an element of that too, but ...

>  wrong, i was under the assumption
>  that the integer values at the beginning of the queue file represent
>  the side of the message.
Exactly what have you been looking at? The file "on hold" will not
change, since we build a completely new one from scratch. I haven't
looked at how the start record is generated (or if it simply is
"transported" lately, so don't remeber thsoe details... But I do have
some faint recollections that that should be recalculated as the queue
file is written...

>  What i picked up was that even after the milter inserted the extra
>  headers to the message these values
>  remained the same the perl module resonsible for reading the queue
>  file and processing it was then
>  unable to due to the fact that it was not reading to the wrong place
>  within the queue file.
What are you on about? What perl module and where? What version of
MailScanner uses two perl modules to read the message: (the
ReadQf sub) and (the Body class). It reads all the
records comprising the queue file into the message object, doing any
adjustments needed, and later on write out a completely new file. So
unless you "catch" that new file, you don't know how it has been

Now, the problem Paul likely had was due to a bug in the Body class...
That was fixed in stable release 4.68.8. If you run anything prior to
that ... you shouldn't try using milters;-).

>  P.S and yes postfix on Centos 5.1 comes with milter support built in.
If it is PF2.3.x, full body edits aren't possible.

>  Andrew

-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 


Watling Street, Nuneaton, Warwickshire, CV10 0TU, England.

Registered in England and Wales No. 402570
VAT Registration  GB 114 5409 96

The contents of this e-mail are confidential and are solely for the use of the intended recipient.
If you receive this e-mail in error, please delete it and notify us either by e-mail, telephone or fax.
You should not copy, forward or otherwise disclose the content of the e-mail as this is prohibited.

More information about the MailScanner mailing list