[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Email Forwarding with Copy



>> In the user's home directory, create a filed called
>> ".forward" (without
>> the quotes, with the dot)
>> and inside it write the email to forward to.
>>
>That forwards the mail to another stated destination but does *not*
>leave a copy in the users' maildir.
>Additionally, you couldn't use .forward for an entire domain. For that
>you need virtusertable. Even then, you can't get such granular control
>as with procmail.
>-Colin

Hi All!

No argument that Colin wrote a great answer, but there are two ways to pet
this cat. (I love cats. I don't skin 'em. :) ) You *can* use .forward for
this kind of thing:

The .forward would look like this (according to O'reilly's Sendmail Book,
Chapter 7, Verse 2...Heheh! I'm quoting Internet Scripture! :) )

\user, user@B

So, if you had a user on your system, "joe", and he had an address off the
machine at joe@xxxxxxxxx or something, his .forward might look like this:

\joe, joe@xxxxxxxxx

This would leave mail on the server, and send a copy to his Yahoo account.

Now, as O'reilly's is careful to point out...make sure that joe@xxxxxxxxx
doesn't also forward back to joe on your system, or you end up with a big
ugly loop and then you have to mess with sendmail to fix it by adding an
alias to the sendmail aliases like this:

user:  \user

or,

joe: \joe

This bypasses the .forward so the loop is broken.

Love, y'all!

-Dee Dreslough
RAQ3 Person-of-Relative-Newness (PORNie? Okay..that's a terrible acronym!
I'll stick with Raq3 Newbie. ;) )