$hdrfrom_notify_* configuration

Pascal Volk user+amavis-users at localhost.localdomain.org
Sun Jan 8 00:31:16 CET 2012


Hello,

I'm using amavisd-new-2.7.0 (20110701) on Debian GNU/Linux.

,--[ /etc/amavis/conf.d/50-user ]--
|| ## NOTIFICATIONS (DSN, admin, recip)
| $virus_admin                    = "filter\@$mydomain";
| $mailfrom_notify_admin          = $virus_admin;
| $mailfrom_notify_recip          = $virus_admin;
| $mailfrom_notify_spamadmin      = $virus_admin;
| 
| $hdrfrom_notify_sender          = "E-Mail Content-Filter <$virus_admin>";
| $hdrfrom_notify_admin           = $hdrfrom_notify_admin;
| $hdrfrom_notify_recip           = $hdrfrom_notify_admin;
| $hdrfrom_notify_spamadmin       = $hdrfrom_notify_admin;
|| ## POLICY BANKS
| $interface_policy{'10024'}      = 'QUX';
| $interface_policy{'10026'}      = 'BAZ';
| $policy_bank{'QUX'} = {
|         forward_method          => 'smtp:[127.1.2.7]:10025',
|         notify_method           => 'smtp:[127.1.2.7]:10025',
|         protocol                => 'LMTP',
|         warnbannedrecip_maps    => [1],
|         warnvirusrecip_maps     => [1],
| };
|`--

Policy bank QUX is responsible for incoming mail. When I send a message,       
with a compiled 'hello world' binary - named file.exe, the message will
be quarantined and the message's recipient receives a notification.

The problem is the Header-From:
        "Content-filter at filter.example.com" <filter at example.com>
        
Looks like the 'global' $hdrfrom_notify_* variables are ignored inside 
of a policy bank.
Do I have to repeat all $hdrfrom_notify_* settings for each policy bank?


Regards,
Pascal
-- 
The trapper recommends today: cafebabe.1200723 at localdomain.org


More information about the amavis-users mailing list