From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!x6YkKUCkj2qHLwbKnVEeag.user.46.165.242.91.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Attempt to send email using AWS results in Socket closed by peer Date: Fri, 3 Sep 2021 20:31:06 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <57c7ca69-cc99-45ae-b494-580536a99ef4n@googlegroups.com> <5to3jglkdgcm307ngd1ek8vjaqb7ofjk6e@4ax.com> <1194b579-9dc3-4e2e-b6ac-48755a7b2f10n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="9212"; posting-host="x6YkKUCkj2qHLwbKnVEeag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:62621 List-Id: On 2021-09-03 20:11, Juan Rayas wrote: > In all cases, I get the following error: > > Can't send message :530 5.7.0 Must issue a STARTTLS command first. u7sm5705829pju.13 - gsmtp > > The problem is I don't know how to send the STARTTLS command with AWS. Anyone know how? There should be some settings parameter instructing the client to send StartTLS right after it connects to the server. At least in my SMTP implementation it is so. But again, either port 587 or StartTLS, both require TLS, e.g. over GNUTLS or else OpenSSL. You need to tell AWS that you are going to use one them, specify the certificates, the keys etc. You must really read the AWS documentation regarding secure connections. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de