Using Scalix as an SMTP Relay

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

dschol
Posts: 16
Joined: Mon Jan 23, 2006 5:05 pm

Using Scalix as an SMTP Relay

Postby dschol » Mon Jan 23, 2006 5:09 pm

I'm desperately trying to figure out how to do the following ASAP:

I have Scalix installed on host X. I have another email server installed on host Y. I need Y to be able to use X as an smtp relay (e.g. when host Y needs to send an email, it needs to connect to the smtp server on host X).

Is there a way to make this happen. I've been playing around with the smtpd.cfg file but to no avail.

Thanks in advance for the help.

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

Postby ScalixSupport » Mon Jan 23, 2006 5:40 pm

Can you give some more details on this ? What have you tried so far ?

Given that you are modifying the smtpd.cfg on host X, does this mean that you have host Y connecting to host X already ?

Cheers

Dave

dschol
Posts: 16
Joined: Mon Jan 23, 2006 5:05 pm

Postby dschol » Mon Jan 23, 2006 6:40 pm

I have tried adding the following lines (in various combintations) to the /var/opt/scalix/sys/smtpd.cfg:

RELAY accept hostY
SUBMIT accept hostY
ORIGINATOR accept *@hostYdomain

Whenever I make a change is restart the smtpd (using the omoff and omon commands). I test it out by telnetting to hostX from hostY on port 25 and then doing the following:

220 hostX ESMTP Scalix SMTP Relay 9.4.2.4; Mon, 23 Jan 2006 14:37:23 -0800 (PST)
mail from:<name@hostYdomain>
250 name@hostYdomain... Sender ok
rcpt to:<some@emailaddress>
550 Denied due to spam list

I have Scalix running on FC4. I've also tried playing around with the access db in the sendmail config (is Scalix piggybacking on sendmail?), but that hasn't worked either.

Thanks for the quick response.


ScalixSupport wrote:Can you give some more details on this ? What have you tried so far ?

Given that you are modifying the smtpd.cfg on host X, does this mean that you have host Y connecting to host X already ?

Cheers

Dave

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

Postby ScalixSupport » Mon Jan 23, 2006 6:44 pm

I see that you've edited out the HELO line from the SMTP conversation ( probably for security ).

Can you make sure that hostX is capable of resolving hostY as a name ? If it isn't, you either have to fix up DNS or add the IP address of hostY to the smtpd.cfg file.

The HELO line reply will show you what connecting IP address the SMTP Relay thinks you are using.

Cheers

Dave

dschol
Posts: 16
Joined: Mon Jan 23, 2006 5:05 pm

Postby dschol » Tue Jan 24, 2006 2:08 am

I have verified that hostX can resolve hostY. I also added:

RELAY accept hostXipaddress

to smtpd.cfg and it's still not working. I don't see anything informative in the event log when I to the SMTPD Relay node in the SAC. Would there be some information logged somewhere else?

ScalixSupport wrote:I see that you've edited out the HELO line from the SMTP conversation ( probably for security ).

Can you make sure that hostX is capable of resolving hostY as a name ? If it isn't, you either have to fix up DNS or add the IP address of hostY to the smtpd.cfg file.

The HELO line reply will show you what connecting IP address the SMTP Relay thinks you are using.

Cheers

Dave

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

Postby ScalixSupport » Tue Jan 24, 2006 6:23 am

dschol wrote:I have verified that hostX can resolve hostY. I also added:

RELAY accept hostXipaddress

to smtpd.cfg and it's still not working. I don't see anything informative in the event log when I to the SMTPD Relay node in the SAC. Would there be some information logged somewhere else?

ScalixSupport wrote:I see that you've edited out the HELO line from the SMTP conversation ( probably for security ).

Can you make sure that hostX is capable of resolving hostY as a name ? If it isn't, you either have to fix up DNS or add the IP address of hostY to the smtpd.cfg file.

The HELO line reply will show you what connecting IP address the SMTP Relay thinks you are using.

Cheers

Dave

Hello,

please post your complete smtpd.cfg.

Thanks,

Sascha.

dschol
Posts: 16
Joined: Mon Jan 23, 2006 5:05 pm

Postby dschol » Tue Jan 24, 2006 5:36 pm

Here is what my smtpd.cfg looks like minus the comments:

RELAY accept 127.0.0.1
RELAY accept hostYipaddress
RELAY accept hostYfullyQuailifiedDomainName
RELAY Log_Reject ALL

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*

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

Postby ScalixSupport » Mon Jan 30, 2006 6:38 am

dschol wrote:Here is what my smtpd.cfg looks like minus the comments:

RELAY accept 127.0.0.1
RELAY accept hostYipaddress
RELAY accept hostYfullyQuailifiedDomainName
RELAY Log_Reject ALL

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*


Looks good to me. Please verify the connecting IP address. Maybe ssh into HostX and tail the messages log for the IP. Compare the two to make sure they match. Failing that, omoff -d0 smtpd;omon smtpd and retry.

Cheers,

Sascha.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 43 guests