Ok, I have figured out the answer. Here it is for anyone else running
Qmail:<br /><br />John was close, but in Qmail the
"/home/vpopmail/bin/vdelivermail" just runs a shell command and
does end up injecting it in the queue again, thus my infinite loop.
However, you can specify delivery to a specific Maildir using the
following: "/home/vpopmail/domains/domain.com/username/Maildir/"
Then add another line with the address you need it to forward to with
"&user@emaildomain.com"<br /><br />Do it exactly that way
and it works as expected, at least with vpopmail.<br /><br />John, thanks
for your ideas, they helped push me in the right direction and I found the
final answer in the O'Reilly Qmail book. I just didn't know where to look
before.<br /><br />Tim<br /><br /><br /><br />> speljamr@speljamr.com
wrote: <br />>> The .qmail file doesn't work. Everytime the message
is delivered to the <br />>> pop account it is forwarded to the
email address in the file. This ends <br />>> up creating an
infinite loop and you get something that looks like a <br />>> mail
bomb. I know because I tried this. I got 118 copies before I shut <br
/>>> it down. <br />> <br />> Did you just do this in your
.qmail file? <br />> <br />> .qmail-test <br />> test@test.com
<br />> test2@test.com <br />> <br />> If you did that, then yes
you will get an infinite loop. This is why <br />> you have to use the
program that actually delivers the message to the <br />> vuser's
directory (mbox, maildir, etc.), and not actually send the <br />>
message again. <br />> <br />> .qmail-test <br />> test2@test.com
<-- injects the mail into the queue for delivery <br />>
|/usr/bin/vdeliver <-- writes the original message to the vuser's mail
<br />> box, skipping injection into the queue <br />> <br />> --
<br />> John C. Nichel IV <br />> Programmer/System Admin
(ÜberGeek) <br />> Dot Com Holdings of Buffalo <br />>
716.856.9675 <br />> jnichel@dotcomholdingsofbuffalo.com <br />>
_______________________________________________ <br />> nflug mailing
list <br />> nflug@nflug.org <br />>
http://www.nflug.org/mailman/listinfo/nflug <br />> <br />