Install a Complete Mail Server with Postfix and Webmail in Debian 9

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

24 Responses

  1. laura says:

    Can you tell how to enable registration?

  2. Emanuel says:

    Thanks. Great work! It saved me lots of hours.

  3. lyes says:

    Hi, thanks for this tutorial, but if we want to change our domain name, would it work if we just update the postfix config file ( ?

  4. pelle says:

    Awesome tutorial. How would I go about to use this with multiple domains? step 4,5 and 6 for each?

    • Matei Cezar says:

      Multiple domains with postfix is a complex subject and requires more expertise with postfix and databases. It all depends on where you want to store your virtual domains and accounts (flat files, mysql, postgres databases …)

  5. Gary says:

    Really good tutorial!
    Thanks for all your effort

  6. Makro says:

    I’m having the same problem, everything is working perfectly.
    I can only send emails through Webmail, but I do not receive any.

  7. geekatlab says:

    Thanks for the great tutorial, every thing works perfect but only one issues when I am sending email from webmail, it is showing error message as Authentication Failure when I press sent any suggestions on this please ? what might be wrong..


  8. Otacon says:

    Hello ! First of all great tutorial ! Really ! :D

    Then, Actually I follow all the steps of the tutorial and it works, I just have one issue. When I sent a email from a user from the webmail, the destination user receive the email in his Maildir but not in his webmail. Maybe you have some advices or answers to my questions ?

    Thanks again.

  9. Walter Casañas says:

    Great tutorial. I hope you do some on how to use virtual users in postfix with a MySql database

  10. Paul says:

    Great tutorial. I encourage you to create the second part about mail server security (DKIM, SPF, Spamassassin, etc.).

    That would be perfect tutorial how to create complete Linux mail server on Debian.

    Thanks again.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.