Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

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


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

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

Rep: Reputation: 190Reputation: 190
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.
no_default_msa	Don't generate the default MSA daemon, i.e.,
		To define a MSA daemon with other parameters, use this
		FEATURE and introduce new settings via DAEMON_OPTIONS().
ClientPortOptions and DaemonPortOptions are special cases since multiple
clients/daemons can be defined.  This can be done via


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
	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
Registered: Mar 2001
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks farslayer!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:02 PM.

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