Index: [Article Count Order] [Thread]

Date:  Wed, 30 Jan 2008 21:27:27 +0100
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:11841] Re: Virtusertable problem, GUI adds user (at mark) www.domain.tld but not user (at mark) domain.tld
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200801302127.27900.bq (at mark) solarspeed.net>
In-Reply-To:  <017001c86369$cfdd1e70$0101a8c0@systemax>
References:  <017001c86369$cfdd1e70$0101a8c0@systemax>
X-Mail-Count: 11841

Hi Gerald,

> Strange issue, all of a sudden when we add users,
> The GUI Add User, adds user (at mark) www.domain.tld but not user (at mark) domain.tld
> to virtusertable.
>
> It worked, for the domain.tld, but now it's broken!
>
> So email to user (at mark) www.domain.tld works but user (at mark) domain.tld does not work.
> We can edit virtusertable to fix, but....
>
> Anyone seen this problem???
> And have a fix?

Gerald, that's the standard behaviour. The GUI will *always* just add 
username (at mark) host.domain.tld to the virtusertable. Unless you also set an "Email 
Server Alias".

After all, username (at mark) host.domain.tld is how the underlying system "knows" the 
user as there can be multiple sites on the same server that share the same 
domain name, have different hostnames, but all have legitimate users. Like 
this:

Site:    www.site.com
Site:    shop.site.com
Site:    blog.site.com
Site:    gallery.site.com

Now if someone emails webmaster (at mark) site.com, who gets the email? :o)

Now THAT is what Email Server Alias is for.

The Email Server Alias (can be defined for each site) allows you to "fine 
tune" where the email really goes.

A typical setup could be like this:

Site name in the GUI:	www.site.com
Web Server Alias:	site.com
Email Server Alias:	site.com
Example username:	joe

Provided you have the following (minimum!) DNS records ....

	www.site.com  	-- A Record --> 		<IP>
	site.com  	-- A Record --> 		<IP>
	www.site.com  	-- MX Record --> 		www.site.com
	site.com  	-- MX Record --> 		www.site.com

... the server will accept email for both joe (at mark) site.com and user (at mark) site.com and 
will deliver it to user "joe" on www.site.com.

-- 
With best regards,

Michael Stauber