________________________________
Áðï: Mark Martinec <Mark.Martinec+***@ijs.si>
Ðñïò: amavis-***@amavis.org
ÓôÜëèçêå: 4:17 ì.ì. Ôñßôç, 6 Ìáñôßïõ 2012
Èåìá: Re: DKIM and Amavis
Post by Peter TseliosIs it possible to handle DKIM via amavis?
Yes, since version 2.6.0, with some improvements in later versions.
Post by Peter TseliosIf so, is it possible to sign only SASL authenticated outgoing messages?
My setup is postfix + Amavis +opendkim.
Signing can be enabled/disabled by a policy bank, so the idea is to let
an MTA route messages which should be signed to a dedicated content
filtering port, where the policy bank can adjust the settings accordingly.
With version 2.7.0 the $enable_dkim_signing can be adjusted
by a policy bank:
- settings $enable_dkim_verification and $enable_dkim_signing are now
dynamic, i.e. became members of policy banks, thus facilitating
selectively enabling or disabling these features on a policy bank basis;
For example:
$enable_dkim_signing = 0;
$interface_policy{'10026'} = 'ORIGINATING';
$policy_bank{'ORIGINATING'} = {
originating => 1,
enable_dkim_signing => 1,
}
With earlier versions the same can be accomplished through
a @dkim_signature_options_bysender_maps setting, which was
always dynamic (i.e. configurable through policy banks).
Post by Peter TseliosIf so, is it possible to sign only SASL authenticated outgoing messages?
Btw, even without any special settings, amavisd generates DKIM signatures
only for non-spam messages with $originating flag on, which (depending
on an MTA setup) only applies to authorized mail submission, either
through client's IP address being in @mynetworks, or for authenticated
(e.g. SASL) roaming users.
Mark
Mark, I am impressed...
Let me put it in a simpler context, in order to see if I understood that correctly.
1. It is possible
2. In order to do so, I need to copy/paste your example
And finally (I need your help here):
3. Configure Postfix to write the ORIGINATING header?