Also, ich habe nun folgendes in meine 50-user eingetragen:
Code: Alles auswählen
use strict;
$max_servers = 5;
$X_HEADER_TAG = 'X-Virus-Scanned';
$log_level = 1;
@local_domains_maps = ([ ".$mydomain", 'MYDOMAIN.local' ] );
$sa_spam_modifies_subj = 1;
$sa_spam_subject_tag = '***SPAM*** ';
$sa_tag_level_deflt = -999;
$sa_tag2_level_deflt = -999;
$sa_kill_level_deflt = 11.0;
$sa_dsn_cutoff_level = 20.0;
$sa_quarantine_cutoff_level = 30.0;
$final_virus_destiny = D_DISCARD; # (data not lost, see virus quarantine)
$final_banned_destiny = D_BOUNCE; # D_REJECT when front-end MTA
$final_spam_destiny = D_PASS;
$final_bad_header_destiny = D_PASS; # False-positive prone (for spam)
$MYHOME = '/var/lib/amavis';
$mydomain = 'MYDOMAIN.local';
$myhostname = 'homer.MYDOMAIN.local';
$daemon_user = 'amavis';
$daemon_group = 'amavis';
1; # ensure a defined return
Code: Alles auswählen
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = 127.0.0.1 192.168.1.99
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
mydomain = MYDOMAIN.local
myhostname = homer.MYDOMAIN.local
mynetworks = 127.0.0.0/8 192.168.1.0/24
myorigin = $myhostname
readme_directory = no
recipient_delimiter = +
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
Ich kann zwar über mutt von mfirma Mails an externe Adressen versenden (wieso das auch immer geht), jedoch benötige ich doch normalerweise einen DNS-Server, dr nach den MX-REcords fragen kann. Habe in meiner /etc/resolv.conf folgendes stehen:
Code: Alles auswählen
search MYDOMAIN.local
nameserver 192.168.1.99
Sorry, aber ich bin mal wieder ein wenig ratlos und suche noch nach eventuellen Fehlern...
AKtuell werden auch wieder SPAM-Mails ohne die SPAM-Erweiterung ****SPAM**** durchgereicht. Ich blicke nicht mehr durch....
Anbei noch ein Logfile von einer Virus-, SPAM- und normalen Mail.
http://nopaste.debianforum.de/21126
Kann es sein, dass bei der VIRUS-Erkennung was zur Weiterleitung der Mail in der amavis-Konfiguration fehlt?
Code: Alles auswählen
Apr 30 13:52:18 homer amavis[3430]: (03430-01) smtp resp to MAIL (pip): 501 5.1.7 Bad sender address syntax
Apr 30 13:52:18 homer amavis[3430]: (03430-01) smtp resp to RCPT (pip) (<postmaster@homer.MYDOMAIN.local>): 503 5.5.1 Error: need MAIL command
Code: Alles auswählen
8 Apr 30 daniel ( 1) Do 30. Apr 13:55:51 CEST 2009
9 Apr 30 daniel ( 1) Do 30. Apr 13:55:57 CEST 2009
main.cf
Code: Alles auswählen
root@homer:/etc/postfix# grep -v "^#" main.cf |sed -e '/^$/d'
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
readme_directory = no
myhostname = homer.MYDOMAIN.local
mydomain = MYDOMAIN.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
mynetworks = 127.0.0.0/8 192.168.1.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 127.0.0.1 192.168.1.99
content_filter=smtp-amavis:[127.0.0.1]:10024
Code: Alles auswählen
root@homer:/etc/postfix# grep -v "^#" master.cf |sed -e '/^$/d'
smtp inet n - n - - smtpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
-o smtp_fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
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 -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}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_data_restrictions=reject_unauth_pipelining
-o smtpd_end_of_data_restrictions=
-o smtpd_restriction_classes=
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
-o local_header_rewrite_clients=
-o smtpd_milters=
-o local_recipient_maps=
-o relay_recipient_maps=