S-nail: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
set v15-compat | set v15-compat | ||
set smtp='''<your-mailserver.com>''' | |||
set user='''<username>''' | |||
set password='''<password>''' | |||
ssl-method=auto | ssl-method=auto | ||
set smtp-use-starttls | set smtp-use-starttls | ||
set ssl-verify=ignore | set ssl-verify=ignore |
Revision as of 19:50, 18 March 2021
S-nail is an easy way to send email on Linux. The setup is quickly done and works with gmail, yahoo and others.
The following is an example setup which was tested on Ubuntu 20 and Debian 10/Buster
Installation
apt-get install s-nail
Configuration
This configuration is a quick sample of howto to use TLS
with STARTTLS
and PLAIN which suits for almost all mail server.
It already contains the USERNAME and PASSWORD to AUTHENTICATE.
This way the client does not need to authenticate itself anymore.
This example trusts the
Mailserver (
MTA) and does not verify the TLS
certificate,
this is a workaround for missing root certificate seen often in private environments.
- Add and configure the following to /etc/s-nail.rc
set v15-compat set smtp=<your-mailserver.com> set user=<username> set password=<password> ssl-method=auto 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