Install ‘iRedMail’ (Fully Featured Mail Server) with Virtual Domains, Webmail, SpamAssassin & ClamAV in Linux

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. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  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...

29 Responses

  1. edmon says:

    Can you create a tutorial regarding DNS and MX Records? I just finished setting up my iredadmin server and I don’t know what to do next. Just like yours, I can receive emails from roundcube to gmail but it is in the spam area. I just need to reply back from gmail to roundcube but I guess that’s where the MX Records will come into play. Thanks!

    • Matei Cezar says:

      You must buy a public domain and use the registar name servers or setup your own dns server. Then you add the a,mx and spf records

  2. MZ says:

    Thanks for the tip about changing to 600. I was going to delete it, but iRedAdmin told me it’s best not to. Glad that now nobody can read the document but the server/STFP itself.

  3. Matei Cezar says:

    centos.mydomain.lan in my case is a CNAME that points to the same IP as the mail server. In this tutorial i have no MX record setup whatsoever!
    so what you actually domain here? ? in that case the A or CNAME record must point to host where the mail is installed in order to be able to browse url. (ex: IN a; IN MX 10

  4. dwijadas says:


    Thanks for such wonderful and detailed tutorial. I am little lost in host setup and MX record setup.

    In the screenshot under step 19, the webmail URL is


    But in step 20, its mentioned that

    Roundcube Webmail – https://domain_name or server_IP/mail/

    if my domain is and I want my user to be able to access mail using

    What should be the host setup ? how the screenshot under Step 19 look like ?

    What would be my ideal MX record for this scenario ?

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?