OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Hosting muliple domains - same box (virtual or seperate servers?)

From: Adam D (emlistsgmail.com)
Date: Tue Nov 21 2006 - 03:44:59 CST


I am hosting several server domains on a single mail server using postfix. I know I can use virtual domain functions in the main.cf file but here is my question. (After a half day of research on the Internet, saved files and even 'The Book of Postfix', GREAT book by the way, I am still in the dark.)

Which way is better for hosting several domains on a single box, virtual_domains_xx or separate postfix servers running its own domain and config files? What I want to accomplish is each domain have its own 'A' and 'PTR' records matching the IP address to the domain name so when another server verifies the validity of the domain, it checks out as legit.

Virtual Domains: When setting up the main.cf file there is only one myhostname,mydomain and such. But I afaik I can receive but can I send using virtual domains such as from the same box and server with the proper domain attached through smtp without the same myhostname?

Separate Servers: If using multiple postfix servers on the same box is better I can't remember or find what I put at the end of the /etc/postfix/main.cf file notifying postfix of additional server configs. I know I need to change each master.cf as well. I found queue_directory to change the queue for the other domains but are there additional things I need to change i.e. the main.cf and master.cf files are located?

I had 2 separate mail servers running on the same box a some years ago but had forgotten some of the rules.

Any new light would be very helpful.

Thank you,
-Adam