Hi,
I am trying to get qmail (qmail toasters from qmail.clikka.com) to work with
qmail-scanner and spamassassin. I am setting up a dedicated spam/virus scanning qmail
server that is a totally open relay. It just needs to scan the messages and relay them
to my "real" qmail server which will actually make sure it's relaying from a valid
domain etc.
I have gone through Mark's guide at the bottom of qmail.clikka.com and actually
verified that Qmail is working by itself. I sent and received multiple messages to
multiple domains and they all went through just fine, without delay.
This is the working /etc/tcprules.d/tcp.smtp file:
-------------------------------------------------------------------
:allow,RELAYCLIENT=""
-------------------------------------------------------------------
I then installed spamassassin-2.55-1.7.3.i386.rpm
spamassassin-tools-2.55-1.7.3.i386.rpm and perl-Mail-SpamAssassin-2.55-1.7.3.i386.rpm
... then I extracted and configured qmail-scanner-1.16.tgz using this configure:
-------------------------------------------------------------------
./configure --debug yes --install --admin postmaster --domain GSI-KC.COM --notify
admin --local-domains "scrubber.gsi-kc.com"
-------------------------------------------------------------------
(configure notices I am using f-prot just fine)
Since I want all email going through this box to be scanned I changed
/etc/tcprules.d/tcp.smtp to this:
-------------------------------------------------------------------
:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
-------------------------------------------------------------------
My problem:
After I "qmailctl start", "qmailctl stat" shows its all still running just fine...
However when I try to send a message through this smtp server I now get this:
-------------------------------------------------------------------
Your server has unexpectedly terminated the connection. Possible causes for this
include server problems, network problems, or a long period of inactivity. Server:
'192.168.100.186', Protocol: SMTP, Port: 25, Secure(SSL): No, Error Number: 0x800CCC0F
-------------------------------------------------------------------
Or sometimes I get this instead
-------------------------------------------------------------------
Your server has unexpectedly terminated the connection. Possible causes for this
include server problems, network problems, or a long period of inactivity. Server:
'192.168.100.186', Protocol: SMTP, Port: 25, Secure(SSL): No, Error Number: 0x800CCC0F
-------------------------------------------------------------------
At the time, /var/log/qmail/smtp/current shows this, which looks ok:
-------------------------------------------------------------------
2003-06-15 00:14:01.485888500 tcpserver: status: 1/20
2003-06-15 00:14:01.485893500 tcpserver: pid 8319 from 192.168.2.4
2003-06-15 00:14:01.492457500 tcpserver: ok 8319
scrubber.gsi-kc.com:192.168.100.186:25 :192.168.2.4::1741
2003-06-15 00:14:01.493415500 tcpserver: end 8319 status 28416
2003-06-15 00:14:01.493418500 tcpserver: status: 0/20
-------------------------------------------------------------------
/var/spool/qmailscanner/qmail-queue.log does not get updated at all when I try to
send the message, which I think is a bit odd...
I did notice in /var/qmail/bin that the symbolic links for both qmail-queue and
qmail-scanner-queue.pl were broken (lit up red when doing an ls -la)... I went ahead
and copied the qmail-scanner-queue.pl into /var/qmail/bin from the folder where I
compiled qmail-scanner but I'm not sure how to go about repairing qmail-scanner. I
grabbed a copy of qmail-scanner from another server running qmail and put it here but
I still got a fatal error when trying to send a message through the smtp server.
Here's an ls -la /var/qmail/bin/*queue* from after I manually copied the
qmail-scanner-queue.pl over....
-rws--x--x 1 qmailq qmail 15912 Jun 14 21:44 qmail-queue
-rwxr-xr-x 1 qmailq qmail 57706 Jun 15 00:47 qmail-scanner-queue.pl
What is the best wayto re-create the qmail-queue file without messing up all the
configurations I've already made? Since I'm using the RPMs I don't think I can just
"make setup check" (or can I? where?)...
Just in case, here is my qmail-smtp run script (/var/qmail/supervise/smtp/run)... btw
qmail-smtpd-softlimit is set to 8000000...
-------------------------------------------------------------------
#!/bin/sh
QUID=`id -u qmaild`
QGID=`id -g qmaild`
MAXD=`head -1 /var/qmail/control/concurrencyincoming`
HOST=`head -1 /var/qmail/control/me`
SOFT=`head -1 /var/qmail/control/qmail-smtpd-softlimit`
CDBF="/etc/tcp.smtp.cdb"
if [ -z "$QUID" -o -z "$QGID" -o -z "$MAXD" -o -z "$HOST" ]; then
echo QUID, QGID, MAXD, or HOST is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
exec /usr/local/bin/softlimit -m $SOFT \
/usr/local/bin/tcpserver -v \
-R \
-l $HOST \
-x $CDBF \
-c $MAXD \
-u $QUID \
-g $QGID \
0 \
smtp \
/var/qmail/bin/tcp-env \
relaylock \
/var/qmail/bin/qmail-smtpd 2>&1
-------------------------------------------------------------------
my /var/qmail/rc script:
-------------------------------------------------------------------
#!/bin/sh
QLOG="`cat /var/qmail/control/qmail-start-loglevel`"
DEFD="`cat /var/qmail/control/defaultdelivery`"
exec env - PATH="/var/qmail/bin:$PATH" LOGLEVEL="$QLOG" qmail-start "$DEFD"
-------------------------------------------------------------------
One last thing of note, I did not install the qmail-queue patch since I installed from
those clikka toasters, I assumed theyw ould have the qmail-queue patch built in...
I've done some searches for the 451 qq error but have not been able to turn up an
answer, since my softlimit is already increased and I don't have a "ulimit" defined...
The other day I did get spamassassin/qmail-scanner to work with f-prot virus scanner
(at least I could tell in the logs that the test_installation.sh caused the system to
mark the last message as spam and find the virus in the other two), when I installed
qmail from the qmail-1.03 + patches source. However I had some other configs messed up
and ended up with 180,000 bounced messages (they were snowballing;-) so I decided to
start over and use the clikka toasters. And now I get to this point again...
Thanks!!
Jeremy
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general