[Techtalk] multiple domains, single server

Malcolm-Rannirl rannirl-lc at otherkin.net
Wed Dec 11 12:37:52 EST 2002


I'm in the process of setting up a second domain hosted on an existing 
server. Each domain has it's own IP address.

Setting up the web side of this is easy (apache is already configured for 
virtual domains as the existing domain has a couple of subdomains).

The mail side however is causing me problems.

Configuring inbound mail is fairly easy, just set up the mail server to 
accept mail for both domains. As long as the usernames don't overlap in 
incompatible ways (which is relatively simple to ensure in this case), it 
should deliver local mail correctly.

Outbound mail is what is causing me to scratch my head a lot. Outgoing mail 
needs to look like it came from the appropriate domain (ie. domain1 mail 
can't appear to come from domain2's server). The only solution I've been able 
to come up with so far (even asking my friendly neighbourhood network 
engineer) is to somehow run two seperate smtp daemons with different configs 
and persuade them into only sending out through the requisit interfaces. I'd 
rather not do this unless I have to, as it adds much to the maintainance 
issues.

Anyone tried this themselves? If so, how did you get it to work.

The server is currently running qmail, though I'd be willing to change to 
postfix if that provides something qmail doesn't. I'd much rather avoid 
sendmail if at all possible though.


Thanks.



More information about the Techtalk mailing list