OpenBSD 3.3 / smtp-vilter-1.1.2 / clamav-0.65 port (flinn's) / spamassasin/spamd

My services all start up fine:

Dec 14 14:46:52 sendmail-test spamd[31727]: server started on port 783 (running version 2.50)
Dec 14 14:47:33 sendmail-test smtp-vilter[10114]: privileged startup
Dec 14 14:47:33 sendmail-test smtp-vilter[10114]: dropped privileges, running as 1001:1001
Dec 14 14:47:56 sendmail-test sm-mta[21641]: starting daemon (8.12.9): [EMAIL PROTECTED]:30:00


But when a message is inbound I cannot scan it:

Dec 14 14:48:47 sendmail-test sm-mta[17009]: hBELmljd017009: from=<[EMAIL PROTECTED]>, size=1132, class=0, nrcpts=1, msgid=<
[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, relay=molodetz.sancho2k.net [10.0.0.2]
Dec 14 14:48:47 sendmail-test smtp-vilter[17287]: error during virus scan of file /tmp/vilter.leXFD17287
Dec 14 14:48:47 sendmail-test smtp-vilter[17287]: temporarily failing message
Dec 14 14:48:47 sendmail-test sm-mta[17009]: hBELmljd017009: Milter: data, reject=451 4.7.1 Please try again later
Dec 14 14:48:47 sendmail-test sm-mta[17009]: hBELmljd017009: to=<[EMAIL PROTECTED]>, delay=00:00:00, pri=310
18, stat=Please try again later


  smtp-vilter is chrooted, and it seems clamd cannot access the file?
  I created a test file at $CHROOT/tmp/test.txt and had clamd try to
  scan it:

$ telnet 127.0.0.1 3310
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
SCAN /var/smtp-vilter/tmp/test.txt
/var/smtp-vilter/tmp/test.txt: Can't access the file ERROR
Connection closed by foreign host.

Unless I'm missing something, the permissions look right to me.

$ sudo ls -ld /var/ /var/smtp-vilter/ /var/smtp-vilter/tmp/ /var/smtp-vilter/tmp/test.txt
drwxr-xr-x 26 root wheel 512 Dec 13 17:51 /var/
drwxr-xr-x 4 _vilter _vilter 512 Dec 13 17:51 /var/smtp-vilter/
drwxr-x--- 2 _vilter _vilter 512 Dec 14 14:56 /var/smtp-vilter/tmp/
-rw-r--r-- 1 root _vilter 0 Dec 14 14:56 /var/smtp-vilter/tmp/test.txt


$ id _clamd
uid=1002(_clamd) gid=1002(_clamd) groups=1002(_clamd), 1001(_vilter)

$ cat /var/log/clamd.log
Sun Dec 14 14:45:45 2003 -> +++ Started at Sun Dec 14 14:45:45 2003
Sun Dec 14 14:45:45 2003 -> Log file size limit disabled.
Sun Dec 14 14:45:45 2003 -> Running as user _clamd (UID 1002, GID 1002)
Sun Dec 14 14:45:45 2003 -> Reading databases from /usr/local/share/clamav
Sun Dec 14 14:45:48 2003 -> Protecting against 11732 viruses.
Sun Dec 14 14:45:49 2003 -> Bound to address 127.0.0.1 on port 3310
Sun Dec 14 14:45:49 2003 -> Setting connection queue length to 15
Sun Dec 14 14:45:49 2003 -> Maximal number of threads: 5
Sun Dec 14 14:45:49 2003 -> Archive: Archived file size limit set to 10485760 bytes.
Sun Dec 14 14:45:49 2003 -> Archive: Recursion level limit set to 5.
Sun Dec 14 14:45:49 2003 -> Archive: Files limit set to 1000.
Sun Dec 14 14:45:49 2003 -> Archive support enabled.
Sun Dec 14 14:45:49 2003 -> RAR support disabled.
Sun Dec 14 14:45:49 2003 -> Mail files support disabled.
Sun Dec 14 14:45:49 2003 -> Self checking every 3600 seconds.
Sun Dec 14 14:45:49 2003 -> Timeout set to 180 seconds.
Sun Dec 14 14:45:49 2003 -> SelfCheck: Database status OK.






-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to