apt-get install postfix libsasl2-modules mailx
dpkg-reconfigure --priority=low postfix
.
/etc/postfix/main.cf
smtp_sasl_auth_enable = yes # noplaintext # only wenn you provider doesn't support password encryption : smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
sudo touch /etc/postfix/sasl_password
sudo postmap /etc/postfix/sasl_password rm /etc/postfix/sasl_password
/etc/init.d/postfix restart
etc/postfix/main.cf:
sender_canonical_maps = hash:/etc/postfix/sender_canonical
user user@gmx.net www-data user@gmx.net root user@gmx.net
sudo postmap /etc/postfix/sender_canonical sudo /etc/init.d/postfix restart
/etc/aliases
root: user@gmx.net
newaliases
hostname | mailx -s "root `hostname` `date`" root