redirect root mail to an extern account

Hi, I’m want to redirect the root mail to my external account, first I add the line root: user@domain.com, \root to my /etc/aliases file, then I run the command newaliases, but how do I configure postfix to send the mail?

Hi
Relay it out through the domain.com smtp server. Have a look at the
main.cf file and restart postfix.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86 Kernel 2.6.27.7-9-pae
up 2:55, 1 user, load average: 0.05, 0.42, 0.48
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

If you have not taken over main.cf (and therefore out of YaST control), it can also be done by editing the config setting POSTFIX_RELAYHOST in YaST, or with a text editor on /etc/sysconfig/postfix (after which SuSEconfig --module postfix needs to be run).

Hi,

I seem to remember that you could also achieve this with a .forward file in the users home folder. Where the forwarding email account is listed.This worked with sendmail, so I assume this functionality still exists with postfix.

I will check!

Cheers
J

Tux-IT Open Source - BSD and Linux Solutions