[imp] IMP & qmail's sendmail with qmail-scanner

Rick Romero rick at havokmon.com
Tue Aug 26 12:36:46 PDT 2003


Hey all,
(Yes, I sent this to the qmail-scanner list earlier - no reply :)

I've been using IMP and smtp to make sure that qmail-scanner-queue.pl is
called for every email, but under heavy load that starts to slow a bit.

So I've been trying to convert to using qmail's sendmail
(/var/qmail/bin/sendmail), and I can't get QMAILQUEUE to 'go'.

There's not much in the archives, but I tried the two things I found.
First, I created a shell script to set the environment, but I don't feel
comfortable in how I did it (and the mail I sent 'disappeared', which
confirms I did it wrong :)

My script:
-----------------------------
#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
export QMAILQUEUE
/var/qmail/bin/sendmail
-----------------------------

That got me nowhere, so I added:
SetEnv QMAILQUEUE /var/qmail/bin/qmail-scanner-queue.pl 
to my httpd.conf and restarted apache.
checking out phpinfo() I can see:
_SERVER["QMAILQUEUE"]/var/qmail/bin/qmail-scanner-queue.pl

So it looks like it's there, and I can call /var/qmail/bin/sendmail
directly from IMP and the email sends, but the env variable doesn't seem
to be 'recognized'.

Anyone have any ideas?

Thanks,

Rick




More information about the imp mailing list