Having Qmail coexist with Lyris
Qmail is capable of peacefully coexisting with Lyris on the same machine without any problems. The following instructions explain how to set this up. The process involves making a
second name for your computer, moving Lyris to another TCP/IP port, and telling Qmail to forward mail sent to that second name on to Lyris.
Here are the steps:
1) Create up an alias (a secondary name) for your computer by adding an additional "A record" to your DNS entries. For example, if your machine is named "qmail.shelby.com", copy the "A" record entry
for that host, make a copy, and change the name in the copy. Your DNS entry would look like this:
qmail IN A 18.104.22.168 ; the original host name 2) After installing Lyris, tell Lyris what port you want it to use. In this example, we are using port 26. To do this, open up a command window, change to the Lyris directory and
lyris IN A 22.214.171.124 ; the new "alias" host name
3) Append the following line to the /var/qmail/control/smtproutes -- changing "lyris.shelby.com" to be whatever the alias was you defined in your DNS entry above. For example:
lyris.shelby.com:[127.0.0.1]:26 4) Now, start up your Lyris server.
5) You're ready to go. When you create your Lyris "sites" be sure to use the new hostname in the "hostname" entry. In this example, this is "lyris.shelby.com".
Another way for Qmail and Lyris to Coexist
Another way to have Lyris coexist with qmail is to give Lyris its own TCP/IP address on your system. Here are the steps to do this:
* assign your machine a new tcp/ip address. Different Unix systems have different ways of doing this.
* add a DNS 'A' record for this new TCP/IP address
* run the command "lyris tcpip 126.96.36.199" to inform Lyris to only listen to the TCP/IP address "188.8.131.52", substituting your new TCP/IP address instead of 184.108.40.206. See
Multiple TCP/IP addresses for more information.
* edit the file named "lyris.plc" in your CGI-BIN directory. Find the line which says "server_ip_address=127.0.0.1". Change the 127.0.0.1 to the TCP/IP address you just assigned for Lyris. See
TCP/IP Port of Lyris Server for more information.
* Tell Qmail not to listen to this new TCP/IP address. You must be running Qmail under "tcpserver" to do this. Consult your tcpserver documentation on how to do this.