virtual mail domains on redhat

Posted on 2006-06-02
Last Modified: 2013-11-18

I have a Redhat Enterprise Server 4 that I'm running.

I'd like to set up a mail service that would enable me to have virtual domains on it. i.e. , , that are separate and used by different clients.

in windows this would be very easy, I'd install a simple mail server and it would do it for me.
How can I possibly do this with Linux? I've sendmail installed but I don't know anything about it.
I need to have POP3 connectiivty from the internet to this server, and all customers with different domains should use the same public ip that this server has.

Please provide me step by step instructions if possible.
Question by:eggster34

    Expert Comment

    I think this is what your looking for, try this

    Author Comment

    I think it is not.
    this explains how to create virtual websites. Please read my question again.

    Expert Comment

    There is a section in there for virtual mail using sendmail, is that not what you want?
    LVL 2

    Expert Comment

    Well eggster34 ,

    you 1st install vpopmail in u r linux box - within that you can able to host mulitiple domain with single sendmail .

    read Vpopmail documentation for adding domain and create user for specific domain.

    and for  MX record of all your,, must be pointed bot ( where u r sendmail running) . So that will suffies u r running single sendmail server with multiple domain with single IP Address.

    If more query go on posting..

    linux2000in :: It's all about Open Source & Linux :: It';s Place to learn Linux free in different WAY !

    Author Comment

    wvelez, I just noticed that section, but it's very short and I didn't understand anything. as I said, I'm a newbie and I need step by step instructions.
    LVL 22

    Accepted Solution

    Within a linux environment what tends to happen is that there is a seperate daemon running for pop, and another for SMTP. This often complicaets matters for a newcomer. Assuming that you just require SMTP, and POP, then I can thoroughly recommend xmail:

    as the SMTP and POP are included in the same package.

    In order to configure it, I recommend xmail admin:

    which runs on windows. Before you can use it, you will need to set up a password for it (which you create using the XCrypt command in the bin directory of /var/Mailroot. You will also need to configure the server configuration file (also in /var/Mailroot)

    Once that's done adding domains, and users and removing and configuring them is really easy and intuitive.

    Although this is not a 'mainstream' mail server solution, I have found it to be very capable and efficient coping happily with over 40,000 emails in one day (when one of the individuals in the company running on this had their PC compromised by a bulk mailing worm!)

    It supports antivirus/spam filtering etc, but these are a little more 'fiddly' to set up. Basically you'll need to manually copy a script into the or filters.out as appropriate, and add the filter to a list of filters to be run...and away you go.

    If you need a 'hardcore' solution dealing with millions of emails a day, then you probably need to look at Qmail...(plus a sendmail hack!)

    or as Dovecot comes with RHEL4, you might wish to work through this for a multi-domain/anti-spam/virus configuration with the assistance of Postfix:


    Author Comment

    pjedmod, the documentation is for professionals only, I need a full guide i.e. which command to use when untarring, how to install / compile etc.

    Author Comment

    Dear Piedmond, Thanks a lot man, I managed to do it!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now