Groups | Search | Server Info | Login | Register


Groups > comp.mail.sendmail > #8296

Re: SMART_HOST to port 465 or 587?

From Hugo Villeneuve-Lapointe <hugo_villap@email.invalid>
Newsgroups comp.mail.sendmail
Subject Re: SMART_HOST to port 465 or 587?
Date 2026-04-13 23:27 -0400
Organization A noiseless patient Spider
Message-ID <lpo0bm-8oj.ln1@EINTR.net> (permalink)
References <10rjcjs$23i1$1@gal.iecc.com> <10rjj1u$3j7e1$1@dont-email.me> <10rjmbc$lpm$1@gal.iecc.com> <2960bm-08v2.ln1@EINTR.net> <10rk0ua$2o7t$1@gal.iecc.com>

Show all headers | View raw


John Levine <johnl@taugh.com> wrote:
> According to Hugo Villeneuve-Lapointe  <hugo_villap@email.invalid>:
>>John Levine <johnl@taugh.com> wrote:
>>> It appears that Kalevi Kolttonen <kalevi@kolttonen.fi> said:
>>>>John Levine <johnl@taugh.com> wrote:
>>>>> Thanks, that should do it.  Just out of curiosity is
>>>>> there a way to tell it to do immediate TLS on port 465?
>>>>
>>>>I have no idea as I have never used port 465. I suppose
>>>>it is deprecated anyway, but I am not 100% sure.
>>> 
>>> It's not deprecated at all.  Every MTA I know supports it.  Even sendmail.
>>
>>How does sendmail supports it?
>>
>>I know there is Flag=s in DaemonPortOptions to open a port and offer
>>SMTP over SSL.
> 
> That's it.  Ports 465 and 587 are for submission, from an MUA to an MSA.
> 
> In my application the old server is the submission cient and the new server
> is the submission server.

I'm afraid I don't think it is possible to do SMTP over SSL (port
465) between 2 sendmail servers (or I don't know how to do that).

Why everyone mentions doing it over port 587 with STARTTLS.

STARTTLS should be used automaticaly but if you want to enforce it:

if you have FEATURE(`access_db') you can add to /etc/mail/access
(and recompile after):

  # Sending to a mail server
  TLS_Srv:relay.server.domain.name	TEMP+ENCR:112
  TLS_Srv:relay.server.ip		TEMP+ENCR:112
  
  # Sending to recipient email
  # first match order: user@domain, user@, domain, ''
  TLS_Rcpt:domain.name			TEMP+ENCR:112
  # or the dangerous never send an un-encrypted email again
  #TLS_Rcpt:				TEMP+ENCR:112

See the STARTTLS section in cf/README for details (it should be
provided in your sendmail package) or:
https://fossies.org/linux/misc/sendmail.8.18.2.tar.gz/sendmail-8.18.2/cf/README?m=t


-- 
Hugo Villeneuve-Lapointe

Back to comp.mail.sendmail | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

SMART_HOST to port 465 or 587? John Levine <johnl@taugh.com> - 2026-04-13 18:28 +0000
  Re: SMART_HOST to port 465 or 587? kalevi@kolttonen.fi (Kalevi Kolttonen) - 2026-04-13 18:33 +0000
    Re: SMART_HOST to port 465 or 587? John Levine <johnl@taugh.com> - 2026-04-13 19:28 +0000
      Re: SMART_HOST to port 465 or 587? kalevi@kolttonen.fi (Kalevi Kolttonen) - 2026-04-13 20:18 +0000
        Re: SMART_HOST to port 465 or 587? John Levine <johnl@taugh.com> - 2026-04-13 21:14 +0000
          Re: SMART_HOST to port 465 or 587? kalevi@kolttonen.fi (Kalevi Kolttonen) - 2026-04-13 21:39 +0000
          Re: SMART_HOST to port 465 or 587? Hugo Villeneuve-Lapointe <hugo_villap@email.invalid> - 2026-04-13 18:11 -0400
            Re: SMART_HOST to port 465 or 587? John Levine <johnl@taugh.com> - 2026-04-14 00:15 +0000
              Re: SMART_HOST to port 465 or 587? Hugo Villeneuve-Lapointe <hugo_villap@email.invalid> - 2026-04-13 23:27 -0400
                Re: SMART_HOST to port 465 or 587? Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> - 2026-04-14 02:20 -0400
                Re: SMART_HOST to port 465 or 587? Hugo Villeneuve-Lapointe <hugo_villap@email.invalid> - 2026-04-14 22:24 -0400
                Re: SMART_HOST to port 465 or 587? Bjørn Mork <bjorn@mork.no> - 2026-04-14 08:26 +0200
                Re: SMART_HOST to port 465 or 587? John Levine <johnl@taugh.com> - 2026-04-14 18:27 +0000
  Re: SMART_HOST to port 465 or 587? Andrzej Adam Filip <anfi@onet.eu> - 2026-04-13 21:00 +0200

csiph-web