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:, \root to my /etc/aliases file, then I run the command newaliases, but how do I configure postfix to send the mail?

Relay it out through the smtp server. Have a look at the file and restart postfix.

Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86 Kernel
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 (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).


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!


Tux-IT Open Source - BSD and Linux Solutions