Andre John Cruz wrote: > hi everyone (especially the qmail experts), > > i use vpopmail for qmail in one of our mail servers, and i plan to put in > mail scanner using qmail-scanner.sourceforge.net. > > i implement a POP3/IMAP-before-SMTP thing (built into vpopmail) that > requires users to "authenticate" their IP first before injecting mail over > SMTP to prevent relay abuse. > > my question is, how can i get vpopmail to put in a QMAILQUEUE="<something>" > string into the tcp.smtp file that it automatically generates and compiles > into CDB format? without this, the default qmail-queue gets used and qmail- > scanner won't come into action. (i use Bruce's qmailqueue patch)
Have you tried to pass the QMAILQUEUE variable to qmail-smtpd instead? This is how I set up qmail-scanner on my server, which uses vpopmail too, and all mails that passed through the qmail-queue were scanned by qmail-scanner, as seen from the headers of the test emails I've let through the mail server. All mails to be relayed has to pass through qmail-smtpd anyway and it is also qmail-smtpd that passes them to qmail-queue, so it's but natural to pass the QMAILQUEUE variable to qmail-smtpd. Vpopmail doesn't seem to have anything to do with qmail-scanner at all. Here's how my qmail-smtpd startup script, which is started and supervised by daemontools, look like #!/bin/sh QMAILDID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE exec /usr/local/bin/softlimit -m 6000000 \ /usr/local/bin/tcpserver -l`hostname -f` -c"$MAXSMTPD" -b30 -P -h -R -t10 -O \ -Q -v -x /home/vpopmail/etc/tcp.smtp.cdb -u "$QMAILDID" -g "$NOFILESGID" \ This is in the file /var/qmail/supervise/qmail-smtpd/run in my server. Benj _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
