[Postfixbuch-users] Amavis-new

bg-tux mail at bg-tux.de
Mo Jun 6 17:40:42 CEST 2005


Hallo zusammen

Ich habe auf meinen Server (Debian Woody) Postfix 1.x Courier IMAP
Maildrop SASL installiert. Die Posteingänge werden auch den jeweiligen
Postfächern zugeordnet. Sobald ich nun Amavis-New starte und in Postfix
einbinde, kommen die Mail nur noch im Postfach web2p1 an, obwohl die
Email an web1p1 gerichtet wurde.
Auszug Logfile:

Jun  5 10:36:23 localhost postfix/smtpd[22439]: connect from localhost
[127.0.0.1]
Jun  5 10:36:23 localhost postfix/smtpd[22439]: F09A930A37:
client=localhost[127.0.0.1]
Jun  5 10:36:24 localhost postfix/cleanup[22436]: F09A930A37: message-
id=<16080.1117960583 at www63.gmx.net>
Jun  5 10:36:24 localhost postfix/qmgr[22429]: F09A930A37: from=<bg-
tux at gmx.net>, size=1271, nrcpt=1 (queue active)
Jun  5 10:36:24 localhost amavis[10252]: (10252-05) Passed, <bg-
tux at gmx.net> -> <web1p1 at localhost>, Message-ID:
<16080.1117960583 at www63.gmx.net>,Hits: -
Jun  5 10:36:24 localhost postfix/smtp[22438]: 7035030A33:
to=<web1p1 at localhost>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent
(250 2.6.0 Ok,id=10252-05, from MTA: 250 Ok: queued as F09A930A37)
Jun  5 10:36:24 localhost postfix/smtpd[22439]: disconnect from
localhost[127.0.0.1]
Jun  5 10:36:24 localhost postfix/local[22440]: F09A930A37:
to=<web2p1 at localhost>, relay=local, delay=1, status=sent
("|/usr/bin/maildrop")

postconf -n:
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
mailbox_command = /usr/bin/maildrop
mailbox_size_limit = 0
maps_rbl_domains = blackholes.mail-abuse.org,relays.ordb.org,dsn.rfc-
ignorant.org,postmaster.rfc-ignorant.org,abuse.rfc-
ignorant.org,dynablock.wirehub.net,cn-kr.blackholes.us
masquerade_domains = bg-tux.de gleie.de
mydestination = gleie.de, localhost, localhost.localdomain, bg-tux.de
myhostname = mail.gleie.de
mynetworks = 127.0.0.0/8
myorigin = $myhostname
program_directory = /usr/lib/postfix
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = reject_maps_rbl
smtpd_recipient_restrictions =
reject_unknown_sender_domain,permit_sasl_authenticated,permit_mynetworks,check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mail.gleie.de
smtpd_sasl_security_options = noanonymous
virtual_maps = hash:/etc/postfix/virtual

master.cf
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       nqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
flush     unix  n       -       -       1000?   0       flush
smtp      unix  -       -       -       -       -       smtp
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
cyrus     unix  -       n       n       -       -       pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail    unix  -       n       n       -       -       pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender
$recipient
scalemail-backend unix  -       n       n       -       2       pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
maildrop  unix  -       n       n       -       -       pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
smtp inet n - y - - smtpd
amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o
disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
                        -o content_filter=
                        -o local_recipient_maps=
                        -o relay_recipient_maps=
                        -o smtpd_restriction_classes=
                        -o smtpd_client_restrictions=
                        -o smtpd_helo_restrictions=
                       -o smtpd_sender_restrictions=
                       -o
smtpd_recipient_restrictions=permit_mynetworks,reject
                        -o mynetworks=127.0.0.0/8
                       -o strict_rfc821_envelopes=yes

amavis.conf
use strict;
MYHOME = '/var/lib/amavis';  
$mydomain = 'mail.gleie.de'; 
$daemon_user  = 'amavis';      
$daemon_group = 'amavis'; 
$TEMPBASE = $MYHOME;      
$pid_file  = "/var/run/amavis/amavisd.pid"; 
$lock_file = "/var/run/amavis/amavisd.lock";
$ENV{TMPDIR} = $TEMPBASE;
$forward_method = 'smtp:127.0.0.1:10025';  
$notify_method = $forward_method;
$max_servers  =  2; 
$max_requests = 10; 
$child_timeout=5*60;
#@bypass_spam_checks_acl  = qw( . );
@local_domains_acl = ( ".$mydomain" , "localhost"  );
$relayhost_is_client = 0;     
$insert_received_line = 1;
$inet_socket_bind = '127.0.0.1';
@inet_acl = qw( 127.0.0.1 );
$DO_SYSLOG = 0;
$LOGFILE = "/var/log/amavis.log";
$log_level = 2;
$log_templ = '[? %#V |[? %#F |[?%#D|Not-Delivered|Passed]|BANNED
name/type (%F)]|INFECTED (%V)], #
[?%o|(?)|<%o>] -> [<%R>|,][? %i ||, quarantine %i], Message-ID: %m,
Hits: %c';
read_l10n_templates('en_US', '/etc/amavis');
$final_virus_destiny      = D_DISCARD; # (defaults to D_BOUNCE)
$final_banned_destiny     = D_BOUNCE;  # (defaults to D_BOUNCE)
$final_spam_destiny       = D_REJECT;  # (defaults to D_REJECT)
$final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE
suggested
$viruses_that_fake_sender_re = new_RE(
  qr'nimda|hybris|klez|bugbear|yaha|braid|sobig|fizzer|palyh|peido|
holar'i,
  qr'tanatos|lentin|bridex|mimail|trojan\.dropper|dumaru|parite|
spaces'i,
  qr'dloader|galil|gibe|swen|netwatch|bics|sbrowse|sober|rox|val(hal)?
la'i,
  qr'frethem|sircam|be?agle|tanx|mydoom|novarg|shimg|netsky|somefool|
moodown'i,
  qr'@mm|@MM',    # mass mailing viruses as labeled by f-prot and uvscan
  qr'Worm'i,      # worms as labeled by ClamAV, Kaspersky, etc
  [qr'^(EICAR|Joke\.|Junk\.)'i         => 0],
  [qr'^(WM97|OF97|W95/CIH-|JS/Fort)'i  => 0],
  [qr/.*/ => 1],  # true by default  (remove or comment-out if
undesired)
);
$virus_admin = "postmaster\@$mydomain";
$mailfrom_to_quarantine = '';
$QUARANTINEDIR = '/var/lib/amavis/virusmails';
$virus_quarantine_to  = 'virus-quarantine'; 
$spam_quarantine_to = 'spam-quarantine';
$X_HEADER_TAG = 'X-Virus-Scanned';  
$X_HEADER_LINE = "by $myversion (Debian) at $mydomain";
...
Standardeinstellungen übernommen

clamav in der Standardeinstellung


Hat jemand eine Lösung für mich

Danke
Gruß
Bruno

-- 
bg-tux <mail at bg-tux.de>




Mehr Informationen über die Mailingliste Postfixbuch-users