|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Question about postfix amavisd-n clamav with Suse 9.1
From: Andreas Winkelmann (ml
awinkelmann.de)
Date: Fri Dec 31 2004 - 08:17:24 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am Freitag, 31. Dezember 2004 13:05 schrieb Martijn:
> If have trouble getting amavisd-new to work with postfix/clamav.
>
> I have Suse 9.1 installed with the latest (orig. Suse) updates.
> fetchmail 6.2.5-45
> posfix 2.0.1920040312-11
> amavisd 20030616p9-0 is running as user vscan
> clamd 0.80.22 is running as user vscan
> cyrus 2.2.3-83.19
>
> I changed in main.cf the parameter mailbox_transport =
> lmtp:unix:public/lmtp to use cyrus imap
>
> When I look at mail.info I see these problems:
>
> ** Problem 1:
> Dec 31 10:51:39 newserver postfix/smtp[6031]: connect to localhost[::1]:
> Connection refused (port 10024)
>
> Dec 31 10:51:39 newserver amavis[5701]: (05701-01) ESMTP::10024
> /var/spool/amavis/tmp/amavis-20041231T105139-05701: <test
fake.net> ->
> <test
fake.net> Received: SIZE=738 BODY=8BITMIME from newserver.fake.net
> ([127.0.0.1]) by localhost (newserver [127.0.0.1]) (amavisd-new, port
> 10024) with ESMTP id 05701-01 for <test
fake.net>; Fri, 31 Dec 2004
> 10:51:39 +0100 (CET)
> Dec 31 10:51:39 newserver amavis[5701]: (05701-01) Checking:
> <me
fake.net> -> <test
fake.net>
>
> ** Problem 2:
> Dec 31 10:51:39 newserver amavis[5701]: (05701-01) Clam Antivirus-clamd:
> Can't connect to UNIX socket /var/lib/clamav/clamd-socket: No such file
> or directory, retrying (1)
>
> Dec 31 10:51:40 newserver amavis[5701]: (05701-01) Clam Antivirus-clamd:
> Can't connect to UNIX socket /var/lib/clamav/clamd-socket: No such file
> or directory, retrying (2)
Check if clamd is really listening on this Unix-Socket. Maybe it is configured
to listen on an inet-socket. Have a look in /etc/clamav.conf.
> Dec 31 10:51:46 newserver amavis[5701]: (05701-01) Clam Antivirus-clamd
> av-scanner FAILED: Too many retries to talk to
> /var/lib/clamav/clamd-socket (Can't connect to UNIX socket
> /var/lib/clamav/clamd-socket: No such file or directory) at (eval 51)
> line 180.
> Dec 31 10:51:46 newserver amavis[5701]: (05701-01) WARN: all primary
> virus scanners failed, considering backups
> Dec 31 10:51:47 newserver amavis[5701]: (05701-01) spam_scan: hits=1.043
> tests=NO_REAL_NAME,PRIORITY_NO_NAME
>
>
> 1) My first question: is this setting content_filter=vscan: in main.cf
> correct?
No, but it does not matter in this case. You will only fall in this pitfall,
if you submit Mails via commandline (sendmail,mail,..).
> This is the default Suse setting. Googling around I see often that
> people have to change it
> to something like smtp:[127.0.0.1]:10024 but I'am not sure how it works
> since I have very little experience with Linux
Change in main.cf:
content_filter = smtp:[127.0.0.1]:10024
> 2) The second question what path/file to use in the clamav.conf?
> Is this correct "/var/lib/clamav/clamd-socket"?
> ===========================================================================
>====== * clamav.conf
> ===========================================================================
>======
>
> LogFile /var/log/clamav/clamd.log
>
> LogFileMaxSize 2M
>
> LogSyslog
>
> LogFacility LOG_MAIL
>
>
> PidFile /var/lib/clamav/clamd.pid
>
> TemporaryDirectory /tmp
>
> FixStaleSocket
>
> TCPSocket 3310
>
> TCPAddr 127.0.0.1
>
> User vscan
> Foreground
You configured clamav to listen on an inet-socket. Amavisd looks for a
unix-socket.
--
Andreas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]