SMTP Relay or email forward to intermediate server

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

kazop

SMTP Relay or email forward to intermediate server

Postby kazop » Tue Nov 15, 2005 12:50 pm

Hello,

I will appreciated any help provided in this matter,

I need to reroute all outgoing email from a scalix server to a diferent server and before it goes out to the internet. basically from server A (scalix) to B(sendmail) and then to the internet.

relay has been set up and functional in server B (sendmail) i have tested this with other email servers
but i have not been able to set up relay or fowarding in the scalix server Server A
i have tried configuring the smtpd.cfg file but it seems scalix does not recognize the changes.

i first tought that this could be accomplished with the following entry in the smtpd.cfg file:
DEFAULT_SMTP=mail.aga-ahsa.com 25
It did not work, and email is still going out straight to the internet without passing to the intermediate server (server B)

Please let me know what files i need to modify in order to accomplish this. or if i am doing this incorrectly.

As it is now scalix works and email goes out to the internet but i need to reroute traffic to server B before it goes out to the internet.

Thanks


###############################################################################
# SMTP Relay Configuration
# ########################
#
# For details please see Scalix Overview - Security
#
###############################################################################

###############################################################################
# Relay Configuration
# ###################
#
# EXTENSIONS These extensions will be advertised by the EHLO reply
# DOMAIN_NAME Local host FQDN
# LOCAL_NAMES Local aliases of DOMAIN_NAME
#DEFAULT_SMTP Either the name of a program (which must begin with
# MAX_HOP_COUNT If the number of Received: header lines in a message sent to
# GREETING This is the text after the domain on the connection
# LISTEN_PORT Alternative port to listen to, default is "smtp" port
###############################################################################
DOMAIN_NAME=gbatest.com
DEFAULT_SMTP=mail.aga-ahsa.com 25
EXTENSIONS=AUTH,DSN,8BITMIME

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

Postby ScalixSupport » Tue Nov 15, 2005 1:15 pm

What you're talking about is a smarthost in sendmail. This is a host that all non-local mail is sent to.

To configure this, edit /etc/mail/sendmail.cf and replace the line:

Code: Select all

DS
with

Code: Select all

DSname.of.server.com


You will need to restart sendmail for this to be picked up.

Cheers

Dave

caribk
Posts: 44
Joined: Mon Oct 31, 2005 8:09 pm
Location: Lexington,KY
Contact:

Postby caribk » Tue Nov 15, 2005 1:19 pm

i'm trying to accomplish the same thing, although with postfix instead of sendmail (shouldn't matter). the following thread discussed doing this with multiple scalix servers:

http://www.scalix.com/community/viewtopic.php?t=533

but, like you, i want to do this with just any MTA.

is the process the same or do you need to do anything different?
are there differences between CE and EE wrt. to "smarthost" forwarding "so-to-speak", when only using a single scalix server and a non-Scalix MTA?

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

Postby ScalixSupport » Tue Nov 15, 2005 1:23 pm

Scalix doesn't support postfix as the MTA for internet messages so we'll be unable to assist you there.

With regards the smart host, as this is a sendmail configuration, it doesn't matter whether you are using CE or EE. However...the solution that is described in the post you referenced relies on the Scalix to Scalix transport (SMINTFC) which is not provided in CE.

So, if you are using CE, the smarthost option is the best.

Cheers

Dave

caribk
Posts: 44
Joined: Mon Oct 31, 2005 8:09 pm
Location: Lexington,KY
Contact:

Postby caribk » Tue Nov 15, 2005 1:29 pm

i apologize if i wasn't clear in my previous post, but like kazop i was talking about having a server A (scalix) and server B (sendmail/qmnail/postifx/whatever MTA). so, the non-support issue shouldn't be a problem, since all that i (and i think kazop as well) were asking was how to get the scalix box, that of course uses sendmail, to forward to smarthost server B.

from your reply Dave, I take that this is a sendmail only configuration that is independent from Scalix, or?
thus, the Scalix relay configuration in smtpd.cfg does *not* need to be configured for smarthost *outgoing" mail relaying?

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

Postby ScalixSupport » Tue Nov 15, 2005 1:35 pm

Correct. This is a sendmail configuration.

Cheers

Dave

kazop

Thanks so much for your help

Postby kazop » Tue Nov 15, 2005 3:16 pm

This solutions really does what i needed.


Have a Great Day!!!!!!!!!!!


Kevin Azofeifa


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 19 guests