Table of Contents

Postfix use with gmx

Install

apt-get install postfix libsasl2-modules mailx 

Autoconf

Authentication

/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

Correct sender address

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   

Aliases

/etc/aliases

root:   user@gmx.net
newaliases

Test

hostname | mailx -s "root `hostname` `date`" root