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

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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

31 Responses

  1. Cesar says:

    Hello dude;

    I have a full operational iredmail site, now I want to have multiples mail domains, can I do this with only one server and only one static ip address?

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

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

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

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

Leave a Reply to Matei Cezar Cancel reply

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.