Michael Post wrote:
Hallo Sandy,
Sandy Drobic schrieb:
Michael Post wrote:
Wie sieht die Amavis-Konfiguration denn im Augenblick aus?
egrep -v '^#|^$|^[ ]+#' /etc/amavisd.conf
use strict; $max_servers = 10; # number of pre-forked children (2..15 is common) $daemon_user = 'amavis'; # (no default; customary: vscan or amavis) $daemon_group = 'amavis'; # (no default; customary: vscan or amavis) $mydomain = 'mail01.DOMAIN.de'; # a convenient default for other settings
Setze auch einen FQDN Hostname, ich meine mich daran erinnern zu können, dass ohne diesen einige Dinge nicht funktionieren.
$MYHOME = '/var/amavis'; # a convenient default for other settings
Gibt es das Verzeichnis? Bei mir liegt das unter /var/spool/amavis.
$TEMPBASE = "$MYHOME/tmp"; # working directory, needs to be created manually $ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR $QUARANTINEDIR = '/var/virusmails'; @local_domains_maps = ( [".$mydomain"] ); @lookup_sql_dsn =(['DBI:mysql:database=1000mail;host=127.0.0.1;port=33016', '1000mail', 'passwort']); $sql_select_policy = "SELECT domain_name FROM domain WHERE domain_name='%s'"; $log_level = 0; # verbosity 0..5
Setze den Loglevel mal etwas höher, falls diese Tipps nicht helfen, vielleicht kannst du dann schon sehen, wo es hakt.
$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 $syslog_priority = 'debug'; # Syslog base (minimal) priority as a string, $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 $interface_policy{'SOCK'}='AM.PDP-SOCK'; # only relevant with $unix_socketname $policy_bank{'AM.PDP-SOCK'} = { protocol=>'AM.PDP' }; $sa_debug = 1; $sa_tag_level_deflt = -999; # Edited by Michael Post, Default 2.0; # add spam info headers if at, or above that level $sa_tag2_level_deflt = 5.0; # Edited by Michael Post, Default 6.31; # add 'spam detected' headers at that level $sa_kill_level_deflt = 20.0; # Edited by Michael Post, Default 6.31; # triggers spam evasive actions $sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent $sa_mail_body_size_limit = 200*1024; # Edited by Michael Post, Default 512*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=1000mail;host=127.0.0.1;port=33016', '1000mail', 'password'] ); $sql_select_policy = 'SELECT "Y" as local FROM domain WHERE CONCAT("@",domain_name) IN (%k)'; $virus_admin = "virus\@DOMAIN.de"; # Edited by Michael Post, Default "virusalert\@$mydomain"; # notifications recip. $mailfrom_notify_admin = "virusalert\@DOMAIN.de"; # Edited by Michael Post, Default "virusalert\@$mydomain"; # notifications sender $mailfrom_notify_recip = "virusalert\@DOMAIN.de"; # Edited by Michael Post, Default "virusalert\@$mydomain"; # notifications sender $mailfrom_notify_spamadmin = "spam.police\@DOMAIN.de"; # Edited by Michael Post, Default "spam.police\@$mydomain"; # notifications sender $mailfrom_to_quarantine = ''; # null return path; uses original sender if undef @addr_extension_virus_maps = ('virus'); @addr_extension_spam_maps = ('spam'); @addr_extension_banned_maps = ('banned'); @addr_extension_bad_header_maps = ('badh'); $path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin'; $MAXLEVELS = 14; $MAXFILES = 1500; $MIN_EXPANSION_QUOTA = 100*1024; # bytes (default undef, not enforced) $MAX_EXPANSION_QUOTA = 300*1024*1024; # bytes (default undef, not enforced) $defang_virus = 1; # MIME-wrap passed infected mail $defang_banned = 1; # MIME-wrap passed mail containing banned name $myhostname = 'mail01.DOMAIN.de'; # must be a fully-qualified domainname! Will not be valid-checked
Ah, okay, da ist er.
$notify_method = 'smtp:[127.0.0.1]:10025'; $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter! $final_virus_destiny = D_DISCARD; $final_banned_destiny = D_BOUNCE; $final_spam_destiny = D_DISCARD; # Edited by Michael Post, Default D_BOUNCE;
Tagging macht wenig Sinn, wenn Spam stillschweigend gelöscht wird, oder? Setze das mal auf D_PASS. Auch rechtlich würde ich mich da lieber gründlich und schriftlich absichern, denn automatisiertes Löschen von Mails kann viel Ärger machen. Ich habe bisher noch kein System gesehen, was nicht ab und zu mal eine erwünschte Mail als Spam deklariert hat. Hier noch die Zeilen, die bei mir stehen: $sa_dsn_cutoff_level = 5; # spam level beyond which a DSN is not sent, $sa_spam_subject_tag = '[SPAMVERDACHT] ' # (defaults to undef, disabled) # (only seen when spam is not to be rejected # and recipient is in local_domains*) $sa_spam_modifies_subj = 1; # may be a ref to a lookup table, default is true
Wenn ich SA erst einmal weg lasse und nur Amavis einbaue, dann kann ich momentan keine E-Mails versenden.
Grund. Ich erhalte die folgende Fehlermeldung.
Recipient address rejected: User unknown in local recipient table
Zeige mal die master.cf, da fehlt bestimmt ein -o permit_mynetworks,reject_unauth_destination oder so. Sandy -- Antworten bitte nur in die Mailingliste! PMs bitte an: news-reply2 (@) japantest (.) homelinux (.) com