Page 1 of 1

Treating multiple Domains as One

Posted: Tue May 30, 2006 10:24 am
by davidz
Our Scalix server has been up and running for about 2 weeks now and we love it. I have a small problem though. Because our old mail server (Linux/Sendmail) was not setup to treat multiple domains differently it's causing problems now. Let me give an example.

We have about 10 domains we use for our company. And with Scalix each one of those domains are "seperate". Example I can have user1@foo.com and user1@abc.com and user1@xyz.com. And they all get their respective emails. This is great, but on our old server it didn't matter what domain it got sent to. User1 would get mail from any of the above examples, so you could only have one user1 system wide.

My question is can I setup some (not all) of these domains to be sort of like aliases? So for example if I send an email to bob@abc.com or bob@123.abc.com or bob@xyz.abc.com bob always gets his email. The ones I need like this are all subdomains like abc.domain.com or 123.domain.com or xyz.domain.com. It needs to treat all these like one domain. On a few of the critical usernames I've added the subdomains manually to their user just so they will recieve their mail but I got about 150 users that need this feature.

Thanks!!

Posted: Tue May 30, 2006 10:56 am
by Valerion
I see 2 possible options here.

1) Write a script that will recurse through all your users and add the email addresses you need.

2) Use sendmail as incoming mail server, and use the generics table to rewrite the address.
I know it's possible, but I've never done that before. I would imagine it needs a combination of virtusertable and the userdatabase features (O'Reilly's Sendmail book 2nd ed, chapter 33.5 for userdatabase).

Posted: Wed May 31, 2006 1:28 pm
by Stephen
If the user is Bob Smith the command below will modify the account so that Bob will now receive messages to all three SMTP address. Each user can have multiple addresses. The Internet Address field is limited to 512 bytes, which is usually somewhere around 15 SMTP addresses depending on how long your domainname is. Also be sure you have each of the domains in the Scalix license or they will be rejected.

ommodu -o "Bob Smith" -m IA=bob@abc.com=bob@123.abc.com= bob@xyz.abc.com

Posted: Wed May 31, 2006 3:33 pm
by davidz
Thanks for the replies. As for the last suggestion, it won't work for my situation becuase we are using and external LDAP directory for all of our users. I can make the equivelant changes in my LDAP directory but I think I'm just going to force people to stop using the subdomain (user1@123.domain.com) and just use the main domain (user1@domain.com). We don't need the subdomain for anything and it doesn't resolve outside the internal network anyway. Thanks for the suggestions!