[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mail transfer agent (debian-user-digest Digest V2020 #932)



	Hi.

On Fri, Sep 25, 2020 at 01:26:54PM +0300, Andrei POPESCU wrote:
> Not necessarily, just very common. However, suddenlink seems to require 
> the full e-mail address as well.
> 
> https://help.suddenlink.com/knowledge/microsoft-outlook-set-your-suddenlink-email
>  
> > I don't think suddenlink.net accepts mail; smtp.suddenlink.net does.
> > 
> > I omit the port number 587 as it's the default.
> 
> Can't find any mention of this in neomuttrc(5), care to provide a 
> source?

There won't be any, because in both mutt and neomutt tcp:25 is the
default for smtp.
Specifically, smtp_fill_account() at smtp.c shows this:

  if (!account->port)
  {
    if (account->flags & MUTT_ACCT_SSL)
      account->port = SMTPS_PORT;
    else
    {
      static unsigned short SmtpPort = 0;
      if (!SmtpPort)
      {
        struct servent *service = getservbyname("smtp", "tcp");
        if (service)
          SmtpPort = ntohs(service->s_port);
        else
          SmtpPort = SMTP_PORT;
        mutt_debug(3, "Using default SMTP port %d\n", SmtpPort);
      }
      account->port = SmtpPort;
    }
  }

And getservbyname(3) will return port 25 for smtp, because it's the port
designated for smtp in /etc/services.
Of course, they *could* use "submission" (which is tcp:587) at that code
instead of "smtp", but they did not.

Reco


Reply to: