Patrick Shanahan wrote:
* David C. Rankin
[01-22-08 09:30]: Where do I tell postfix to deliver mail for a user to localhost and deliver a copy to user@machine2.com? It has to be easy, -- I hope.
procmail
:0: c ## for local delivery * ^To_.*"USER@hostname.com" $/location/maildir
or
:0: c ## for remote delivery * ^TO_.*"USER@hostname.com" !user@host.com
note: the second recipe will work for both instances
Patrick, I used: :0 * ^TO_username@domain.com { :0c $DEFAULT :0 ! username@otherhost.domain.com } From your post, it looks like the :0c $DEFAULT was unnecessary and I could accomplish the same thing with a simple: :0c * ^TO_username@domain.com ! username@otherhost.domain.com 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: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org