Tomas, > I would love to be able to get copy of each released message. I want to > learn from messages my users release from SQL quarantine through MailZu > interface. > > $interface_policy{'9998'} = 'AM.PDP'; > > $policy_bank{'AM.PDP'} = { > protocol => 'AM.PDP', > inet_acl => [qw( 127.0.0.1 [::1] )], > #forward_method => "bsmtp:$MYHOME/out-%i-%n.bsmtp", > }; > > This construction doesnt work. > Can somebody please push me in right direction ?
This should do: $policy_bank{'AM.PDP'} = { protocol => 'AM.PDP', inet_acl => [qw( 127.0.0.1 [::1] )], always_bcc_by_ccat => {CC_CLEAN, '[EMAIL PROTECTED]'}, }; but requires the following patch (to 2.5.2), which will find its way into the next release: --- amavisd.orig Wed Jun 27 12:43:00 2007 +++ amavisd Mon Jul 30 19:28:33 2007 @@ -7177,4 +7177,15 @@ join(',', qquote_rfc2821_local(@{$msginfo->recips})) )); } + my($bcc) = $msginfo->setting_by_contents_category(cr('always_bcc_by_ccat')); + if (defined $bcc && $bcc ne '') { + my($recip_obj) = Amavis::In::Message::PerRecip->new; + # leave recip_addr and recip_addr_smtp undefined! + $recip_obj->recip_addr_modified($bcc); + $recip_obj->recip_destiny(D_PASS); + $recip_obj->dsn_notify(['NEVER']); + $recip_obj->contents_category(CC_CLEAN); + $msginfo->per_recip_data([EMAIL PROTECTED]>per_recip_data}, $recip_obj]); + do_log(2,"adding recipient - always_bcc: %s", $bcc); + } do_log(0, "Quarantine %s %s: %s", $request_type, $quarantine_id, join("; ",@m)) if @m; Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/