Setup Postfix satellite System
I have some internal GNU/Linux servers running in my local network and I want postfix to send out e-mails to one of my mail accounts on my public server from where I can check internal e-mails anywhere and anytime.
The solution is to set up postfix with a so-called satellite system (smarthost) configuration.
There are a lot of good articles with explanations on the Internet, but I just need the command line magic ;)
root@pvm-athena:~# aptitude install postfix mailutils
mail.example.de:587
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_tls_security_level = may
root@pvm-athena:~# touch /etc/postfix/sasl_password
root@pvm-athena:~# touch /etc/postfix/sender_canonical
mail.example.de:587 username:supersecretpassword
root myaccount@example.de
root@pvm-athena:~# chmod 600 /etc/postfix/sasl_password
root@pvm-athena:~# chmod 600 /etc/postfix/sender_canonical
root@pvm-athena:~# postmap hash:/etc/postfix/sasl_password
root@pvm-athena:~# postmap /etc/postfix/sender_canonical
root@pvm-athena:~# service postfix restart