Page 1 of 1

Accept mail _to_ all domains...

Posted: Wed Nov 29, 2006 9:54 pm
by dennisadvani
Hi Guys,

We have a ridiculous number of domains that we want to receive mail on (Over 20). Our current mail server accepts mail for a user on any of these domains: eg. user1@domain1.com, user1@domain2.com etc etc and it works great. Can we do this with Scalix? From all my testing, you must add aliases for every single domain for each scalix user and its a pain and unpractical. Is there any way round this?

I've already searched the forums and the domain field to add additional domains is apparently limited to 512 bytes or roughly 15 domains? There's also some talk of a address resolution table but I wouldn't even know where to begin, we're this close to using scalix live apart from this annoying issue.

Any help would be greatly appreciated!!
Thanks,
Dennis.

Posted: Thu Nov 30, 2006 12:58 pm
by kanderson
Scaix doesn't care about the domain.

When a message is recieved, it is compared against Scalix's list of known users. If the address exists, the message will be delivered. If it doesn't exist, then scalix will pass the message to sendmail to be relayed (assuming relaying is allowed for that host).

Posted: Mon Dec 04, 2006 9:12 am
by dennisadvani
kanderson wrote:Scaix doesn't care about the domain.

When a message is recieved, it is compared against Scalix's list of known users. If the address exists, the message will be delivered. If it doesn't exist, then scalix will pass the message to sendmail to be relayed (assuming relaying is allowed for that host).


I understand that, but it matches the entire address including the username and domain does it not? Our current mail server only matches the username but will accept the message for any domain we have. I only need to create one user on our current mail server and any domain in its domain list will be accepted for that user. In scalix, if I create a user called dennis@domain1.com and someone sends me an email to dennis@domain2.com. I will not receive it... is there any way round this since we have so many domains to track? I just want to create one user ie "dennis" and receive emails on dennis@domain1.com all the way through to dennis@domain32.com.

Posted: Mon Dec 04, 2006 10:21 am
by Valerion
The easiest way to achieve this is to use a frontend that rewrites the addresses. I have used that approach at a client that was changing email domains due to a merger.

In short there's a relay server that does spam and virus filtering, as well as rejecting mail that are not real addresses (it does a lookup to my Scalix server and keeps a cache of addresses). In addiition, all mails to domain1.com and domain2.com is rewritten to domain.com before the mail is passed on to Scalix. There I just need to define a single address for each user, then.

The relay product doing this is commercial, but I think you can achieve the same results using sendmail or postfix on a seperate machine. Of course, you can also use the sendmail on the Scalix machine to do this, but it is going to be a bit more tricky to configure.

Posted: Mon Dec 04, 2006 1:39 pm
by dkelly
If you have a finite set of domains that you want to receive mail on, you can edit /var/opt/scalix/sys/smtpd.cfg ( or /var/opt/scalix/nn/s/sys/smtpd.cfg if you are using Scalix 11) and add the lines

Code: Select all

DOMAIN_NAME=primary.domain
LOCAL_NAMES=alias1.domain,alias2.domain...


Stop and restart the SMTP Relay and you will be able to receive mail on all those domains.

One gotcha for Scalix 11 is that you also need to add the domains to /etc/mail/local-host-names if you want to use the SMTPFILTER=true SpamAssassin integration.

Cheers

Dave