2 Different Domains on Same Server - Is this Possible?
![](https://secure.gravatar.com/avatar/32d66f4efe26d62aac3d1f398424ee0f.jpg?s=120&d=mm&r=g)
I already have an instance of mailman running with about 100 mailists.
My client is now asking if I could host another domain on the same
server. So basically, I would require two web instances of mailman on
the same box, because the clients are unique.
Is this possible, or will I have to procure and stage another mailman server?
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Brian Oliver wrote:
I already have an instance of mailman running with about 100 mailists.
My client is now asking if I could host another domain on the same server. So basically, I would require two web instances of mailman on the same box, because the clients are unique.Is this possible, or will I have to procure and stage another mailman server?
You don't need a second server. You can run two separate instances of Mailman on the same server. This allows the two instances to be completely separate and independent. Your web server and MTA have to be configured to execute the proper cgi and mail wrappers depending on domain.
Yo can also use Mailman's virtual domain capability to run only one instance of Mailman supporting two domains. This does not provide the separation of two instances. List names must be unique across the installation (going away in 2.2), and it is possible to access the other domain's listinfo pages if you know their list names, but the listinfo and admin overviews will show only the lists for the accessing domain.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/32d66f4efe26d62aac3d1f398424ee0f.jpg?s=120&d=mm&r=g)
I think I can sell the virtual domain capabilities to my client. Any pointers out there to help get me started? Also, will implementing this pose great risk on breaking my existing mailman configurable (meaning can I break the entire server by trying to implement this)?
Mark Sapiro wrote:
Brian Oliver wrote:
I already have an instance of mailman running with about 100 mailists.
My client is now asking if I could host another domain on the same server. So basically, I would require two web instances of mailman on the same box, because the clients are unique.Is this possible, or will I have to procure and stage another mailman server?
You don't need a second server. You can run two separate instances of Mailman on the same server. This allows the two instances to be completely separate and independent. Your web server and MTA have to be configured to execute the proper cgi and mail wrappers depending on domain.
Yo can also use Mailman's virtual domain capability to run only one instance of Mailman supporting two domains. This does not provide the separation of two instances. List names must be unique across the installation (going away in 2.2), and it is possible to access the other domain's listinfo pages if you know their list names, but the listinfo and admin overviews will show only the lists for the accessing domain.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Brian Oliver wrote:
I think I can sell the virtual domain capabilities to my client. Any pointers out there to help get me started? Also, will implementing this pose great risk on breaking my existing mailman configurable (meaning can I break the entire server by trying to implement this)?
The Mailman part of it is very simple and easily reversed.
In Defaults.py you have
DEFAULT_EMAIL_HOST = 'www.example.com' DEFAULT_URL_HOST = 'mail.example.com'
where the domains are yours or ??
There is also a
##### # Virtual domains #####
section which you should read and which contains
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
Those lines may be repeated in mm_cfg.py with the same or different domain names.
The sole change to Mailman is to add
add_virtualhost('www2.example.com', 'mail2.example.com')
to mm_cfg.py where the actual domain names are those of the second domain.
You will also need to set up the web server and MTA for the second domains.
Then you can create lists in the second domain with bin/newlist (see bin/newlist --help) or by visiting the mailman/create page from the second domain.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/7bdecdef03708b218939094eb05e8b35.jpg?s=120&d=mm&r=g)
At 10:02 PM -0400 3/28/07, Brian Oliver wrote:
I already have an instance of mailman running with about 100 mailists. My client is now asking if I could host another domain on the same server. So basically, I would require two web instances of mailman on the same box, because the clients are unique.
See FAQ 4.47, and then see FAQs 1.22 and 1.23.
-- Brad Knowles <brad@shub-internet.org>, Consultant & Author LinkedIn Profile: <http://tinyurl.com/y8kpxu> Slides from Invited Talks: <http://tinyurl.com/tj6q4>
participants (3)
-
Brad Knowles
-
Brian Oliver
-
Mark Sapiro