Re: 2 Qmail servers...

2001-04-16 Thread lenneis


NDSoftware :

 Hi,
 Can i run 2 Qmail server on the same server with different port ?
 If yes how ?
 Thanks

You have to distinguish between the various components of qmail, for
our purposes the programs like qmail-send. qmail-inject etc. that
maintain the queue and the part that listens for incoming mail on
(normally) port 25 which is qmail-smtpd. Both can be installed/run
twice by simply compiling two separate instances of qmail. You do this
by setting the pathname in the configuration file conf-qmail in the
source distribution to two separate values, say first to
"/var/qmail1", compile and install and then to "/var/qmail2", compile
and install. Everything else remains unchanged to a normal install
except that the two instances of qmail-smtpd need to listen to
different ports, for instance 25 and 26. If you have qmail-smtpd
controlled by tcpserver you just have to set the appropriate port
number on the command line. For inetd you have to have two entries in
/etc/inetd.conf for the two port numbers. Note that you also have to
get a connecting mailserver to attach to the nonstandard port, in my
example 26. That kind of setup will result in two parallel instances
of qmail running on the same machine that do not know anything about
each other.

If you simply want two instances of the smtp daemon running that dump
incoming mail into the same queue you only need one instance of qmail
compiled. Simply have qmail-smtpd (via tcpserver or inetd) listen on
two separate ports as described above.


NB: What are you trying to achieve with this? Maybe there is a more
straightforward method.

regards,

-- 

Joerg Lenneis

email: [EMAIL PROTECTED]



RE: 2 Qmail servers...

2001-04-16 Thread NDSoftware

OK Thanks you very much.
I try this now.

Nicolas DEFFAYET, NDSoftware
http://www.ndsoftware.net - [EMAIL PROTECTED]
France: Tel +33 671887502
---
Note: All HTML email sent to me can be deleted for security reasons. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 9:01 PM
To: NDSoftware
Cc: Mailing-List Qmail
Subject: Re: 2 Qmail servers...



NDSoftware :

 Hi,
 Can i run 2 Qmail server on the same server with different port ?
 If yes how ?
 Thanks

You have to distinguish between the various components of qmail, for
our purposes the programs like qmail-send. qmail-inject etc. that
maintain the queue and the part that listens for incoming mail on
(normally) port 25 which is qmail-smtpd. Both can be installed/run
twice by simply compiling two separate instances of qmail. You do this
by setting the pathname in the configuration file conf-qmail in the
source distribution to two separate values, say first to
"/var/qmail1", compile and install and then to "/var/qmail2", compile
and install. Everything else remains unchanged to a normal install
except that the two instances of qmail-smtpd need to listen to
different ports, for instance 25 and 26. If you have qmail-smtpd
controlled by tcpserver you just have to set the appropriate port
number on the command line. For inetd you have to have two entries in
/etc/inetd.conf for the two port numbers. Note that you also have to
get a connecting mailserver to attach to the nonstandard port, in my
example 26. That kind of setup will result in two parallel instances
of qmail running on the same machine that do not know anything about
each other.

If you simply want two instances of the smtp daemon running that dump
incoming mail into the same queue you only need one instance of qmail
compiled. Simply have qmail-smtpd (via tcpserver or inetd) listen on
two separate ports as described above.


NB: What are you trying to achieve with this? Maybe there is a more
straightforward method.

regards,

-- 

Joerg Lenneis

email: [EMAIL PROTECTED]