Jesus,
# The full path to qmail programs we'll need. my $qmailinject = '/var/qmail/bin/qmail-inject'; my $qmailqueue = '/var/qmail/bin/qmail-queue';
to your qmail-qfilter and then qmail-qfilter can call the standard qmail-queue
Thank you for your answer, to be perfectly exact, I need to perform some change before hitting qmail-scanner (reject, rewrite) , then scan, then duplicate the email ( ie write it in a separate queue for non-smtp transfer to another server). Otherwise, you are right, I could have inverted the order qmail-scanner, qmail-qfilter.
If I have understood your problem, maybe it is enough to set the variable $qmailqueue
I use qmail-scanner and qmail-qfilter, also; and I modified qmail-scanner-queue.pl this way:
my $qmailqueue = '/var/qmail/bin/qfilter';
in order to force qmail-scanner to use my own filter after it scaned the e-mail, but I see this don't work.
Can you explain how you solve this problem, or in which way you configured qmail-scanner and qfilter to work together?
Create two qmail-qfilter scripts, use a tcpserver entry like :
:allow,QMAILQUEUE="/var/qmail/bin/my-first-qmail-qfilter-script",QQF_QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
In qmail-scanner set my $qmailqueue = '/var/qmail/bin/my-second-qmail-qfilter-script';
The second one unset the QQF_QMAILQUEUE before calling qmail-qfilter ( or you can set it to another queue program )
Now, this is a little bit "ugly" that is why I was asking for the change in the code.
Thomas
signature.asc
Description: OpenPGP digital signature