Patrick Shanahan wrote:
* David C. Rankin <[EMAIL PROTECTED]> [01-22-08 09:30]:
        Where do I tell postfix to deliver mail for a user to localhost and
deliver a copy to [EMAIL PROTECTED] It has to be easy, -- I hope.

procmail

:0: c    ## for local delivery
* ^To_.*"[EMAIL PROTECTED]"
$/location/maildir

or

:0: c    ## for remote delivery
* ^TO_.*"[EMAIL PROTECTED]"
[EMAIL PROTECTED]

note:  the second recipe will work for both instances

Patrick,

        I used:

:0
* [EMAIL PROTECTED]
{
  :0c
    $DEFAULT
  :0
    ! [EMAIL PROTECTED]
}

From your post, it looks like the :0c $DEFAULT was unnecessary and I could accomplish the same thing with a simple:

:0c
  * [EMAIL PROTECTED]
  ! [EMAIL PROTECTED]

Also, I see recipes that use just ':0' and others that use ':0:', is there a difference? Is one more correct?

--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to