How to Setup a Complete Mail Server (Postfix) using ‘SquirrelMail’ (Webmail) on Ubuntu/Debian

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.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

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

150 Responses

  1. Deen says:

    Hi, How do I link it up with SQL so that users will have the freedom to reset their passwords to their choice? and enable password reset option in the web interface?

  2. doug says:

    Good tutorial, but I still get a time-out “ERROR: Connection dropped by IMAP server.”. Any ideas would be appreciated.

  3. Rahu says:

    I am not able to receive mail in Inbox. Is there anything missed like DNS configurations or something?

    • Ravi Saive says:

      @Rahu,

      Does the mail received in Spam section? Have you added correct MX and SPF records for your mail domain?

      • Rahu M says:

        Can your please explain that MX record and SPF record for my domain? Am using digitalocean and followed all above steps.

        • Ravi Saive says:

          @Rahu,

          Please check out the following article, and see the section – Create A and MX Records for Domain in DNS.

          https://www.tecmint.com/setup-postfix-mail-server-and-dovecot-with-mariadb-in-centos/

        • Aaron Kili says:

          @Rahu

          MX (mail exchange) record is an entry in your DNS zone file that specifies a mail server to handle a domain’s email, and SPF(Sender Policy Framework) record is an entry in DNS zone file used to indicate to mail exchanges which hosts are authorized to send mail for a domain.

        • doug says:

          @Rahu

          You will need (must have) a MX record in your DNS configuration. An example would be:

          MX   10   mail.your-domain-name.com
          

          A SPF (Sender Policy Framework) helps other email servers (like Gmail) to let them know that you are a legitimate email server and not pumping out spam. A SPF record would look something like this:

          v=spf1 mx include:your-domain-name.com -all 
          

          This is the one that I use and it has passed all spam filters and gmail.

  4. Nektarios says:

    Hi! I would like to ask what I should do if I have already installed an SSL certificate. Should I install a new certificate during the Dovecot installation or I could expand my certificate.

  5. Juan Sanchez says:

    How can I connect my email with Outlook?

  6. junaid says:

    Excellent excellent excellent and thanks

  7. Zac Garby says:

    On SquirrelMail, I get an error:

    ERROR: Could not complete request.
    Query: SELECT “INBOX”
    Reason Given: [SERVERBUG] Internal error occurred. Refer to server log for more information. [2018-04-06 18:33:43] (0.000 + 0.000 secs).

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.