For help: qmail-example + clamav + spamassassin has an error.
Source: Internet
Author: User
For help: qmail-example + clamav + spamassassin has an error. -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. [I = s] This post was last edited by luodeke at, January 29 ,.
I am a server built by installing qmail. The system is rhel5.4 and the domain name is mail.kk.com.
Qmail is installed according to lifewithqmail. However, the startup script is from toaster-scripts-0.9.1.
Vpopmail and the like are based on: http://www.webtoolbag.com/readarticle.php? Article _id = 35. Basically, webmail is applicable to igenus.
After installing qmail-example + clamav + spamassassin, you can use qmail + vpopmail + igenus to send and receive emails and add users, after installing qmail-example + clamav + spamassassin, run the following command :. /test_installation.sh-doit: the following error occurs.
Sending standard test message-no viruses...
Qmail-inject: fatal: qq temporary problem (#4.3.0)
Bad error. qmail-inject died
Below is the information in/var/spool/qscan/qmail-queue.log:
Tue, 23 Aug 2011 01:18:12 CST: 22515: ++ starting debugging for process 22515 (ppid = 22514) by uid = 0
Tue, 23 Aug 2011 01:18:12 CST: 22515: w_c: Total time between DATA command and "." was 6.9e-05 secs
Tue, 23 Aug 2011 01:18:12 CST: 22515: w_c: elapsed time from start 7.2e-05 secs
Tue, 23 Aug 2011 01:18:12 CST: 22515: g_e_h: return-path = '', recips = 'postmaster @ mail.kk.com'
Tue, 23 Aug 2011 01:18:12 CST: 22515: from = 'qmail-ticket Test ', Subj = 'qmail-submit test (1/4): inoffensive message', via local process 22515
Tue, 23 Aug 2011 01:18:12 CST: 22515: This is a PLAIN text message, skip virus scanners-but not SA
Tue, 23 Aug 2011 01:18:12 CST: 22515: error_condition: X-antivirus-mail.kk.com-2.01st: clamscan: Primary upt or unknown ClamAV internal error or memory/resource/perms problem-exit status 2
Tue, 23 Aug 2011 01:18:12 CST: 22515: ------ Process 22515 finished. Total of 0.030546 secs
The following is the error message of/var/log/maillog.
Aug 23 01:28:41 mail X-antivirus-mail.kk.com-2.01st: [mail. kk. com131403412176424141] clamscan: reset upt or unknown ClamAV unlock error or memory/resource/perms problem-exit status 2
When I saw this clamscan: upt or unknown ClamAV internal error or memory/resource/perms problem-exit status 2 error message, I searched online and said it was to be modified: the softlimit value of/var/qmail/supervise/qmail-smtpd/run. It used to be 25000000. If it was changed to 30000000, the error still occurred.
But it still does not work.
Here is the content of my current smtp STARTUP script:
#! /Bin/sh
QMAILDUID = 'id-u vpopmail'
NOFILESGID = 'id-g vpopmail'
MAXSMTPD = 'cat/var/qmail/control/concurrencyincoming'
Exec/usr/local/bin/softlimit-m 30000000 \
/Usr/local/bin/tcpserver-v-H-R-l 0 \
-X/home/vpopmail/etc/tcp. smtp. cdb-c "$ MAXSMTPD "\
-U "$ QMAILDUID"-g "$ NOFILESGID" 0 smtp \
/Var/qmail/bin/qmail-smtpd \
/Home/vpopmail/bin/vchkpw/bin/true 2> & 1
QMAILQUEUE = "/var/qmail/bin/qmail-scanner-queue.pl"
Export QMAILQUEUE
Spamassassin can also pass the test command: spamc <The sample-spam.txt should be normal and below is part of the test result
Received: from localhost by mail.kk.com
With SpamAssassin (version 3.2.5 );
Mon, 22 Aug 2011 11:55:18 + 0800
From: Sender
To: Recipient
Subject: ***** SPAM ***** Test spam mail (GTUBE)
Date: Wed, 23 Jul 2003 23:30:00 + 0200
Message-Id:
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.kk.com
X-Spam-Level: **************************************** **********
X-Spam-Status: Yes, score = 1000.0 required = 5.0 tests = GTUBE, NO_RECEIVED,
NO_RELAYS autolearn = no version = 3.2.5
MIME-type: 1.0
Content-Type: multipart/mixed; boundary = "---------- = _ 4E51D326. FE3A819A"
After the User of clamav is set to qscand, it can be started normally.
Both clamav and spamassass are installed using third-party yum sources.
Versions are: clamav-0.97.2-1.el5.rf & spamassassin-3.2.5-1.el5
Qmail-sacnner version is: qmail-scanner-2.01
Under/var/qmail/bin/, only:
-Rwxr-xr-x 1 qmailq qmail 153634 08-14 qmail-scanner-queue.pl
This does not exist: qmail-queue
Do you think there is anything else to post?
Hope you can help me.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service