* "[email protected]" <[email protected]>:
> http://marc.info/?l=postfix-users&m=141128851606167&w=2
>
> what do people imagine happens if they send the GTUB per mail?
> it will be rejcted and may lead up in accout suspend for the
> innocent RCPT - don#t do that, call it by name - period
You could define a policy bank that defaults to D_DISCARD and call this
one for list mail only.
fup2 amavis-users :)
Stefan
package Amavis::Custom;
use strict;
BEGIN {
import Amavis::Conf qw(:platform :confvars c cr ca $myhostname);
import Amavis::Util qw(do_log untaint safe_encode safe_decode);
import Amavis::rfc2821_2822_Tools;
import Amavis::Notify qw(build_mime_entity);
}
sub new {
my($class,$conn,$msginfo) = @_;
my($self) = bless {}, $class;
my $low_precedence = 0;
foreach my $line (@{$msginfo->{'orig_header'}}) {
$line =~ s/\n / /g;
$low_precedence = 1 if $line =~
m/^Precedence:\s+(bulk|list|junk)/i;
}
if ($low_precedence) {
do_log(2, sprintf("Load low precedence policybank"));
Amavis::load_policy_bank('PREQ-LOWPRECEDENCE')
}
return $self;
}
1; # insure a defined return