[reply started before Stefano's comment]
The easy solution would be to put a "meta refresh" in the index.html file on your sme server that redirects from mysite.com to
www.mysite.com:
<html>
<head>
<title>Redirect</title>
<META http-equiv="refresh" content="0;URL=http://www.mysite.com">
</head>
<body bgcolor="#ffffff">
<center>You are being redirected to <a href="http://www.mysite.com">http://www.mysite.com</a>
</center>
</body>
</html>
or use .htaccess on your SME to do a redirect to
www.mysite.com:
a) enable AllowOverride for the ibay serving mysite.com locally, eg:
db accounts setprop Primary AllowOverride All
signal-event ibay-modify Primary
b) create .htaccess in the ibay html folder with the redirect code, eg:
cd /home/e-smith/files/ibays/Primary/html
echo '# This allows you to redirect your entire website to any other domain
Redirect 301 / http://www.mysite.com/' > .htaccess
chown www .htaccess
The hard way would involve lots of variables on your SME:
- don't create a local domain for mysite.com (would probably require that you create an 'alias' for each email user, if email is hosted on your SME server).
or
- customize the templates for tinydns (/etc/e-smith/templates/var/service/tinydns/root/data) to not create the default "A" record for mysite.com (you might need to create an "A" record with the external IP, or you might need to create a CNAME record...)
or
- create custom proxypass templates to make your SME server serve content from
www.mysite.com when accessed at mysite.com (I don't think the default proxypass options built in to SME will work for the configuration you've described)