magic_halli
Hacker
Hi,
nachdem mein System mit fetchmail-Postfix-cyrus funktioniert, will ich amavisd-new konfigurieren und somit SpamAssassin und clamAV einbinden.
Ich bin erstmal nach dieser Anleitung vorgegangen http://www.schuetze.homelinux.org/content/view/14/63/lang,de/#amavis .
Nur hab ich erstmal Probleme bei telnet-test:
Meine master.cf sieht jetzt so aus:
Die amavisd.conf sieht so aus... hier nur die von mir geänderten Teile - ansonsten ist der Rest im Originalzustand:
Meine main.cf und andere Files hab ich nicht mehr angerührt!
Ach ja, noch ein Auszug, was als Meldung kommt, wenn ich amavisd debugge:
Mh, ist die Grundkonfiguration erstmal ok?
Was muss ich verändern, damit ich wenigstens mit telnet wieder Zugriff habe?
Gruß und Danke.
nachdem mein System mit fetchmail-Postfix-cyrus funktioniert, will ich amavisd-new konfigurieren und somit SpamAssassin und clamAV einbinden.
Ich bin erstmal nach dieser Anleitung vorgegangen http://www.schuetze.homelinux.org/content/view/14/63/lang,de/#amavis .
Nur hab ich erstmal Probleme bei telnet-test:
Code:
v1:~ # telnet 127.0.0.1 10024
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
v1:~ # telnet 127.0.0.1 10025
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
Meine master.cf sieht jetzt so aus:
Code:
smtp inet n - n - - smtpd
#-o content_filter=smtp-amavis:[127.0.0.1]:10024
#smtps inet n - n - - smtpd -o content_filter=procmail:spamfilter
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#localhost:10025 inet n - n - - smtpd -o content_filter=
scache unix - - n - 1 scache
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
#
# amavisd-new:
smtp-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/8
-o strict_rfc821_envelopes=yes
Die amavisd.conf sieht so aus... hier nur die von mir geänderten Teile - ansonsten ist der Rest im Originalzustand:
Code:
$daemon_user = 'amavis';
$daemon_group = 'amavis';
$mydomain = 'firma.local';
$MYHOME = '/var/spool/amavis';
$TEMPBASE = "$MYHOME/tmp";
$ENV{TMPDIR} = $TEMPBASE;
$QUARANTINEDIR = '/var/spool/amavis/virusmails';
@addr_extension_virus_maps = undef;
@addr_extension_spam_maps = undef;
@addr_extension_banned_maps = undef;
@addr_extension_bad_header_maps = undef;
$forward_method = 'smtp:127.0.0.1:10025';
$notify_method = 'smtp:127.0.0.1:10025';
#alle anderen sind von mir auskommentiert!!!
@av_scanners = (
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "127.0.0.1:3310"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);
#alle anderen sind von mir auskommentiert!!!
@av_scanners_backup = (
['ClamAV-clamscan', 'clamscan',
"--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);
Meine main.cf und andere Files hab ich nicht mehr angerührt!
Ach ja, noch ein Auszug, was als Meldung kommt, wenn ich amavisd debugge:
Code:
v1:~# /usr/sbin/amavisd debug
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: starting. /usr/sbin/amavisd at v1.tultec.local amavisd-new-2.3.3 (20050822), Unicode aware, LC_CTYPE=de_DE.UTF-8, LANG=POSIX
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: user=, EUID: 0 (0); group=, EGID: 0 0 (0 0)
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: Perl version 5.008008
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: INFO: no optional modules: Sys::Hostname::Long Mail::SPF::Query Razor2::Client::Agent Net::CIDR::Lite Mail::SpamAssassin::Plugin::DomainKeys Mail::DomainKeys::Header Mail::DomainKeys::Message Mail::DomainKeys::Policy Mail::DomainKeys::Signature Mail::DomainKeys::Key Mail::DomainKeys::Key::Public Crypt::OpenSSL::RSA auto::Crypt::OpenSSL::RSA::_new auto::Crypt::OpenSSL::RSA::DESTROY auto::Crypt::OpenSSL::RSA::load_public_key auto::Crypt::OpenSSL::RSA::new_public_key IP::Country::Fast
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: Net::Server: 2006/11/17-12:18:40 Amavis (type Net::Server::PreForkSimple) starting! pid(14740)
Nov 17 12:18:40 v1.firmalocal /usr/sbin/amavisd[14740]: Net::Server: Binding to UNIX socket file /var/spool/amavis/amavisd.sock using SOCK_STREAM
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: Net::Server: 2006/11/17-12:18:40 No such group "amavis"\n\n at line 447 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server.pm
Nov 17 12:18:40 v1.firma.local /usr/sbin/amavisd[14740]: Net::Server: 2006/11/17-12:18:40 Server closing!
Mh, ist die Grundkonfiguration erstmal ok?
Was muss ich verändern, damit ich wenigstens mit telnet wieder Zugriff habe?
Gruß und Danke.