THIS CONFIG DON'T WORK - I WILL EDIT THIS PAGE IF I GET A CORRECT CONFIGURATION
To use an external SMTP server, follow this manual:
Open /etc/postfix/main.cf and add this lines:
<cli> relayhost = smtp.domain.tld smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_mechanism_filter = plain, login </cli>
Open /etc/postfix/sasl_passwd and add this:
<cli> smtp.domain.tld username:password </cli>
Run this line:
<cli> # postmap hash:/etc/postfix/sasl_passwd </cli>
<cli> # /etc/init.d/postfix restart </cli>
Important: SMTP server like smtp.googlemail.com don't work!