For this you will of course need to install postfix (or sendmail, but i use postfix)
$ sudo apt-get install postfix
after install open /etc/postfix/main.cf
$nano /ect/postfix/main.cf
and find the line that says
relayhost =
and fill out a useable relay hostthen restart postfix
/etc/init.d/postfix restart
First for your normal users account create a file called " .forward " containing your e-mail adress
Root mial cannot be forwarded to anny user outside the machine. so we have to forward it to your user . (who then forwards it to your external e-mail account)
in the /root folder create a file called .forward containing "your-user-account"@localhost
>so for me this would be "wouter@localhost" (because my username is wouter)
you system mail should now be forwarded to your external e-mail account
Geen opmerkingen:
Een reactie posten