server-map3:/etc/amavis# diff amavisd.conf amavisd.conf-default 66c66 < $mydomain = 'example.com'; # (no useful default) --- > $mydomain = 'vau75-6-82-230-165-116.fbx.proxad.net'; # (no useful default) 105,106c105,106 < $forward_method = 'smtp:127.0.0.1:10025'; # where to forward checked mail < $notify_method = $forward_method; # where to submit notifications --- > #$forward_method = 'smtp:127.0.0.1:10025'; # where to forward checked mail > #$notify_method = $forward_method; # where to submit notifications 183c183 < @local_domains_acl = ( "." ); # $mydomain and its subdomains --- > @local_domains_acl = ( ".$mydomain" , ".map3.net"); # $mydomain and its subdomains 291c291 < $log_level = 0; # (defaults to 0) --- > $log_level = 3; # (defaults to 0) 343c343 < read_l10n_templates('de_DE', '/etc/amavis'); --- > read_l10n_templates('en_US', '/etc/amavis'); 399c399 < $final_virus_destiny = D_BOUNCE; # (defaults to D_BOUNCE) --- > $final_virus_destiny = D_DISCARD; # (defaults to D_BOUNCE) 401c401 < $final_spam_destiny = D_PASS; # (defaults to D_REJECT) --- > $final_spam_destiny = D_BOUNCE; # (defaults to D_REJECT) 429c429 < #$warnvirussender = 1; # (defaults to false (undef)) --- > $warnvirussender = 0; # (defaults to false (undef)) 432c432 < #$warnspamsender = 1; # (defaults to false (undef)) --- > $warnspamsender = 0; # (defaults to false (undef)) 435c435 < #$warnbannedsender = 1; # (defaults to false (undef)) --- > $warnbannedsender = 1; # (defaults to false (undef)) 442,443c442,443 < #$warnvirusrecip = 1; # (defaults to false (undef)) < #$warnbannedrecip = 1; # (defaults to false (undef)) --- > $warnvirusrecip = 0; # (defaults to false (undef)) > $warnbannedrecip = 0; # (defaults to false (undef)) 447c447 < #$warn_offsite = 1; # (defaults to false (undef), i.e. only notify locals) --- > $warn_offsite = 1; # (defaults to false (undef), i.e. only notify locals) 478,479c478,479 < # $virus_admin = 'virus-admin@example.com'; < $virus_admin = "postmaster\@$mydomain"; # due to D_DISCARD default --- > $virus_admin = 'virus@protheia.com'; > #$virus_admin = "postmaster\@$mydomain"; # due to D_DISCARD default 504c504 < #$mailfrom_notify_admin = "virusalert\@$mydomain"; --- > $mailfrom_notify_admin = "security\@protheia.com"; 517c517 < $hdrfrom_notify_sender = "amavisd-new "; --- > # $hdrfrom_notify_sender = "amavisd-new "; 536c536 < $QUARANTINEDIR = '/var/mail/virus'; --- > $QUARANTINEDIR = '/var/lib/amavis/virusmails'; 538,539c538,539 < #$virus_quarantine_method = "local:virus-%i-%n"; # default < #$spam_quarantine_method = "local:spam-%b-%i-%n"; # default --- > $virus_quarantine_method = "local:virus-%i-%n"; # default > $spam_quarantine_method = "local:spam-%b-%i-%n"; # default 615c615 < #$spam_quarantine_to = 'spam-quarantine'; --- > $spam_quarantine_to = 'spam-quarantine'; 635c635 < $remove_existing_x_scanned_headers = 0; # leave existing X-Virus-Scanned alone --- > $remove_existing_x_scanned_headers = 1; # leave existing X-Virus-Scanned alone 687c687 < # qr'\.[^.]*\.(exe|vbs|pif|scr|bat|cmd|com|dll)$'i, # some double extensions --- > qr'\.[^.]*\.(exe|vbs|pif|scr|bat|cmd|com|dll)$'i, # some double extensions 785c785 < # $virus_lovers{lc('abuse@example.com')} = 1; --- > $virus_lovers{lc('virus@protheia.com')} = 1; 849a850,867 > > > #ADDED BY PROTHEIA > #use DBI; > #my $db = "vhcs2"; > #my $user="vhcs2"; > #my $host="localhost"; > #my $password="DarkVador"; > #my $dbh = DBI->connect("DBI:mysql:database=$db;host=$host", $user, $password, {RaiseError => 1}); > #my $arr = $dbh->selectcol_arrayref('SELECT domain_name, 1 FROM domain', {Columns=>[1,2]}); > #my $arre = $dbh->selectcol_arrayref('SELECT alias_name, 1 FROM domain_aliasses', {Columns=>[1,2]}); > #my $lis = ($arre,$arr); > #%local_domains = (@$arr,@$arre); > > > > > 1023a1042,1054 > $per_recip_blacklist_sender_lookup_tables = { > 'jcgrosso@map3.net'=>[qw(.arep.fr .buzzsaw.com .263.net.cn)], > 'jc_grosso@map3.net'=>[qw(.arep.fr .buzzsaw.com .263.net.cn)], > 'test2@map3.net'=>[qw(.arep.fr .buzzsaw.com .263.net.cn)], > }; > > $per_recip_whitelist_sender_lookup_tables = { > 'jcgrosso@map3.net'=>[qw( Gauthier.HITTER@arep.fr gauthier.hitter@arep.fr Luis.FERNANDES@arep.fr )], > 'jc_grosso@map3.net'=>[qw( Gauthier.HITTER@arep.fr gauthier.hitter@arep.fr Luis.FERNANDES@arep.fr )], > 'test2@map3.net'=>[qw( Gauthier.HITTER@arep.fr gauthier.hitter@arep.fr Luis.FERNANDES@arep.fr )], > }; > > 1110c1141 < $sa_timeout = 30; # timeout in seconds for a call to SpamAssassin --- > $sa_timeout = 120; # timeout in seconds for a call to SpamAssassin 1116c1147 < $sa_mail_body_size_limit = 150*1024; # don't waste time on SA is mail is larger --- > $sa_mail_body_size_limit = 300*1024; # don't waste time on SA is mail is larger 1121,1122c1152,1153 < $sa_tag_level_deflt = -0.1; # add spam info headers if at, or above that level < $sa_tag2_level_deflt = 4.0; # add 'spam detected' headers at that level --- > $sa_tag_level_deflt = -999.0; # add spam info headers if at, or above that level > $sa_tag2_level_deflt = 5.0; # add 'spam detected' headers at that level 1124,1125c1155,1156 < # at or above that level: bounce/reject/drop, < # quarantine, and adding mail address extension --- > # at or above that level: bounce/reject/drop, > # quarantine, and adding mail address extension 1148c1179 < #$sa_spam_modifies_subj = 1; # may be a ref to a lookup table, default is true --- > $sa_spam_modifies_subj = 1; # may be a ref to a lookup table, default is true 1153c1184 < $first_infected_stops_scan = 1; # default is false, all scanners are called --- > $first_infected_stops_scan = 0; # default is false, all scanners are called 1483a1515 >