Relay all mail through gateway

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

joemfrost
Posts: 11
Joined: Thu Jun 01, 2006 12:28 pm

Relay all mail through gateway

Postby joemfrost » Thu Jun 01, 2006 12:30 pm

Hello-

I have a mail gateway already in production doing antivirus/spam filtering. I have scalix setup now and want to continue using my gateway and just have scalix relay all mail to my existing gateway. What config file would i use to relay all outgoing mail through my existing gateway?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Jun 01, 2006 9:19 pm

Hi Joe,

You can edit your sendmail.mc file and change:

Code: Select all

dnl define(`SMART_HOST',`smtp.your.provider')


to be:

Code: Select all

define(`SMART_HOST',`existinggw.yourdomain.com')dnl


then rebuild your sendmail.cf file. If you do this, you need to run omsendin to get the Scalix routines put back in. Or you can just edit your sendmail.cf file and change:

Code: Select all

# "Smart" relay host (may be null)
DS


to be:

Code: Select all

# "Smart" relay host (may be null)
DSexistinggw.yourdomain.com


and then restart sendmail.

Thanks,
Rachel

joemfrost
Posts: 11
Joined: Thu Jun 01, 2006 12:28 pm

Postby joemfrost » Thu Jun 01, 2006 10:35 pm

Didnt realize scalix was just using sendmail for the MTA. Super easy change. Thanks!

vlaurenz
Posts: 123
Joined: Wed May 31, 2006 3:41 pm

Postby vlaurenz » Tue Jun 13, 2006 5:13 pm

But this doesn't work if the user you are trying to send mail to exists in the Scalix directory. I'm trying to do the same thing to gear up for a tiered cut over, and I need every piece of mail that is sent from the Scalix server to go out to my mail relay first.

What else needs to be done here?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Jun 13, 2006 6:55 pm

No, of course that wouldn't work if the users exist in the Scalix directory as Scalix would attempt to deliver to their Scalix mailbox. In that case, you would need to create redirect rules for each of the users that haven't migrated over yet. You can use sxaa (see the admin_resource_kit subdirectory in the Scalix tarball) to create these redirect rules.

Thanks,
Rachel

tdelov
Posts: 14
Joined: Tue Dec 12, 2006 5:32 pm

Postby tdelov » Wed Dec 13, 2006 12:38 am

Hi,
This thread may be a bit old, but I have the same issue.
However I have lots of users and I was hoping that there was a global config file that could be edited to do the same as the smart host relay for local users?

btw. Im useing Scalix 11

Thanks
Tony D

kanderson

Postby kanderson » Wed Dec 13, 2006 12:51 am

Would fetchmail on the non-Scalix server work? That would allow you to pull the message off of Scalix, and deliver it to the old server. As people are migrated, just remove them from the fetchmailrc file.

Kev.

tdelov
Posts: 14
Joined: Tue Dec 12, 2006 5:32 pm

Postby tdelov » Wed Dec 13, 2006 1:23 am

No, that wouldn't be something I would be looking at for a production server.
Cant Scalix be configured in a similar same way that sendmail has been configured to use a smart host?

kanderson

Postby kanderson » Wed Dec 13, 2006 8:25 pm

You aren't sending mail anywhere though. Sendmail wouldn't deal with it any differently.

A smarthost is like specifying a route. It's the next step to find where a message should eventually be delivered. In the case you're talking about, the message should be delivered to the machine it's already on, therefore, it just gets delivered.

This is exactly the same as trying to traceroute localhost (or 127.0.0.1) through some gateway.

Even if you specified it, it wouldn't be used because there is no reason to use it. The message is already at the the place it needs to arrive for delivery.


I've used fetchmail before on production servers, and it works extremely well.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 19 guests

cron