Coding scripts for QMAILQUEUE patch

2001-05-02 Thread José Luis Domingo López

Hi:

I would like to write some scripts to rewrite headers on incoming messages
received through qmail. I patched qmail with QMAILQUEUE patch, and now it
works OK. I know that Bruce Guenter's qmail-qfilter could be helpful here,
bit I would like to use QMAILQUEUE directly by now.

The question: is there some repository for filtering scripts using
QMAILQUEUE directly ?. A simple script that reads messages from qmail-smtpd
and passes them as-is to qmail-queue will be very helpful to me.

I'm sure this script is quite simple (maybe just opening a couple of fd
from which to read the messages from), but I'd like to get a working
script to build on it and learn (a bash script would be perfect :). 

Thank you.

-- 
José Luis Domingo López
Linux Registered User #189436 Debian GNU/Linux Potato (P166 64 MB RAM)
 
jdomingo EN internautas PUNTO org  = ¿ Spam ? Atente a las consecuencias
jdomingo AT internautas DOT   org  = Spam at your own risk




Problems making QMAILQUEUE patch work

2001-04-26 Thread José Luis Domingo López

Hi everyone:

I can't make qmail-queue patch work: I always get 451 unable to exec qq
(#4.3.0) when finishing DATA with a . on a line by itself (telnet to port
25). The interesting part is, whenever QMAILQUEUE environment variable is
set, no matter its value, the mail doesn't end in qmail-queue.

However, unsetting QMAILQUEUE makes mail delivery work as expected. I've
been looking at the source code, and the problem appears to be in
qmail.c:qmail_open() (just appears to be, because I've been unable to
build the Debian package binaries with debugging information).

As long as 451 unable to exec qq (#4.3.0) is errorcode 120, the possible
point of failure is either on if (fd_move(.. or on execv(..

Am I missing something ?. My setup is as follows.

Debian Woody's qmail-src package, as of release 18 (that is, original
qmail 1.03 plus netscape progress bar and big DNS patches). Apart from
that, 0.0.0.0, remote authentication, mail from authentication and
qmail-queue patches cleanly applied.

As Debian places qmail binaries under /usr/sbin, qmail-queue patch was
modified to reflect the change on the paths. My /etc/tcp.smtp includes:
192.168.1.10:allow,MFCHECK=1,QMAILQUEUE=/usr/sbin/qmail-queue

I've tried many scripts as values for QMAILQUEUE and always get unable to
exec qq. If QMAILQUEUE is not set, no problems.

Any help is highly appreciated. Thank you all.

-- 
José Luis Domingo López
Linux Registered User #189436 Debian GNU/Linux Potato (P166 64 MB RAM)
 
jdomingo EN internautas PUNTO org  = ¿ Spam ? Atente a las consecuencias
jdomingo AT internautas DOT   org  = Spam at your own risk