Skip to contentSkip to conversation

sendmail port

DISCUSSION Jorge R . Csapo 2 participants 3 messages Aug 23, 2002 – Aug 25, 2002

lore
Share & tools
lore
#0 lore raw

Hi all,

is there a simple way to tell sendmail to use a port other than 25 for sending?

TIA

Signature · 13 lines
Jorge R. Csapo
--------------------------------------------------
 /"\
 \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
  X  ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
 / \
--------------------------------------------------
http://www.completo.com.br/~jorge
===========================================
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster
#1 lore raw
Quoted 2 lines · Jorge R . Csapo

is there a simple way to tell sendmail to use a port other than 25 for sending?

It doesn't use port 25 for sending; it uses an ephemeral port (unless you specify the 'R' flag, in which case it allocates a privileged port). I don't think that you can force the use of a fixed port (other than by modifying the source code).

Signature · 1 line
Glynn Clements <[email protected]>
#2 lore raw

assim falou Glynn Clements (em 24/08/2002):

Quoted 10 lines
Quoted 2 lines · Jorge R . Csapo

is there a simple way to tell sendmail to use a port other than 25 for sending?

It doesn't use port 25 for sending; it uses an ephemeral port (unless you specify the 'R' flag, in which case it allocates a privileged port). I don't think that you can force the use of a fixed port (other than by modifying the source code).

Actually I expressed myself poorly. I needed to know if I could make sendmail connect to a port other than 25 on the destination host. As it turns out, both the originating ephemeral port and the destination port can be modified:
the first by using the ClientPortOptions (ClientPortOptions=Port=port_#) and the second by modifying the mailer definitions (the ARGV parameter as in A=TCP $h port_#.

Signature · 19 lines
Jorge R. Csapo

--------------------------------------------------
    /"\
    \ /ÿ CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
     Xÿÿ ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
    / \
--------------------------------------------------
Jorge R. Csapo
http://www.completo.com.br/~jorge
===========================================
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge. 
--Peter J. Schoenster
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html