Howto Setup Ubuntu postfix to send email with 1und1 as smarthost
July 24th, 2008 AnsiInstalling Postfix with
apt-get install postfix
or choose dpkg-reconfigure postfix when you allready installed postfix before.
The configuration working for me is “satelite”.
- System Mail Name: your maildomain name (interblc.com) not the dns name of your server.
- SMTP relay host:smtp.1und1.de
- Root and Postmaster mail recipient: your user account or external email address
- Other destinations to accept mail for: your servername, localhost.localdomain,localhost
- Force synchronous updates on mail queue: If you have ext3 oder reiser NO otherwise better YES
- Local Networks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
- Procmail for local delivery: Yes
- Mailbox size limit: 0
- Local address extension character: +
- Internet Protocol:All
Edit /etc/postfix/main.cf and add these lines at the end:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
Create /etc/postfox/sasl_password with one line:
smtp.1und1.de MAILACCOUNT_at_1und1:PASSWD
Create and db file from this passwd file with
postmap /etc/postfix/sasl_password
Restart postfix with:
/etc/init.d/postfix restart
Now it should work. Give it a try with
date | mail -s “testing” regen@wetter.de
and watch the logfile with
tail -f /var/log/mail.log









