easy smtp question

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

easy smtp question

Postby rnelson » Fri Mar 03, 2006 11:12 am

running scalix 9.4....is it possible to run multiple smtp ports? I would like to use the standard 25 and then a different one at the same time. Is this possible? If not, how do you work around ISP that will not permit my clients to use a relay smtp server?

Thanks

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

Postby ScalixSupport » Fri Mar 03, 2006 11:14 am

Can you explain a little more about that ? What is the other port for ?

Cheers

Dave

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

Postby rnelson » Fri Mar 03, 2006 11:18 am

I have employees that are outside the network and if they have their OE setup for port 25 the ISP they are using blocks it because they assume they are trying to spam off another server. With a different e-mail package we used we were able to use port 25 and port 325. People that could use port 25 would use it. People that had ISPs that blocked port 25 would use port 325.

Hope I'm clear...if not...tell me and I'll try again.

Thanks

mephisto

Postby mephisto » Fri Mar 03, 2006 11:34 am

You could use stunnel for that - this would be encrypted smtp, but that would be even better.

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

Postby ScalixSupport » Fri Mar 03, 2006 11:36 am

Yes, there is a way to do this.

In the SMTP Relay configuration file /var/opt/scalix/sys/smtpd.cfg, add the line:

LISTEN=hostname:port,hostname:port2

and restart the relay.

Cheers

Dave

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

Postby ScalixSupport » Fri Mar 03, 2006 11:38 am

If you are looking for Secure SMTP, go to our knowledgebase at http://www.scalix.com/support/knowledgebase.html and click the "Solutions" tab. Enter the search "Secure SMTP" and the top document will give you the details.

Cheers

Dave

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

Postby rnelson » Fri Mar 03, 2006 11:54 am

Thanks Dave .... I just want to make sure I'm clear on the command.

My smptd.cfg file currently looks like

AUTH_SUCCESS accept ALL
RELAY accept 127.0.0.1
RELAY accept ip address
RELAY accept mail.domainname
RELAY accept mail.domainname
RELAY Log_Reject ALL

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


Now I should add the line before AUTH_SUCCESS that reads....

LISTEN_PORT=domainname:25;domainname:325

Am I correct?

Thanks
Last edited by rnelson on Fri Mar 03, 2006 3:07 pm, edited 2 times in total.

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

Postby ScalixSupport » Fri Mar 03, 2006 12:00 pm

No, you want to add:

Code: Select all

LISTEN=host.name:25,host.name:325


It doesn't need to be in any specific place in the configuration file.

We made some changes in the SMTP Relay to allow for listening on multiple ports but, as the anti-spam configuration remains the same, the application of those changes has small value in a single instance environment. We will be fully documenting it for the next release.

The LISTEN_PORT value ( as you would expect) just changes the default port that the Relay listens on.

Cheers

Dave.

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

Postby rnelson » Fri Mar 03, 2006 3:05 pm

Dave - made the changes, but now a new problem pops up. After adding

LISTEN=host.name:25,host.name:325

and restarting the smtpd ... when I send a message via webmail. I get an error

could not reconnect to smtp server

Is there something that I should change in the partner.xml also?

Thanks!

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

Postby ScalixSupport » Fri Mar 03, 2006 4:00 pm

In swa.properties ( which is what partner.xml is now called ), check that the smtpServer setting is the correct name that you set in the smtpd.cfg file.

You can also check that the ports are being listened on by running the commands:

Code: Select all

lsof -i :25
lsof -i :325


This should show the process ommapsmtp.

If nothing is showing as listening but omstat -a shows that the SMTP Relay service is started, check smtpd.cfg and make sure you have specifiied the correct host name.

Cheers

Dave

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

Postby rnelson » Mon Mar 06, 2006 12:56 am

Dave - thanks for the help so far....but still having problems

Right now I'm just listening on port 25 . Running lsof -i :25 command I get the message
(of course I'm replacing my real hostname with the word hostname)

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 3522 root 4u IPv4 1080801 TCP hostname:smtp (LISTEN)
sendmail 5582 root 4u IPv4 17511 TCP localhost:smtp (LISTEN)


When I run omstat -a I get the information returned:

PC Monitor Started NON-STOP 0
Directory Relay Server Started 02.27.06
Notification Server Started 02.27.06 0
Shared memory daemon Started NON-STOP
Notification Monitor Started NON-STOP
Session Monitor Started NON-STOP
Container Access Monitor Started NON-STOP
Item Structure Server Stopped
Database Monitor Started 02.27.06
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 02.27.06
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 02.27.06
SMTP Relay Started 23:46:45
Mime Browser Controller Started 02.27.06


When I add the line
LISTEN=hostname:25,hostname:325

(of course I'm replacing my real hostname with the word hostname)
in my smtpd.cfg file and then restart the smtpd and run lsof -i :25. I get the message
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 5582 root 4u IPv4 17511 TCP localhost:smtp (LISTEN)


and when I run lsof -i :325 I get nothing returned.

Running omstat -a returns
PC Monitor Started NON-STOP 0
Directory Relay Server Started 02.27.06
Notification Server Started 02.27.06 0
Shared memory daemon Started NON-STOP
Notification Monitor Started NON-STOP
Session Monitor Started NON-STOP
Container Access Monitor Started NON-STOP
Item Structure Server Stopped
Database Monitor Started 02.27.06
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 02.27.06
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 02.27.06
SMTP Relay Aborted 23:51:33
Mime Browser Controller Started 02.27.06

I see from the this command that the smtp is marked Aborted. I'm not sure what I"m missing. Just as an added note....this is version 9.4

All of your help thus far is GREATLY appreciated. Thanks again.

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

Postby ScalixSupport » Mon Mar 06, 2006 1:37 am

D'oh ! 9.4 doesn't have the LISTEN= option available. Sorry, I should have paid attention to that one :-S

That sounds like your /etc/hosts file contains something other than localhost.localdomain and localhost for 127.0.0.1.

You should rectify this first.

Cheers

Dave

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

Postby rnelson » Mon Mar 06, 2006 9:44 am

dave - just to clarify

I'm working fine on port 25. I want to listen on 2 ports though.

Do I understand this is not possible unless I upgrade to 10?

Thanks

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

Postby ScalixSupport » Mon Mar 06, 2006 5:01 pm

That is correct.

Cheers

Dave


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 16 guests

cron