Christian,

> I tried very hard to get Postfix to include a VBR-header (dwl.spanhaus.org).
> [...]
> So I end up with amavis and really hope that there might be a way to include
> a sender dependent header to outgoing mail, sent from local senders.
> Is there such a trick?

Can be done through a custom hook, e.g.:

sub before_send {
  my($self,$conn,$msginfo) = @_;
 
  if ($msginfo->originating && $msginfo->sender =~ /\...@example\.com\z/i ) {
    # rfc5518 - Vouch By Reference
    # errata: http://www.rfc-editor.org/errata_search.php?rfc=5518
    my($hdr_edits) = $msginfo->header_edits;
    $hdr_edits->add_header('VBR-Info',
                           'md=example.com; mc=all; mv=dwl.spamhaus.org;');
  }

};

Although to do it properly it would require interaction with DKIM
signing code, because that is the place where a signing domain (d tag)
is finally determined based on sending address, available signing keys
and @dkim_signature_options_bysender_maps.  I've prepared a
callback in -pre11, but have not yet provided the required code
to insert the VBR-Info header field.


> What I currently do not know is how to tell amavis in a policy_bank
> (MYUSERS/MYNETS/LOCAL/ORIGINATING), to use a different forward_method.
> Not sure if this is done with @forward_method_maps in amavis-pre11.

Indeed, or easier through $forward_method:

$policy_bank{'ORIGINATING'} = {
 ...
  forward_method => 'smtp:[127.0.0.1]:10025',
...
};


Mark

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to