At 9:56 -0400 8/27/03, vin wrote:
>I am sure this has been asked before so sorry, but couldn't find it
>explained.
>
>How do I forward a copy of every incoming mail message for a particular user
>to another email address? I still want the original to end up in the same
>place it always has. Further, is there a way to set up filters to
>selectively forward messages?

As Shawn said, you use the "redirect" command in a mailproc.tab file 
in the MAIL_ROOT/domains/domain.com/user/mailproc.tab file.

It would look like this:

"redirect"[tab]"[EMAIL PROTECTED]"[newline]

If you want to keep a copy in that user's mailbox, you do so by added 
the command:

"mailbox"[newline]

on the next line. (text in [] is spacing, i.e tab and return)

I don't know about having filters that selectively forward messages. 
The only thing I can think of is possibly using a cmdaliases file, 
where you would set up a filter that would check whatever it was that 
would determine whether it should be filtered, and then if it 
shouldn't be redirected, return the exit code that halts filter 
processing, currently 16 (although I don't know if this affects 
non-filter actions, or if it even works in cmdaliases files).

If this would work, it would look essentially like this:

"mailbox"[newline]
"external"[tab]"MAIL_ROOT/bin/filter"[tab](etc.)[newline]
"redirect"[tab]"[EMAIL PROTECTED]"[newline]

The second line would call your filter with any necessary parameters 
(check the XMail server documentation for details). If the email 
should not be redirected, it returns a code of 16.

Once again, I'm not sure this would work. We probably needs Davide's 
feedback on how this could be done. :)

Have a great day and good luck with your setup,
Toby


-- 
Toby Reiter                          mailto:[EMAIL PROTECTED]
Breezing Internet Communications     http://www.breezing.com
1106 West Main St                    phone:434.295.2050
Charlottesville, VA 22903            fax:603.843.6931
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to