[qmailtoaster] RPM Build for Second Instance of Qmail

2010-03-24 Thread Anil Aliyan
Dear Jake,

I need to install Trend Micro IMSS for qmail at our company HO and for the
at we need to install two instances of qmail on the same server (called
Sandwich Mode installation). I have installed first instance of qmailtoaster
and tried to rebuild srpm for the second instance by modifying the spec
file. I made the following changes in the ##RPM## section of the spec file:

%define qdir /var/qmail  -- %define qdir /var/qmail2
Name:   %{name}-toaster  -- Name:   %{name}-toaster2 

RPM gets build without any errors but when I install the same it says
/usr/sbin/sendmail already exists and fails to install.

One more thing is haunting me is the startup scripts of second instance in
the /etc/rc.* directory and /var/log/qmail logs. Is it going to overwrite
the startup scripts and log files of the first instance?? As I am unable to
find where to make changes in spec file for these two paths or if I can
rename the startup scripts and log files for the second instance so that
they do not conflict with the first instance. 

Though I am still trying to find out the reason and ways to resolve the same
but meanwhile if an expert like you can help me out and guide me it can be
achieved in less time. 

Thanks  Regards,

Anil Aliyan


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.
 
  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




Re: [qmailtoaster] RPM Build for Second Instance of Qmail

2010-03-24 Thread Jake Vickers

On 03/24/2010 02:42 AM, Anil Aliyan wrote:

Dear Jake,

I need to install Trend Micro IMSS for qmail at our company HO and for the
at we need to install two instances of qmail on the same server (called
Sandwich Mode installation). I have installed first instance of qmailtoaster
and tried to rebuild srpm for the second instance by modifying the spec
file. I made the following changes in the ##RPM## section of the spec file:

%define qdir /var/qmail  --  %define qdir /var/qmail2
Name:   %{name}-toaster  --  Name:   %{name}-toaster2

RPM gets build without any errors but when I install the same it says
/usr/sbin/sendmail already exists and fails to install.

One more thing is haunting me is the startup scripts of second instance in
the /etc/rc.* directory and /var/log/qmail logs. Is it going to overwrite
the startup scripts and log files of the first instance?? As I am unable to
find where to make changes in spec file for these two paths or if I can
rename the startup scripts and log files for the second instance so that
they do not conflict with the first instance.

Though I am still trying to find out the reason and ways to resolve the same
but meanwhile if an expert like you can help me out and guide me it can be
achieved in less time.
   



You will need to modify the spec file to no longer copy/link the 
sendmail file, or delete it before installing the 2nd instance.
As far as the startup scripts, if you install the src.rpm, the startup 
scripts are located in the source files. You can modify them and then 
repackage them, and lastly rebuild the RPM.
And unless you rename the startup scripts (and make the appropriate 
changes to the spec file) then when you install the 2nd instance it 
*will* overwrite the old files.



-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
 If you need professional help with your setup, contact them today!
-
Please visit qmailtoaster.com for the latest news, updates, and packages.

 To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com

For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com