Howto Setup Ubuntu postfix to send email with 1und1 as smarthost
Installing 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










August 16th, 2008 at 08:58
Your blog is interesting!
Keep up the good work!
September 5th, 2008 at 16:05
Did not work at all. I follow from begining till Edit /etc/postfix/main.cf then my box said no such file exist.
It looks simple but too hard to make it works.
I am only 3days ubuntu experience!
What I need to do is to setup the Mail server to receive mail and send mail from my web site ASP.NET
Any recomemdation please?!
Thank a bunch
September 5th, 2008 at 17:18
Moin Tri
dpkg-reconfigure worked?
The directory /etc/postfix/ exists?
When it exists please post the output of “ls -al /etc/postfix/”.
Greetings
Ansi
September 5th, 2008 at 21:03
I don’t understand what you mean
I am typing dpkg-recondifure at root@YamUbuntu:~# and it asked me to specify the package to reconfigure
I’ve been searching all over the world to find the step by step since yesterday but just get a broken piece of tutorial! what the hell! Can any one tell me the direction please.
Thanks in advance
September 8th, 2008 at 11:39
So I understand the reconfigure seems to work. What about the directory? /etc/postfix exists?
June 30th, 2009 at 22:22
Thats great material, like your stuff, just passing to say hi!
November 13th, 2009 at 20:16
Hi. Useful post. It sounds interesting. In my occupation, I am intercommunicating mainly with email. I favor Outlook as my email client and with the help of Email Sorter Wizard, an Outlook add-on, I manage all my e-mail. Your blog is a great resource! Thank you.
November 23rd, 2009 at 12:15
Success is counted sweetest by those who ne’er succeed.
April 13th, 2010 at 23:20
Just thought i could comment and also say neat design, did you code it yourself? Looks great.
April 18th, 2010 at 14:21
As energy prices sky rocket the prices of solar panels will only go up. This will hopefully prove that solar panels will be a great investment for anyone wanting to save some money or help the environment. Either way, solar panels really should be at the top of the “to do” list.
May 27th, 2010 at 01:50
I can not disagree that you have brought your point through. This is a very pleasant article. I would most likely suggest my friends to read this.
July 6th, 2010 at 15:47
That rss choice on your web page below is impressive, you ought to tell individuals about it as part of your next submit. I haven’t noted it to the 1st couple of times, now I’m using it every morning to verify on any updates. I’m on a truly slow dial-up connection in Kentucky and it is quite baffling to sit there and wait for such a extended time ’til the page loads… but hey, I just identified your rss page and added it to the Google Reader and voil? – I’m continually up-to-date! Effectively pal, maintain up the great do the job and make that rss button a little bigger to ensure that other persons can enjoy that as well
July 9th, 2010 at 18:14
Very useful and easy to understand, Thank you