LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-05-2007, 06:44 PM   #1
aimstr8
Member
 
Registered: Mar 2001
Posts: 40

Rep: Reputation: 15
new port number for the SMTP server


Hi,

My ISP gave me a new port number for the SMTP server configuration.

Where do I change the port number for SMTP??

Using Red Hat 6.0 & sendmail

TIA
 
Old 07-06-2007, 12:52 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
SMTP runs on a specific port.. it's odd that the port number would change for that standard protocol.



Apparently you use the DAEMON_OPTIONmacro to change the listening port in Sendmail.

http://www.sendmail.org/doc/sendmail-current/cf/README
Code:
no_default_msa	Don't generate the default MSA daemon, i.e.,
		DAEMON_OPTIONS(`Port=587,Name=MSA,M=E')
		To define a MSA daemon with other parameters, use this
		FEATURE and introduce new settings via DAEMON_OPTIONS().
Code:
ClientPortOptions and DaemonPortOptions are special cases since multiple
clients/daemons can be defined.  This can be done via

	CLIENT_OPTIONS(`field1=value1,field2=value2,...')
	DAEMON_OPTIONS(`field1=value1,field2=value2,...')

Note that multiple CLIENT_OPTIONS() commands (and therefore multiple
ClientPortOptions settings) are allowed in order to give settings for each
protocol family (e.g., one for Family=inet and one for Family=inet6).  A
restriction placed on one family only affects outgoing connections on that
particular family.

If DAEMON_OPTIONS is not used, then the default is

	DAEMON_OPTIONS(`Port=smtp, Name=MTA')
	DAEMON_OPTIONS(`Port=587, Name=MSA, M=E')

If you use one DAEMON_OPTIONS macro, it will alter the parameters
of the first of these.  The second will still be defaulted; it
represents a "Message Submission Agent" (MSA) as defined by RFC
2476 (see below).  To turn off the default definition for the MSA,
use FEATURE(`no_default_msa') (see also FEATURES).  If you use
additional DAEMON_OPTIONS macros, they will add additional daemons.

Example 1:  To change the port for the SMTP listener, while
still using the MSA default, use
	DAEMON_OPTIONS(`Port=925, Name=MTA')

Example 2:  To change the port for the MSA daemon, while still
using the default SMTP port, use
	FEATURE(`no_default_msa')
	DAEMON_OPTIONS(`Name=MTA')
	DAEMON_OPTIONS(`Port=987, Name=MSA, M=E')

Note that if the first of those DAEMON_OPTIONS lines were omitted, then
there would be no listener on the standard SMTP port.

Last edited by farslayer; 07-06-2007 at 01:14 PM.
 
Old 07-06-2007, 11:26 PM   #3
aimstr8
Member
 
Registered: Mar 2001
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks farslayer!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a free smtp/pop server, but a win32 port. hunterhunter Linux - Software 6 03-06-2006 09:34 AM
Network Server List from port number C/C++ clinux_rulz Programming 5 12-18-2005 09:57 AM
smtp server can't get port 25 Charles Daniel Linux - Security 1 10-26-2004 07:27 AM
Port 25 - smtp on Mail Server etc Linux - Newbie 7 09-02-2003 01:59 AM
Can port 25 be opened without a SMTP server installed? greenranger Linux - Networking 2 04-05-2003 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration