On our debian based qmail server, the file to change is /etc/qmail/qmail-smtpd/run. We use a softlimit of 12MB, i.e.:

exec softlimit -m 12000000 \ . . .

That works like a charm for both uvscan by McAfee and SpamAssassin.
After that, you need to send a HUP signal to refresh qmail-smtpd daemon, i.e.:


svc -t /service/qmail-smtpd

Also, your tcp.smtp file needs to reflect on which ip address you get incoming mail.
If you use fetchmail, then "127." needs to perform full scanning of incoming mail while the network, e.g. 192.168.1. can relax on SpamAssassin scanning.
If you are accepting SMTP traffic from any mail server, then "other" incoming mail needs to perform fulls canning services, and "127." caould pretty much do without scanning.


HTH, ciao.

Hendrik Schaink



Shawn Grover wrote:

When I was reading through the qmail-scanner install instructions, I did see where they mentioned to boost the allowed memory for qmail-scanner/clamav/spamassassin. However when I looked into the config files, I didn't find any entries for limiting memory. Perhaps I just missed it somewhere? I'll take a look at the qmail-smtpd run file again though.

Shawn

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Mike Roest
Sent: Friday, February 20, 2004 7:10 AM
To: CLUG General
Subject: Re: [clug-talk] qmail and SpamAssassin?


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Shawn wrote:


| usr/bin/clamscan -r - --tempdir=/var/spool/qmailscan/snow107717516442614714 - | -disable-summary --unzip --unrar --unace --unarj --$ | 19/02/2004 00:19:24:14714: --output of clamscan was: | LibClamAV Error: readdb(): Malformed pattern line 13883 (file | /var/spool/qmailscan/snow107717516442614714/00eb91ff0bbc24b5/viruses.db). | LibClamAV Error: Can't gzdopen() descriptor 5 | LibClamAV Error: cli_cvdload(): Can't unpack CVD file. | ERROR: CVD extraction failure. | -- | 19/02/2004 00:19:24:14714: tempfail: X-Qmail-Scanner-1.16: clam_scanner: | corrupt or unknown ClamAV scanner error or memory/resource/perms problem - | exit status$

This looks like the clamac is running out of memory.  Are you using
softlimit in your qmail-smtpd run file.  If so I would try doubling the
memory that softlimit is giving to the smtpd process.  Adding spam and
virus scanning usually requires 2-3 times the memory of a vanilla smtpd.

- --
Mike
Site: http://www.blahz.org
GPG Key: http://www.blahz.org/gpg.asc
C'mon, Moe. It's been St. Patrick's day for hours now and I'm not drunk yet!
- --Homer Simpson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFANhU6w+I3MvUBM6QRAhLFAJwIx9SO0SVSogxNtIMkxBGCP1RDKwCeNY9q
D07UAx/NvT/QKGJkUj88ocw=
=c7ib
-----END PGP SIGNATURE-----


_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca




-- Hendrik M. Schaink Chief Consultant

"Integrated Business Solutions & Dependable Service"

InfoVision Consulting
Calgary, Alberta, Canada
Phone: (403) 239-0099


"The Vision: We are the partners of choice for companies and organizations that share our commitment to creating a world that is truly wise, courageous, prosperous, innovative, inclusive, sustainable and humane." --Ruben Nelson




_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to