Henning Brauer <[EMAIL PROTECTED]> writes:

> On Fri, Aug 24, 2001 at 11:11:28PM +0200, Henning Brauer wrote:
> > No. no way without using another machine or hacking ipme.c.
> 
> Correcting myself. There is another way, though not really of choice
> here IMHO.  You can put all domains in question in locals and call
> whatever sendmail uses for the local delivery, so both MTAs let the
> MDA write to the same mailboxes. While this setp (though without an
> MDA) works fine using Maildirs and thus two Maildir-aware MTAs (or
> MDAs), it may cause problems here as concurrent deliveries to the same
> mbox file obviously don't work. So there is a theoretical solution
> without patching qmail - but in practice...

Ah, very clever!  To avoid the locking problem, just call sendmail
itself instead of the MDA.  A little performance penalty, but you
should be able to live with that.

You'll probably need a small shell script (or C program, if the extra
performance is worth the effort) to convert the envelope information
qmail passes in the environment to the command-line parameters
sendmail will expect, but should be pretty easy...Something like:

  qmail2sendmail:

    #!/bin/sh
  
    /usr/lib/sendmail -i -f "$SENDER" "$RECIPIENT"

then put in ~alias/.qmail-default "|/path/to/qmail2sendmail", or use
it as your defaultdelivery method when starting qmail.

Good luck,

----ScottG.

Reply via email to