Page 1 of 1
external mail routing.
Posted: Fri Nov 25, 2005 3:29 am
by shayne
Using an external mail server.
Ok. Heres the score. I'm using the community version (25ent cals! w00t) for a small lil struggling student organisation. We have an existing all-in-one server
guild.murdoch.edu.au which is just a vanila exim/imap boxen which is more than functional, and a bit boring.
mails to and from our small staff and all the students are <name>@guild.murdoch.edu.au
What we'd like to do is to set up a second server guildmail.murdoch.edu.au running the scalix comunity version, while retaining the guild.murdoch.edu.au email adress.
To do the migration bit-at-a-time, I'd like to be able to simply put a .forward, or perhaps some funky exim clause, in to push certain email addresses to the second server, AND, when the scalix server wants to send a mail, forward ALL the mail to the guild server to send.
The question is, how would I get the the scalix server to do this? Im pretty sure Im around getting the exim server to push to the scalix box, but not the other way around.
Oh, and another thing, is it possible to get the scalix box to forward mails to the exim box, if the mailbox isnt found in the local collection?
Cheers,
Shayne.
Re: external mail routing.
Posted: Fri Nov 25, 2005 7:11 am
by ScalixSupport
shayne wrote:Using an external mail server.
Ok. Heres the score. I'm using the community version (25ent cals! w00t) for a small lil struggling student organisation. We have an existing all-in-one server
guild.murdoch.edu.au which is just a vanila exim/imap boxen which is more than functional, and a bit boring.
mails to and from our small staff and all the students are <name>@guild.murdoch.edu.au
What we'd like to do is to set up a second server guildmail.murdoch.edu.au running the scalix comunity version, while retaining the guild.murdoch.edu.au email adress.
To do the migration bit-at-a-time, I'd like to be able to simply put a .forward, or perhaps some funky exim clause, in to push certain email addresses to the second server, AND, when the scalix server wants to send a mail, forward ALL the mail to the guild server to send.
The question is, how would I get the the scalix server to do this? Im pretty sure Im around getting the exim server to push to the scalix box, but not the other way around.
Oh, and another thing, is it possible to get the scalix box to forward mails to the exim box, if the mailbox isnt found in the local collection?
Cheers,
Shayne.
Hi,
this is fairly easy. For Scalix to relay all outbound mail to a specific host you need to set this relay host in sendmail.cf. Search this forum on how to do this.
For the migration, simply set a .forward for the users mail on the exim box with the new domain, e.g.
user@guildmail.murdoch.edu.au.
On the Scalix box, do not create the user until they are ready to use the system.
user@guildmail.murdoch.edu.au will receive a message from
user@guild.murdoch.edu.au and thus will be able to reply to messages.
Cheers,
Sascha.
Posted: Mon Nov 28, 2005 2:36 am
by shayne
Ok, but is it possible for the scalix box to be sending them as
xxxxx@guild.murdoch.edu.au (relayed via the exim box), while the scalix server still understands that if the user isnt local, its on the other box?
Posted: Mon Nov 28, 2005 7:54 am
by ScalixSupport
shayne wrote:Ok, but is it possible for the scalix box to be sending them as
xxxxx@guild.murdoch.edu.au (relayed via the exim box), while the scalix server still understands that if the user isnt local, its on the other box?
yes.
Cheers,
Sascha.
Posted: Tue Nov 29, 2005 3:17 am
by shayne
Ok.
Im now getting a problem with "too many hops".
What I *think* is happening is the exim router is sending it to the scalix machine, and sendmail is looking at it and going "uh-huh. wrong machine" and forwarding it back, causing a mail loop.
Now. Ive added to accept guild.murdoch.etc into scalix, but there doesnt seem to be a reference in sendmail.
Since the sendmail config looks positively like line noise, any idea on how to get sendmail to handle the guild.murdoch.etc domain and deliver it locally?
Posted: Tue Nov 29, 2005 4:18 am
by Valerion
You can add guild.murdoch.etc to /etc/mail/local-host-names and see if that solves the issue for you.
It will then deliver all mail to
user@guild.murdoch.etc locally to this machine.
Posted: Tue Nov 29, 2005 4:21 am
by Valerion
Valerion wrote:You can add guild.murdoch.etc to /etc/mail/local-host-names and see if that solves the issue for you.
It will then deliver all mail to
user@guild.murdoch.etc locally to this machine.
Of course, I forgot to mention, if there is no other delivery method on this machine (eg. Scalix), it will attempt to deliver to a local UNIX user, etiher rewitten as indicated by the alias file or virtusertable.db file, or to a local user named "user" (if the address was "user@guild.murdoch.etc"). If there is no match, it will return a delivery failure.
Posted: Tue Nov 29, 2005 5:15 am
by ScalixSupport
shayne wrote:Ok.
Im now getting a problem with "too many hops".
What I *think* is happening is the exim router is sending it to the scalix machine, and sendmail is looking at it and going "uh-huh. wrong machine" and forwarding it back, causing a mail loop.
Now. Ive added to accept guild.murdoch.etc into scalix, but there doesnt seem to be a reference in sendmail.
Since the sendmail config looks positively like line noise, any idea on how to get sendmail to handle the guild.murdoch.etc domain and deliver it locally?
Please post some relevant excerpts from the logfile so we can look at it. Is this a local routing loop or does it bounce back and forth between the two servers?
Cheers,
Sascha.