[Dragging this over to [email protected] from 
[EMAIL PROTECTED]

On Mon, 14 Jan 2008, Lewis Bergman wrote:
> I have searched the documentation and list for examples of the
> subject's use and can't seem to find anything beyond the man page for
> the conf file. Are there some examples located around that might help?
> 
> I was hoping to pass in the auth_authen macro and if not empty, use
> the domain key for the corresponding domain part if present. We are
> still transitioning to a completely authenticated only outbound mail
> system and would like to sign only the authenticated messages with
> DKIM until we get there.

MacroList is only used to determine whether or not the filter should be 
signing the message based on macros made available to the filter from the 
MTA.  The only tests you can do are "Is this macro set at all?" and "Is 
this macro set to a particular value?"  You can't (yet) use the value of a 
macro to decide which key to use.

Interesting idea, though.

At present you'd have to use the KeyList feature and set up a table 
mapping domains to keys.  The domain used in that case is taken from the 
From: header field, not the value of any particular macro.

If you like, open a feature request through SourceForge's tracker system 
and I can see about putting that change as an option into the next release 
of the filter.

> I saw the rfc2822_mailbox_split() function but it appears I would need 
> to write my own filter to use it. Sadly, I am not that bright.

That function just parses an RFC2822 header into its useful components. 
The code to make use of that information afterwards is what's of interest 
here.

-MSK

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss

Reply via email to