XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Documentation and Knowledge Base > Running Multiple Instances Of Xmail On Windows


Posted by: Bhozar Jun 12 2003, 10:19 AM
In this example I will refer to xmail and xmail_mm. Xmail_mm is the xmail server we send out our mass mailings (newletters).

Copy the supplied MailRoot directory where you want it to reside (in this example 'C:\MailRoot' and 'C:\MailRoot_mm').

Setup the MailRoot directories (and subdirectories and file) permissions to allow access only to System and Administrators. Doing this you can run XMail as a console startup only if you're Administrator (service startup as System).

Copy XMail executables to 'C:\MailRoot\bin' and 'C:\MailRoot_mm\bin'.

Rename xmail.exe in 'C:\MailRoot_mm\bin' to xmail_mm.exe.

With 'regedit', create 'GNU' key inside 'HKEY_LOCAL_MACHINE\SOFTWARE\' and then 'XMail' and a 'XMail_mm' key inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU'.

Create a new string value named 'MAIL_ROOT' inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail\' with value 'C:\MailRoot'.

Create a new string value named 'MAIL_ROOT' inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail_mm\' with value 'C:\MailRoot_mm'.

Create a new string value named 'MAIL_CMD_LINE' inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail\' to store your command line options (read well the rest of this document).

Create a new string value named 'MAIL_CMD_LINE' inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail_mm\' to store your command line options. You MUST specify alternative ports for XMail_mm to run on otherwise it will have conflicts with the main xmail server.

Open an NT console (command prompt).

Go inside 'C:\MailRoot\bin' and run: XMail --install for a manual startup, or: XMail --install-auto for an automatic startup.

Go inside 'C:\MailRoot_mm\bin' and run: XMail_mm --install for a manual startup, or: XMail_mm --install-auto for an automatic startup.

The rest of the setup is pretty standard. You just have to repeat all steps you do for xmail to setup xmail_mm.

If you have other services that give the same functionality of XMail, that is SMTP, POP3, or Finger servers, you must stop these services.

Setup the 'SERVER.TAB' configuration option after reading the rest of this document well.

Add your users and domains (after reading to the rest of this document well).

Setup file permissions of the 'C:\MailRoot' and 'C:\MailRoot_mm' directory to grant access only to 'SYSTEM' and 'Domain Admins'.

Change or comment out (#) the example account in ctrlaccounts.tab by using a non-trivial username and password.

To start XMail without reboot you can go to: ControlPanel -> Services -> XMail server and start the service, otherwise reboot your machine.

Setup the file 'smtprelay.tab' (and/or 'smtp.ipmap.tab' if necessary) to restrict mail relaying of your server. 'THIS IS IMPORTANT!'

Xmail now reads the registry key with the same name of its .exe. It also registers the service using the name of the .exe.

The advantage of running two xmail servers on one machine is for those people who are limited to using windows and only one server and would like to seperate the sending of normal emails and newletters so the normal emails are not slowed down in delivery or receiving.

The above system has been tested in Windows 2003.NET Server.

Posted by: atomant Jun 12 2003, 12:01 PM
Thanks Bhozar for the contrib.

Posted by: ced gdn Jun 18 2003, 04:02 PM
QUOTE
You MUST specify alternative ports for XMail_mm to run on otherwise it will have conflicts with the main xmail server.


How do you do that ?

Thanks

Posted by: atomant Jun 19 2003, 07:17 AM
with the comand line switches Pp, Sp, Fp, Cp

Posted by: ced gdn Jun 19 2003, 10:14 AM
Ok. Thank you for your anwser.
Now the value of the command line of my second instance of xmail (called XMail2) is :
-Pp 8090 -Sp 8091 -Fp8092 -Cp 8093

So I have my first instance working (XMail in the directory D:\MailRoot) but I can't manage to make the second instance work :
When I enter D:\MailRoot2\bin\XMail2 --install, I get the following error saying that the service already exists:
CODE
CreateService failed - Le service spécifié existe déjà (0x431)

Everything seems to be ok in my registry (HKLM/Software/GNU/XMail and HKLM/Software/GNU/XMail2) with their corresponding MAIL_ROOT values.

Do u have any idea of how to make it work ?

Cedric

Posted by: ced gdn Jun 19 2003, 10:16 AM
I also checked the list of running services.
Only one instance of Xmail Service is running.

Posted by: atomant Jun 19 2003, 07:41 PM
Did you try to stop this service and then to create a new one?

Posted by: ced gdn Jun 20 2003, 09:25 AM
I've already tried it but I get the same error message

Posted by: Bhozar Jun 23 2003, 11:32 AM
Running multiple instances is only possible in 1.16 upwards. Are you sure you are running 1.16? Earlier versions will give the error you are experiencing.

Posted by: ced gdn Jun 23 2003, 01:09 PM
Ok, I actually run the 1.15 version.
Is there already a released of the version 1.16 ?

Posted by: hschneider Jun 23 2003, 03:09 PM
Only a pre release - see Forum Announcements.

The pre should run flawlessly beside a 1.15 installation.


Posted by: Bhozar Jun 23 2003, 04:13 PM
I was running 1.15 as the main XMail install and 1.16 as the secondary install for a while. The instructions still apply just as long as you are using 1.16 as the second version of XMail.

Posted by: hschneider Aug 6 2003, 12:53 PM
To complete this thread:
Multiple installations are fully supported by XQM and XQM Agent now.
Just update to the latest version.


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)