Operating System - OpenVMS
1752850 Members
3478 Online
108790 Solutions
New Discussion

Re: tcpip smtp mail to smtp.office365.com

 
dc53
New Member

tcpip smtp mail to smtp.office365.com

i am trying to send email in a dcl command line to an offsite smtp server that runs office365    (smtp.office365.com) and it does not recognize the username   when sending from a vb application and passing username , password , authentication method and use ssl it works fine

 

how do i send those parameters in the  $maikl.subj-"test" filename.txt smtp%"""username#domain.com"""

 

mx is set for domain.com with gateway=smtp.office365.com

3 REPLIES 3
Steven Schweda
Honored Contributor

Re: tcpip smtp mail to smtp.office365.com

> i am trying to send email in a dcl command line to an offsite smtp
> server that runs office365    (smtp.office365.com) and it does not
> recognize the username

   As usual, showing actual commands with their actual output can be
more helpful than vague descriptions or interpretations.  With my weak
psychic powers, I know approximately nothing about your system.  For a
start:

      tcpip show version

>  when sending from a vb application and passing username , password ,
> authentication method and use ssl it works fine

   Similarly, I can't see your VB code, either.

> mx is set for domain.com with gateway=smtp.office365.com

   I don't know what this means (to you).

> how do i send those parameters in the  $maikl.subj-"test" filename.txt
> smtp%"""username#domain.com"""

   It may not be possible.  I'm not an expert in SMTP, but I doubt that
the usual VMS e-mail client (or server) software knows anything about
SMTP authentication.

   For example, talking to the server here:

ALP $ telnet alp-l /port = 25
%TELNET-I-TRYING, Trying ... 10.0.0.9
%TELNET-I-SESSION, Session 01, host alp-l, port 25
%TELNET-I-ESCAPE, Escape character is ^]
EHLO
220 alp.antinode.info V5.7-ECO5, OpenVMS V8.4 Alpha ready at Sun, 4 Jun 2017 15:11:29 -0500 (CDT)
250 alp.antinode.info Hello alp, pleased to meet you, friend
AUTH
500 Syntax error, command unrecognized
quit
221 alp.antinode.info Service closing transmission channel
%TELNET-S-REMCLOSED, Remote connection closed
-TELNET-I-SESSION, Session 01, host alp-l, port 25


   If your question is how to do authenticated SMTP from a VMS system
using the VMS MAIL program, then the answer may be disappointing.  If
you don't demand authenticated SMTP, then the answer may be different.
What, exactly, are you trying to do?  Why is authenticated SMTP needed
to do it?

   It's often helpful to specify your actual requirements without
specifying a particular implementation.

Dennis Handly
Acclaimed Contributor

Re: tcpip smtp mail to smtp.office365.com

> Why is authenticated SMTP needed to do it?

 

Because smtp.office365.com (Microsoft) requires it?

Steven Schweda
Honored Contributor

Re: tcpip smtp mail to smtp.office365.com

> > Why is authenticated SMTP needed to do it?
>
> Because smtp.office365.com (Microsoft) requires it?

   Which leads directly to the next obvious question: Why are we trying
to use smtp.office365.com?

>    It's often helpful to specify your actual requirements without
> specifying a particular implementation.

   Still true.