Page 1 of 1

Howto set up a Internet Mail Gateway?

Posted: Tue Aug 30, 2005 8:49 am
by root66
Hello,

we need to deliver our outgoing E-Mails to a internet Mail Gateway in our data center. Can anyone tell me which is the best method for doing this, since I didn't get much wiser after reading the administration guide? We need to setup a primary and a backup email server.

thanx,

root66

Posted: Wed Aug 31, 2005 6:45 am
by ScalixSupport
If you mean you have multiple Scalix servers and you want to route all Internet Mail to the Scalix server in the data centre from where it goes out to the internet, then this is possible.

By default, when you install scalix, the internet mail gateway is setup with a mailnode of "internet", together with a TNEF variant "internet,tnef".

You can see these routes either by running:

omshowux

or

omshowrt -q unix

On the spoke machine, all you need to do is "re-direct" the "internet" route to the Scalix server in the data centre, and provided the Internet Mail gateway on the data centre server is configured with the mailnode "internet" the message will go out (or at least be given to sendmail for onward processing).

To do this, run:

omdelrt -m "internet"

this deletes the existing route.

omaddrt -m "internet" -q smintfc -i scalix@fqdn.of.data.centre.host

when a message is sent to an internet address on this server, the message will now route to the data centre machine for onward processing.

This is a little like the smart host ability of sendmail.

You should repeat the commands for the mailnode "internet,tnef" if required.

I don't understand the last part of your question, in terms of primary and backup email server. I'f I've mis-read your requirement please re-post. If you want primary and backup routes then I think you could achieve this using MX records such that if one server is down the secondary MX host will be tried.

Hope that helps.
Cheers,
JG

Posted: Wed Aug 31, 2005 8:05 am
by root66
Sorry, but I meant that we have a single Scalix Server and we need to route all our outgoing E-Mail through a SMTP MTA which is located in our data-center, to reach the Internet. Thanks for your long post anyway :)

I thought of configuring sendmail to deliver the mails to a "Smart Host", but that didn't work out so far. Is there any better ideas or hints?

With primary and backup-Server I meant that the data-center has two different MTAs which we can use, in case one of both is not working.

Posted: Wed Aug 31, 2005 11:49 am
by ls-al
root66 wrote:I thought of configuring sendmail to deliver the mails to a "Smart Host", but that didn't work out so far.

Your thoughts were correct.
See this:
http://portal.knowledgebase.net/display ... 10&n=1&s=1

If you still see some errors please post them here.

To have a fallback you can either use DNS with MX-preferences or simply put this:
DSprimarymx:backupmx
in your sendmail.cf

Regards,
Dirk