Hello again.

Steffen Nurpmeso wrote in
 <20220110192035.vsvk2%stef...@sdaoden.eu>:
 |Madou Mad wrote in
 | <am9p189mb1585d0929ace353a8ac22e8ad3...@am9p189mb1585.eurp189.prod.OUTLO\
 | OK.COM>:
 ...
 ||I send you this message because I'm unable to send emails from
 ||Microsoft Exchange Server and s-nail v14.9.23 on Void Linux. It
 ...

So i have actually created a new free (and unlocked)
https://outlook.live.com/owa/ account, and i can IMAPS, POP3S, and
also successfully send mail via SMTP!  No problems.  With "set
verbose=2" i see

  s-nail: Resolving host smtp.office365.com:submission ... done
  s-nail: Connecting to 52.98.207.210:submission ... connected.
  s-nail: >>> SERVER: 220 AS9PR0301CA0050.outlook.office365.com Microsoft ESMTP 
MAIL Service ready at Mon, 10 Jan 2022 19:50:14 +0000
  s-nail: *smtp-config*: using ehlo extension
  s-nail: >>> EHLO outlook.com
  s-nail: >>> SERVER: 250-AS9PR0301CA0050.outlook.office365.com Hello 
[46.114.1.235]
  s-nail: >>> SERVER: 250-SIZE 157286400
  s-nail: >>> SERVER: 250-PIPELINING
  s-nail: >>> SERVER: 250-DSN
  s-nail: >>> SERVER: 250-ENHANCEDSTATUSCODES
  s-nail: >>> SERVER: 250-STARTTLS
  s-nail: >>> SERVER: 250-8BITMIME
  s-nail: >>> SERVER: 250-BINARYMIME
  s-nail: >>> SERVER: 250-CHUNKING
  s-nail: >>> SERVER: 250 SMTPUTF8
  s-nail: *smtp-config*: using starttls extension
  s-nail: >>> STARTTLS
  s-nail: >>> SERVER: 220 2.0.0 SMTP server ready
  s-nail: TLS: applying config: MinProtocol = TLSv1.2
  s-nail:  Certificate depth 2
  s-nail:   subject = /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert 
Global Root CA
  s-nail:   notBefore = Nov 10 00:00:00 2006 GMT
  s-nail:   notAfter = Nov 10 00:00:00 2031 GMT
  s-nail:   issuer = /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert 
Global Root CA
  s-nail:  Certificate depth 1
  s-nail:   subject = /C=US/O=DigiCert Inc/CN=DigiCert Cloud Services CA-1
  s-nail:   notBefore = Sep 25 00:00:00 2020 GMT
  s-nail:   notAfter = Sep 24 23:59:59 2030 GMT
  s-nail:   issuer = /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert 
Global Root CA
  s-nail:  Certificate depth 0
  s-nail:   subject = /C=US/ST=Washington/L=Redmond/O=Microsoft 
Corporation/CN=outlook.com
  s-nail:   notBefore = Dec 22 00:00:00 2021 GMT
  s-nail:   notAfter = Dec 22 23:59:59 2022 GMT
  s-nail:   issuer = /C=US/O=DigiCert Inc/CN=DigiCert Cloud Services CA-1
  s-nail: Comparing subject_alt_name: need<smtp.office365.com> 
is<*.internal.outlook.com>
  s-nail: Comparing subject_alt_name: need<smtp.office365.com> is<*.outlook.com>
  s-nail: Comparing subject_alt_name: need<smtp.office365.com> is<outlook.com>
  s-nail: Comparing subject_alt_name: need<smtp.office365.com> is<office365.com>
  s-nail: Comparing subject_alt_name: need<smtp.office365.com> 
is<*.office365.com>
  s-nail: TLS certificate ok
  s-nail: TLS BLAKE2s256 fingerprint: 
E8:B5:2A:2E:E8:55:7F:9B:24:50:17:DB:1E:9F:B3:C8:6B:44:C0:4D:B6:79:4B:92:6C:F4:EA:DB:BC:C1:D6:0E
  s-nail: TLS connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
  s-nail: >>> EHLO outlook.com
  s-nail: >>> SERVER: 250-AS9PR0301CA0050.outlook.office365.com Hello [...]
  s-nail: >>> SERVER: 250-SIZE 157286400
  s-nail: >>> SERVER: 250-PIPELINING
  s-nail: >>> SERVER: 250-DSN
  s-nail: >>> SERVER: 250-ENHANCEDSTATUSCODES
  s-nail: >>> SERVER: 250-AUTH LOGIN XOAUTH2
  s-nail: >>> SERVER: 250-8BITMIME
  s-nail: >>> SERVER: 250-BINARYMIME
  s-nail: >>> SERVER: 250-CHUNKING
  s-nail: >>> SERVER: 250 SMTPUTF8
  s-nail: *smtp-config*: using pipelining extension
  s-nail: *smtp-config*: using auth extension
  s-nail: SMTP: authentication: selecting LOGIN
  s-nail: >>> AUTH LOGIN
  s-nail: >>> SERVER: 334 ...
  s-nail: >>> ...
  s-nail: >>> SERVER: 334 ...
  s-nail: >>> ...
  s-nail: *smtp-config*: using 8bitmime extension
  s-nail: >>> MAIL FROM:<fozzi-b...@outlook.com> BODY=7BIT
  s-nail: >>> RCPT TO:<stef...@sdaoden.eu>
  s-nail: >>> DATA
  s-nail: >>> SERVER: 235 2.7.0 Authentication successful
  s-nail: >>> SERVER: 250 2.1.0 Sender OK
  s-nail: >>> SERVER: 250 2.1.5 Recipient OK
  s-nail: >>> SERVER: 354 Start mail input; end with <CRLF>.<CRLF>
  s-nail: >>> Date: Mon, 10 Jan 2022 20:50:15 +0100
  s-nail: >>> Author: fozzi-b...@outlook.com
  s-nail: >>> From: fozzi-b...@outlook.com
  s-nail: >>> To: stef...@sdaoden.eu
  s-nail: >>> Subject: Kann dein Mailer senden?
  s-nail: >>> Message-ID: <20220110195015.kb1yo...@outlook.com>
  s-nail: >>> User-Agent: s-nail v14.9.23-207-g7f6b3a0acb
  s-nail: >>>
  s-nail: >>> Hallo.
  s-nail: >>>
  s-nail: >>> Noch einmal versuchend.
  s-nail: >>> .
  s-nail: >>> QUIT
  s-nail: >>> SERVER: 250 2.0.0 OK 
<db6pr0902mb198996f8ac081044e06221e985...@db6pr0902mb1989.eurprd09.prod.outlook.com>
 [Hostname=DB6PR0902MB1989.eurprd09.prod.outlook.com]
  s-nail: >>> SERVER: 221 2.0.0 Service closing transmission channel

The account i used is

  account fozzi-baer {
     \call fozzi-baer
  }
  define fozzi-baer {
     \set hostname=outlook.com \
        mta=submission://smtp.office365.com \
        tls-config-pairs=MinProtocol=TLSv1.2
     set nonetrc-lookup \
  from=fozzi-b...@outlook.com \
  user=fozzi-b...@outlook.com \
  nosmtp-hostname #smtp-config=-allmechs,login

     \shortcut pop '%:pop3s://outlook.office365.com'
     \shortcut imap '%:imaps://outlook.office365.com'
     \commandalias xp 'fi pop'
     \commandalias xi 'fi imap'
  }

I recall we had problems with *hostname*, *smtp-hostname* and
*user* containing @outlook.com, wait...
Aah ja!  There was another thread at the beginning of June 2021
(ERROR prompt), and it concluded:

  |It actually is possible to use Microsoft with S-nail.
  |The problem here was that i set *smtp-hostname=* for reasons
  |i have forgotten.  Anyhow, with current version i can

Yes.  Yes.  Anyhow, the "fozzi-baer" account works, and this time
POP3 also worked right away.  Wonderful!
So by then the problem was that Microsoft wants

  set user=u...@outlook.com

and that resulted in u...@outlook.com@outlook.com with
*smtp-hostname*=, which of course did not work.
You surely need to "set from=XY@" thus.

So yes, *smtp-hostname* was a non-starter, essentially; it works
with some accounts, but not with the Outlook.com user names which
must include the @outlook.com phrase for whatever reason (as if it
would not be implied it seems to me).

It seems what you want is something like *smtp-from*, so that you
can use "set from=huguelec...@hotmail.fr" and "set
smtp-from=whatever-accou...@outlook.com", which seems to work with
Microsoft, looking at your mail.

Yes, sorry, you cannot do something like this with S-nail at the
moment!  I will implement it right away and obsolete
*smtp-hostname* which it supersedes.

Thanks for the suggestion!
Ciao and Greetings from Germany!

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to