Page 1 of 1

Multiple domains in scalix & local delivery problem

Posted: Fri Dec 14, 2007 11:54 am
by Shaun
Hi there,

I have an issue at present that I'm hoping someone can help me with.

I have a scalix box (11.x community edition) which has a single mailnode. The server has 3 emails domains defined (a.com,b.com,c.com)

If I telnet into port 25 and send a test email to a user in domain a - that's fine. if I try and send a message to the same user, but using an address set up for them as user@b.com or user@c.com, it gets delivered locally to the unix mailbox, rather than through scalix.

My assumption, is that the rules that scalix uses through sendmail, check to see if the email domain is a scalix one (possibly by using an ldap mapper), and then routes it to the scalix mailer.

How does sendmail know which domains should be routed to the scalix mailer for delivery? Is this a sendmail problem, or is it a setting in scalix I've missed?

Thanks in advance.

Posted: Tue Dec 18, 2007 4:35 am
by Valerion
Does your mailboxes have all 3 addresses defined when you view the user in SAC? By default the Scalix SMTP relay listens to incoming mail and delivers it to all the local mailboxes before passing the remainder on to sendmail.

Sendmail can do LDAP lookups and pass mail back into Scalix, but only if that address is explicitly associated with a mailbox.

Posted: Tue Dec 18, 2007 4:39 pm
by dwerthmu
I'm having the same issue,

sendmail is delivering mail locally and not passing it off to scalix

scalix can send to its self

users where created with
opt/scalix/bin/omaddu -n "FirstName Lastname/mailnode/IA=username@center.tld" -l en_US -p --locked-password username

When I send an email to the server via an internet based webmail to username@mailnode.center.tld it goes to the users local sendmail folder and stays there.

Host is a rhel5 with licensed scalix 11.2, this worked before on a test machine same setup with 11.1.

thoughts?

Posted: Wed Dec 19, 2007 3:30 am
by Valerion
That's because the email address being sent to must exist exactly as it was sent to. This was the case since I started with Scalix, so I am not sure how you got it to work with 11.1.

You need to either add the second address to the user or rewrite the recipient address before Scalix gets it. Or add a .forward to the local mailbox.

Posted: Wed Dec 19, 2007 1:15 pm
by dwerthmu
created an alias email for the user and that works. so we are good.

when we create the accounts on the production machine we will create them like
sudo omaddu -n "Firstname Lastname/mailnode/IA=username@domain.tld=username@host.domain.tld" -l en_US -p --locked-password username

Posted: Thu Dec 20, 2007 3:42 am
by Valerion
The address that's named first is used for outgoing mail. I suggest you swap the two around, but it's your choice.