[AMaViS-user] unblock zip

2009-03-26 Thread Coert Waagmeester
Hello all,


I am trying to get zip archives unblocked.

I have checked in the config file, but apparently it is supposed to not
be blocked:

### BLOCKED ANYWHERE
# qr'^UNDECIPHERABLE$',  # is or contains any undecipherable components
  qr'^\.(exe-ms|dll)$',   # banned file(1) types,
rudimentary
# qr'^\.(exe|lha|tnef|cab|dll)$', # banned file(1) types

### BLOCK THE FOLLOWING, EXCEPT WITHIN UNIX ARHIVES:
# [ qr'^\.(gz|bz2)$' => 0 ],  # allow any in gzip or bzip2
  [ qr'^\.(rpm|cpio|tar)$'   => 0 ],  # allow any in Unix-type
archives

  qr'.\.(pif|scr)$'i, # banned extensions -
rudimentary
# qr'^\.zip$',# block zip type
---


zip is commented, so why does it block it?


Kind regards,
Coert



--
___
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/ 


Re: [AMaViS-user] how does whitelisting work in amavis?

2008-11-20 Thread Coert Waagmeester
Hello!

Thanks for your help! worked perfectly.

For the whitelists? can I use spamassassins config file?
or is it better to do it inside amavisd.conf?



On Wed, 2008-11-19 at 11:50 +0100, achraf tangui wrote:
> Hi
> 
> I'll answer the second part of you question, 
> 
> >And I want to have notifications sent to my postmaster address for
> every
> >spam and virus infected mail that is 'caught'
> 
> IMHO, this can be done easily by setting this in you config file:
> $spam_admin = '[EMAIL PROTECTED]'; 
> $virus_admin = '[EMAIL PROTECTED]';
> $banned_admin = '[EMAIL PROTECTED]';
> 
> you can also  have the infected email to be sent to some email address
> set this :
> ###tel amvis how to quarantine##
> $virus_quarantine_method = 'local:';
> $spam_quarantine_method = 'local:';
> $banned_files_quarantine_method = 'local:';
> 
> ###where###
> $virus_quarantine_to ='[EMAIL PROTECTED]';
> $spam_quarantine_to = '[EMAIL PROTECTED]';
> $banned_files_quarantine_to = '[EMAIL PROTECTED]';
> ###
>  
> check this http://www.ijs.si/software/amavisd/amavisd-new-docs.html 
> for policies, including whitlelisting.
> Achraf
> 
> 
> 2008/11/19 Coert Waagmeester <[EMAIL PROTECTED]>
> Hello all,
> 
> I have a successful working install of amavisd-new.
> 
> I do not know Perl at all, although I can more or less
> understand how
> the config files work.
> 
> I have a setup with postfix and dovecot, where all
> authentication
> happens from LDAP.
> 
> Is it necessary for me to have amavis connect to the LDAP as
> well?
> 
> 
> I want to be able to somewhere make a list of whitelisted
> addresses.
> 
> And I want to have notifications sent to my postmaster address
> for every
> spam and virus infected mail that is 'caught'
> 
> What would be the best way of doing this?
> 
> Do you want me to send through my amavisd-new config file?
> 
> Kind regards,
> Coert
> 
> 
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK &
> win great prizes
> Grand prize is a trip for two to an Open Source event anywhere
> in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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/
> 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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/ 


[AMaViS-user] how does whitelisting work in amavis?

2008-11-19 Thread Coert Waagmeester
Hello all,

I have a successful working install of amavisd-new.

I do not know Perl at all, although I can more or less understand how
the config files work.

I have a setup with postfix and dovecot, where all authentication
happens from LDAP.

Is it necessary for me to have amavis connect to the LDAP as well?


I want to be able to somewhere make a list of whitelisted addresses.

And I want to have notifications sent to my postmaster address for every
spam and virus infected mail that is 'caught'

What would be the best way of doing this?

Do you want me to send through my amavisd-new config file?

Kind regards,
Coert


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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/ 


[AMaViS-user] amavis notification setup

2008-10-30 Thread Coert Waagmeester
Hello all,

I am very new to amavis.

I got it going with postfix, and it seems to work.

But I am unable to get notifications set up...

Any help would be appreciated.
I have attached my config file.

I run CentOS 5.2 with everything installed from the repos.


Kind regards,
Coert
use strict;

# a minimalistic configuration file for amavisd-new with all necessary settings
#
#   see amavisd.conf-default for a list of all variables with their defaults;
#   see amavisd.conf-sample for a traditional-style commented file;
#   for more details see documentation in INSTALL, README_FILES/*
#   and at http://www.ijs.si/software/amavisd/amavisd-new-docs.html


# COMMONLY ADJUSTED SETTINGS:

# @bypass_virus_checks_maps = (1);  # uncomment to DISABLE anti-virus code
# @bypass_spam_checks_maps  = (1);  # uncomment to DISABLE anti-spam code

$max_servers = 10;# num of pre-forked children (2..15 is common), -m
$daemon_user  = 'amavis'; # (no default;  customary: vscan or amavis), -u
$daemon_group = 'amavis'; # (no default;  customary: vscan or amavis), -g

$mydomain = 'example.com';   # a convenient default for other settings

$MYHOME = '/var/spool/amavisd';   # a convenient default for other settings, -H
$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T
$ENV{TMPDIR} = $TEMPBASE;# environment variable TMPDIR
$QUARANTINEDIR = "$MYHOME/quarantine";  # -Q
# $quarantine_subdir_levels = 1;  # add level of subdirs to disperse quarantine

# $daemon_chroot_dir = $MYHOME;   # chroot directory or undef, -R

# $db_home   = "$MYHOME/db";  # dir for bdb nanny/cache/snmp databases, -D
# $helpers_home = "$MYHOME/var";  # working directory for SpamAssassin, -S
$lock_file = "/var/run/amavisd/amavisd.lock";  # -L
$pid_file  = "/var/run/amavisd/amavisd.pid";   # -P
#NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually

@local_domains_maps = ( [".$mydomain"] );
# @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
#   10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );

$log_level = 0;  # verbosity 0..5, -d
$log_recip_templ = undef;# disable by-recipient level-0 log entries
$DO_SYSLOG = 1;  # log via syslogd (preferred)
$syslog_facility = 'mail';   # Syslog facility as a string
   # e.g.: mail, daemon, user, local0, ... local7
$syslog_priority = 'debug';  # Syslog base (minimal) priority as a string,
   # choose from: emerg, alert, crit, err, warning, notice, info, debug

$enable_db = 1;  # enable use of BerkeleyDB/libdb (SNMP and nanny)
$enable_global_cache = 1;# enable use of libdb-based cache if $enable_db=1

$inet_socket_port = 10024;   # listen on this local TCP port(s) (see $protocol)
$unix_socketname = "$MYHOME/amavisd.sock";  # amavisd-release or amavis-milter
# option(s) -p overrides $inet_socket_port and $unix_socketname

$interface_policy{'SOCK'}='AM.PDP-SOCK';  # only relevant with $unix_socketname
# Use with amavis-release over a socket or with Petr Rehor's amavis-milter.c
# (with amavis-milter.c from this package or old amavis.c client use 'AM.CL'):
$policy_bank{'AM.PDP-SOCK'} = { protocol=>'AM.PDP' };

$sa_tag_level_deflt  = 2.0;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent
# $sa_quarantine_cutoff_level = 20; # spam level beyond which quarantine is off
# $penpals_bonus_score = 5;  # (no effect without a @storage_sql_dsn database)
# $penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam

$sa_mail_body_size_limit = 400*1024; # don't waste time on SA if mail is larger
$sa_local_tests_only = 0;# only tests which do not require internet access?

# @lookup_sql_dsn =
#   ( ['DBI:mysql:database=mail;host=127.0.0.1;port=3306', 'user1', 'passwd1'],
# ['DBI:mysql:database=mail;host=host2', 'username2', 'password2'],
# ["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite", '', ''] );
# @storage_sql_dsn = @lookup_sql_dsn;  # none, same, or separate database

# $timestamp_fmt_mysql = 1; # if using MySQL *and* msgs.time_iso is TIMESTAMP;
#   defaults to 0, which is good for non-MySQL or if msgs.time_iso is CHAR(16)

$virus_admin   = '[EMAIL PROTECTED]';# 
notifications recip.

$mailfrom_notify_admin = '[EMAIL PROTECTED]';# 
notifications sender
$mailfrom_notify_recip = '[EMAIL PROTECTED]';# 
notifications sender
$mailfrom_notify_spamadmin = '[EMAIL PROTECTED]';# 
notifications sender
$mailfrom_to_quarantine = '[EMAIL PROTECTED]'; # null return path; uses 
original sender if undef

@addr_extension_virus_maps  = ('virus');
@addr_extension_banned_maps = ('banned');
@addr_extension_spam_maps   = ('spam');
@addr_extension_bad_header_map