Ok, I have figured out the answer. Here it is for anyone else running
Qmail:<br /><br />John was close, but in Qmail the
&quot;/home/vpopmail/bin/vdelivermail&quot; 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: &quot;/home/vpopmail/domains/domain.com/username/Maildir/&quot;
Then add another line with the address you need it to forward to with
&quot;&amp;user@emaildomain.com&quot;<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 />&gt; speljamr@speljamr.com
wrote: <br />&gt;&gt; The .qmail file doesn't work. Everytime the message
is delivered to the <br />&gt;&gt; pop account it is forwarded to the
email address in the file. This ends <br />&gt;&gt; up creating an
infinite loop and you get something that looks like a <br />&gt;&gt; mail
bomb. I know because I tried this. I got 118 copies before I shut <br
/>&gt;&gt; it down. <br />&gt; <br />&gt; Did you just do this in your
.qmail file? <br />&gt; <br />&gt; .qmail-test <br />&gt; test@test.com
<br />&gt; test2@test.com <br />&gt; <br />&gt; If you did that, then yes
you will get an infinite loop. This is why <br />&gt; you have to use the
program that actually delivers the message to the <br />&gt; vuser's
directory (mbox, maildir, etc.), and not actually send the <br />&gt;
message again. <br />&gt; <br />&gt; .qmail-test <br />&gt; test2@test.com
&lt;-- injects the mail into the queue for delivery <br />&gt;
|/usr/bin/vdeliver &lt;-- writes the original message to the vuser's mail
<br />&gt; box, skipping injection into the queue <br />&gt; <br />&gt; --
<br />&gt; John C. Nichel IV <br />&gt; Programmer/System Admin
(&Uuml;berGeek) <br />&gt; Dot Com Holdings of Buffalo <br />&gt;
716.856.9675 <br />&gt; jnichel@dotcomholdingsofbuffalo.com <br />&gt;
_______________________________________________ <br />&gt; nflug mailing
list <br />&gt; nflug@nflug.org <br />&gt;
http://www.nflug.org/mailman/listinfo/nflug <br />&gt; <br />