On Tue, 18 Sep 2007, sid milter wrote:
> ReplaceRules
>
> @hostname\.hoge\.com    @hoge\.com
> ^Message-Id:\(.*\)@hoge\.com\(.*\)     Message-Id:[EMAIL PROTECTED]
>
> did not work.  I may have made other mistakes in installing.

You need this in your dkim-filter.conf:

        ReplaceRules    /path/to/file

...and this in /path/to/file:

        @hostname\.hoge\.com    @hoge.com
        ^Message-Id:\(.*\)@hoge\.com\(.*\)      Message-Id:[EMAIL PROTECTED]

...with tabs separating the pattern from the new string.

I just tried that very configuration with a test message that contained 
this header:

        From: Murray S. Kucherawy <[EMAIL PROTECTED]>

In the canonicalized form of the headers, I saw this:

        From: Murray S. Kucherawy <[EMAIL PROTECTED]><CRLF>

...which is correct.  The Message-Id: one worked as well.

Note though that matching of the patterns is case-sensitive for now, so 
"Message-Id:" won't match "Message-ID:" for example.  Ultimately I'll have 
to split the matching of the header name out from the rest of the value 
since header matching should be case-insensitive, but the rest should 
not.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss

Reply via email to