Family, Work, Life

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”.

  1. System Mail Name: your maildomain name (interblc.com) not the dns name of your server.
  2. SMTP relay host:smtp.1und1.de
  3. Root and Postmaster mail recipient: your user account or external email address
  4. Other destinations to accept mail for: your servername, localhost.localdomain,localhost
  5. Force synchronous updates on mail queue: If you have ext3 oder reiser NO otherwise better YES
  6. Local Networks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  7. Procmail for local delivery: Yes
  8. Mailbox size limit: 0
  9. Local address extension character: +
  10. 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

  • Share/Bookmark

13 Responses to “Howto Setup Ubuntu postfix to send email with 1und1 as smarthost”

  1. Your blog is interesting!

    Keep up the good work!

  2. 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

  3. Moin Tri
    dpkg-reconfigure worked?
    The directory /etc/postfix/ exists?
    When it exists please post the output of “ls -al /etc/postfix/”.
    Greetings
    Ansi

  4. 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

  5. So I understand the reconfigure seems to work. What about the directory? /etc/postfix exists?

  6. Thats great material, like your stuff, just passing to say hi!

  7. 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.

  8. Success is counted sweetest by those who ne’er succeed.

  9. Just thought i could comment and also say neat design, did you code it yourself? Looks great.

  10. 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.

  11. 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.

  12. 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 :-P

  13. Laura Cortez Salazar Says:
    July 9th, 2010 at 18:14

    Very useful and easy to understand, Thank you

Leave a Reply