On Wed, 29 Jun 2022, Steffen Nurpmeso wrote:
Roger Price wrote in <alpine.deb.2.20.2206291330350.21...@maria.rogerprice.org>:
| mta=smtps://mail...@rogerprice.org:sek...@mail.gandi.net:587 Ok. However i struggle a bit, port 587 is usually submission://, and you need "set smtp-use-starttls" (manual *mta*[2]; as well as [3] for "Encrypted network communication") to enter encryption. submissions:// that directly starts encrypted lives on :465. Looking at [4] this should work for you: set mta=submissions://...@mail.gandi.net:465 [4] https://docs.gandi.net/en/gandimail/standard_email_settings/#smtp-account
This pointed me in the right direction.
Your Alpine mailer can all this now and much better, of course.
Alpine is screen oriented, and I need to send messages from an unattended server.
What i forgot to add is that you really have to place
set v15-compat=y
in your resource file. It will be default in v14.10, and is needed for all new things (to work properly).
I tried lots of different configurations and finally added the following lines to /etc/s-mail.rc
set v15-compat=y set ttycharset=utf-8 set smtp-use-tls set smtp-auth=login set user=mail...@rogerprice.org set password=sekret set mta=submissions://mail.gandi.net:465 My script can now successfully send the message in STDIN using the command /usr/bin/s-nail -r mail...@rogerprice.org -s 'v15-compat mail' ro...@rogerprice.org Thankyou Steffen for your help, Roger