Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: shawnbishop on July 18, 2007, 07:47:06 AM

Title: Relay server for multiple sites with one domain
Post by: shawnbishop on July 18, 2007, 07:47:06 AM
Good Day

I am looking to implement SME server as a relay server for a single domain, which is easy enough....

but I have the following problem, the domain that the server will be relaying for , say DOMAIN.com will send mail onto 4 different servers located all over the world.

I want to implement it as such...I will have all the users on the relay server, that is over 500 employees, when mail comes in for

employee1@domain.com it must go to SERVER-SOUTHAFRICA
employee2@domain.com must go to SERVER-PORTUGAL
employee3@domain.com must go to SERVER-DUBAI
employee4@domain.com must go to SERVER-SINGAPORE

and so forth, so just to reiterate, all mail will come to the relay server, the relay server will see it is mail for a certain user and then send that mail onto a specific IP address...

Can this be done, and how??

Thanks Shawn
Title: Relay server for multiple sites with one domain
Post by: stephen noble on July 19, 2007, 01:35:28 AM
what about
forward mail for user1 to user1@sa.domain.com

problem with this is getting mail out from sa.domain.com to the other *.domain.com servers, so don't make the primary domain of those servers domain.com
Title: Relay server for multiple sites with one domain
Post by: shawnbishop on July 19, 2007, 07:42:25 AM
I thought of that....but the directors want the email address to stay @domain.com for all the users, no matter where they are in the world, so if they move offices...as is common, we dont have to change anything, except the IP address that users email is sent to...

What I need is something like a forward, but not to an email address, but to a IP address...
Title: Relay server for multiple sites with one domain
Post by: stephen noble on July 21, 2007, 07:13:11 AM
> want the email address to stay @domain.com

it will, all mail to @domain.com goes through the main server
@sa.domain.com is just a dns device to redirect mail

you can use the 'hostname and addresses' panel to manage subdomains
if you handle dns here the subdomains aren't visible externally
Title: Relay server for multiple sites with one domain
Post by: shawnbishop on July 22, 2007, 10:26:59 AM
Ok..

I see where you are going with this...

So I create a primary domain on the rel;ay server, then add 3 more domains...eg

pt.domain.com
za.domain.com
sg.domain.com
ae.domain.com

I then add the server IP under the hosts and domains part of the SME Administrator...so far I understand...but then comes a dilemma.

I create a user...say johnza, I create a pseudonym for this account being johnza@domain.com...Now how do I get this to go to the za.domain.com server??, THe forward option under the user requires an email address....

Is this correct or have I lost the plot along the way here some where??

Cheers
Title: Relay server for multiple sites with one domain
Post by: stephen noble on July 22, 2007, 12:19:16 PM
forward mail for user1@domain.com to user1@sa.domain.com
do this in the useraccounts panel
> user user1
> forward mail
> user1@sa.domain.com

make a user user1 on the sa server

:: THe forward option under the user requires an email address....

hostnames has created local valid subdomain of sa.domain.com
this is where the email address comes from

to help track 500 users you may want to consider
http://www.dungog.net/sme/email.php