Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > What port does sendmail listen to?

What port does sendmail listen to?
Thread Tools
DominikHoffmann
Mac Enthusiast
Join Date: Feb 2001
Location: Leesburg, Virginia
Status: Offline
Reply With Quote
Feb 23, 2002, 02:34 AM
 
I am wondering on what port email is coming into sendmail.
     
ranga
Dedicated MacNNer
Join Date: Sep 2001
Location: San Jose CA
Status: Offline
Reply With Quote
Feb 23, 2002, 04:16 AM
 
I am wondering on what port email is coming into sendmail.
Sendmail normally listens on port 25 (tcp) which is the well
known port number for smtp .

--ranga
     
petej
Dedicated MacNNer
Join Date: Oct 2001
Location: Baltimore, MD, US
Status: Offline
Reply With Quote
Feb 25, 2002, 05:48 AM
 
In the default Mac OS X configuration, sendmail isn't listening at all, which is a pretty good idea for new system administrators. If you choose to enable it, make sure you have some protection in place such as a firewall (which could be some ipfw controls, or use BrickHouse as a front-end to ipfw). Sendmail only needs to be listening if your machine is to act as a mail server; if you just want to receive mail from another server, you don't need sendmail to listen. Also if you want to send mail from one user on your system to another using the CLI "mail" command, you don't need sendmail to listen.
     
petej
Dedicated MacNNer
Join Date: Oct 2001
Location: Baltimore, MD, US
Status: Offline
Reply With Quote
Feb 25, 2002, 05:50 AM
 
Another thing...if you want to see the ports used by various protocols, you can run <BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>nidump services /</font>[/code]

<font face = "courier">man services</font> will explain the format of the file.

[ 02-25-2002: Message edited by: petej ]
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Feb 25, 2002, 08:11 AM
 
Originally posted by petej:
<STRONG>Another thing...if you want to see the ports used by various protocols, you can run:
nidump services /</STRONG>
instead of messing around with nidump, there is a flat-file copy at /etc/services. however the apple supplied services file is a not very up to date. if you have nmap (http://www.insecure.org/nmap) installed it includes a more complete version in /usr/local/share/nmap/nmap-services.
     
petej
Dedicated MacNNer
Join Date: Oct 2001
Location: Baltimore, MD, US
Status: Offline
Reply With Quote
Feb 25, 2002, 09:13 AM
 
Instead of messing around with nmap (which is a terrific program, BTW), you can get the official up-to-date listing of port number assignments from the IANA page on port-numbers. The IANA is responsible for maintaining the port-number list.

(The original question was about what port sendmail listens on, so I'm just guessing that nmap is a little beyond where DominikHoffmann wanted to go today.)

[ 02-25-2002: Message edited by: petej ]
     
DominikHoffmann  (op)
Mac Enthusiast
Join Date: Feb 2001
Location: Leesburg, Virginia
Status: Offline
Reply With Quote
Feb 25, 2002, 10:21 PM
 
(The original question was about what port sendmail listens on, so I'm just guessing that nmap is a little beyond where DominikHoffmann wanted to go today.)
Just a little.

Dominik Hoffmann
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Feb 26, 2002, 12:34 AM
 
Originally posted by petej:
<STRONG>(The original question was about what port sendmail listens on, so I'm just guessing that nmap is a little beyond where DominikHoffmann wanted to go today.)</STRONG>
which is why i mentioned the nice, easy, honest-to-god test file at /etc/services... the rest was just a fyi.
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:09 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,