S-nail: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
and [https://en.wikipedia.org/wiki/SMTP_Authentication#Details PLAIN] which suits for almost all mail server. | and [https://en.wikipedia.org/wiki/SMTP_Authentication#Details PLAIN] which suits for almost all mail server. | ||
It already contains the '''USERNAME''' and '''PASSWORD'''. <br> | It already contains the '''USERNAME''' and '''PASSWORD'''. <br> | ||
This way the client does not need to authenticate anymore. This example trusts the MTA and does not verify the TLS certificate, | This way the client does not need to authenticate anymore. | ||
This example trusts the [https://en.wikipedia.org/wiki/Message_transfer_agent MTA] and does not verify the [https://en.wikipedia.org/wiki/Transport_Layer_Security TLS] certificate, | |||
this is a workaround for missing root certificate seen often in private environments. | this is a workaround for missing root certificate seen often in private environments. | ||
Revision as of 19:34, 18 March 2021
S-nail is an easy workaround for Linux workstation which can be quickly establish, it works with gmail, yahoo and others. The following is an example tested Ubuntu 20 or Debian 10/Buster
Installation
apt-get install s-nail
Configuration
This configuration is a quick sample to use TLS
with STARTTLS
and PLAIN which suits for almost all mail server.
It already contains the USERNAME and PASSWORD.
This way the client does not need to authenticate anymore.
This example trusts the MTA and does not verify the TLS certificate,
this is a workaround for missing root certificate seen often in private environments.
- Add the following to /etc/s-nail.rc
set v15-compat ssl-method=auto set smtp=<your-mailserver.com> set user=<username> set password=<password> set smtp-use-starttls set ssl-verify=ignore set smtp-auth=plain
Test
echo "TestText" | s-nail -s "TestSubject" user.name@domain.com
Keywords: mta mail tls ssl smtp pop pop3 imap message