PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix/amavis-new/Spamassassin --> mails bleiben in queue hängen



maniac1810
24.05.04, 23:31
ich habe hier auf einer Suse 9.1 einen mailserver mit postfix/fetchmail/qpopper am laufen. da ich heute mal zeit hatte, wollte ich endlich noch amavis-new und spamassassin einbauen.

meine config-files sehen folgendermassen aus:

master.conf

# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd -o content_filter=smtp:[localhost]:10024
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
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 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
localhost:10025 inet n - y - - 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,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

#localhost:10025 inet n - n - - smtpd -o content_filter=
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
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
vscan unix - n n - 10 pipe
user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}


in meine main.cf habe ich eingefügt:


content_filter = smtp-amavis:[127.0.0.1]:10024

meine amavis.conf hänge ich mal als txt an

im Moment bleiben alle mails in der queue hängen und werden nicht zugestellt. Es scheint kein Virenscanner verfügbar zu sein? (obwohl in der der amavis.conf welche angegeben sind)

die mail logs sagen folgendes aus:


May 24 22:58:02 linux postfix/postfix-script: refreshing the Postfix mail system
May 24 22:58:02 linux postfix/master[6579]: reload configuration
May 24 22:58:04 linux postfix/master[6579]: terminating on signal 15
May 24 22:58:04 linux postfix/postfix-script: starting the Postfix mail system
May 24 22:58:04 linux postfix/master[8045]: daemon started -- version 2.0.19-20040312
May 24 22:58:05 linux postfix/qmgr[8051]: 646E7ACA45: from=<maniac1810@yahoo.com>, size=5903, nrcpt=1 (queue active)
May 24 22:58:05 linux postfix/qmgr[8051]: E88E7ACA48: from=<janet@linux.HEIM.NETZ>, size=578, nrcpt=1 (queue active)
May 24 22:58:05 linux postfix/qmgr[8051]: 3DF71ACA4B: from=<janet@linux.HEIM.NETZ>, size=575, nrcpt=1 (queue active)
May 24 22:58:05 linux postfix/smtp[8063]: connect to localhost[::1]: Connection refused (port 10024)
May 24 22:58:07 linux postfix/smtp[8064]: E88E7ACA48: to=<micha@heim.netz>, orig_to=<DockhornM@gmx.de>, relay=127.0.0.1[127.0.0.1], delay=953, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=08067-01, virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE (in reply to end of DATA command))
May 24 22:58:07 linux postfix/smtp[8065]: 3DF71ACA4B: to=<micha@heim.netz>, relay=127.0.0.1[127.0.0.1], delay=453, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=08067-02, virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE (in reply to end of DATA command))
May 24 22:58:07 linux postfix/smtp[8063]: 646E7ACA45: to=<micha@localhost.heim.netz>, orig_to=<micha@localhost>, relay=localhost[127.0.0.1], delay=1483, status=deferred (host localhost[127.0.0.1] said: 451 4.5.0 Error in processing, id=08068-01, virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE (in reply to end of DATA command))


es wäre nett wenn jemand mal einen Hinweis hätte, ich bin schon betriebsblind :(

Micha

Jonta
24.05.04, 23:42
Es scheint kein Virenscanner verfügbar zu sein? (obwohl in der der amavis.conf welche angegeben sind)


sorry wenn ich jetzt dumm frage, aber hast Du denn einen der in der amavis.conf aufgeführten Virenscanner installiert? amavis ist "nur" ein Script, um einen installierten Scanner auszuführen, hat aber keine eigene Scan-Engine.

Gruss...

maniac1810
24.05.04, 23:59
hatte ich vergessen zu erwähnen, sorry.

Als virenscanner habe ich antivir installiert. der wird in der amavis .conf aufgerufen mit:

### http://www.hbedv.com/ or http://www.centralcommand.com/
['H+BEDV AntiVir or CentralCommand Vexira Antivirus',
['antivir','vexira'],
'--allfiles -noboot -nombr -rs -s -z {}', [0], qr/ALERT:|VIRUS:/,
qr/(?x)^\s* (?: ALERT: \s* (?: \[ | [^']* ' ) |
(?i) VIRUS:\ .*?\ virus\ '?) ( [^\]\s']+ )/ ],
# NOTE: if you only have a demo version, remove -z and add 214, as in:
# '--allfiles -noboot -nombr -rs -s {}', [0,214], qr/ALERT:|VIRUS:/,

maniac1810
25.05.04, 08:45
ich habe jetzt mal noch panda-antivirus installiert. Das hilft aber auch nicht weiter :( .

Das die mails nicht zugestellt werden können, scheint doch an etwas anderem zu liegen.

Ich hoffe jemand kann mir helfen!

Micha

himbeere
25.05.04, 09:17
connect to localhost[::1]: Connection refused (port 10024)

Lauscht amavis denn auf 10024?

Thomas

maniac1810
25.05.04, 09:18
mhhh....
gute Frage! Wie kann ich das feststellen?

in der amavis.conf steht folgendes drin:

# SMTP SERVER (INPUT) PROTOCOL SETTINGS (e.g. with Postfix, Exim v4, ...)
# (used when MTA is configured to pass mail to amavisd via SMTP or LMTP)
$inet_socket_port = 10024; # accept SMTP on this local TCP port

Terran Marine
25.05.04, 09:34
mhhh....
gute Frage! Wie kann ich das feststellen?


lsof -i :10024

Gruß
Terran

himbeere
25.05.04, 09:55
Und für alle, die völlig unverständlicherweise lsof nicht installiert haben, besteht auch noch die Möglichkeit

telnet localhost 10024

oder

netstat -nat | grep 10024

zu sagen.

Thomas

maniac1810
25.05.04, 10:15
danke für die Tips.

es läuft jetzt! :)

ich hatte vergessen spamd zu starten. naja ich war wohl gestern abend wohl doch schon etwas müde... :ugly: