I now have this setup in postfix:
sudo nano main.cf
inet_interfaces = loopback-only
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CApath = /etc/ssl/certs
smtp_use_tls = yes
Sudo nano sasl_password
[smtp.gmail.com]:587 user:password
And if I run the command:
echo "Test mail thingy" | mail -s "Test Postfix Subject" R*******@gmail.com
Does it work :)
How do i force postfix to send message to root local to my mail ?