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
Install postfix and mailutils package
Use smarthost in postfix configuration dialog
        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
Add lines in /etc/postfix/
        root@pvm-athena:~# touch /etc/postfix/sasl_password
        root@pvm-athena:~# touch /etc/postfix/sender_canonical
Create sasl_password and sender_canonical files username:supersecretpassword
Edit sasl_password file. Note: user must exist
Edit sender_canonical file. Note: user must exist
        root@pvm-athena:~# chmod 600 /etc/postfix/sasl_password
        root@pvm-athena:~# chmod 600 /etc/postfix/sender_canonical
Make sasl_password and sender_canonocal files secure
        root@pvm-athena:~# postmap hash:/etc/postfix/sasl_password
        root@pvm-athena:~# postmap /etc/postfix/sender_canonical
Make postfix databases
        root@pvm-athena:~# service postfix restart
Restart postfix