David C. Rankin wrote:
Marcin Floryan wrote:
On 22/01/2008, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
Listmates, Sandy,
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.
I tend to use procmail in such case and setup a rule to forward the message to another address. This can easily be done by the user themselves in the local .procmailrc file.
Alternatively the .forward file in the user account can be used.
Another (and possibly the simplest option) is to define an alias in the /etc/aliases file adding a similar line
user: user@machine2.com, \user
Regards,
Thanks Marcin,
The tough part was I wanted a 'copy' forwarded to another box, not
just a plain forward. Procmail was the answer.
Not necessarily. I would do this in virtual_alias_maps. /etc/postfix/virtual: user@example.com user@example.com, user@machine2.com -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org