
hugo.monteiro at fct
Sep 11, 2007, 3:36 PM
Post #2 of 7
(3569 views)
Permalink
|
|
Re: two qmail instances running on the same box, at the same time
[In reply to]
|
|
Anderson Miranda wrote: > Hi all, > > I have a running qmail instance serving as my primary MX server > (gw.brasilenergia.com.br). at the very same box, I would like to have > another qmail instance running, with an exclusive, unique queue and > port (say, 2255, for example). This second qmail instance would be > used for a lot of internal things, specially to be used by corporation > systems and applications being developed indoor atm. > > what I would like to know is the proper way to set this second qmail > instance up and running. I did copied the whole /var/qmail tree to a > new /var/qmail2 tree, with the same user/group permissions, edited my > /var/qmail2/rc script to reflect the changes, as well as the > /var/qmail2/bin/qmail-scanner-queue.pl script and the > /var/qmail/supervise/*/run scripts (including the ones for the logs, > which will be saved at /var/log/qmail2/*). Inside the > /var/qmail2/supervise/qmail-smtpd/run I also changed the port value > and used a different cdb file for separate tcp rules. > > After doing the above mentioned changes, I edited my > /etc/init.d/qmaild script so it would also start/stop the svscan for > the /var/qmail2/supervise files as well. When I tested, things seemed > to work, but the qmail-send process of the first qmail instance (the > one at /var/qmail) does not seems to work that fine, as it remains as > <defunct> in my process list. > > What am I missing? is there a better approach to make this work flawless? > > Another thing I'd like to know, after both qmail instances are > running, how can I bind the qmail-remote of the second instance to > only deliver mails through one specific IP (my box has several IPs on > the same interface, but I'd like to make the second instance of qmail > to only send mails through a specific IP). > > So, am I making this way too complex or is it no big deal at all?... > Thanks in advance for your replies. > > Regards, > asm Assuming you do want a completely separate new qmail instance, you need to recompile qmail. It's work dir (home) is hardcoded uppon compilation. You just need to edit the conf-qmail in the qmail source dir, change the first line to whatever new qmail installation point you wish, rebuild and install like the first time. Regards, Hugo Monteiro. -- ci.fct.unl.pt:~# cat .signature Hugo Monteiro Email : hugo.monteiro [at] fct Telefone : +351 212948300 Ext.15307 Centro de Informática Faculdade de Ciências e Tecnologia da Universidade Nova de Lisboa Quinta da Torre 2829-516 Caparica Portugal Telefone: +351 212948596 Fax: +351 212948548 www.ci.fct.unl.pt apoio [at] fct ci.fct.unl.pt:~# _
|