====== sSMTP ====== Cette page est la uniquement pour aide-mémoire... Une doc => https://www.pofilo.fr/post/20181022-send-mail-linux/ ===== ssmtp(8) - extrait ===== ==== NAME ==== ssmtp, sendmail - send a message using smtp ==== SYNOPSIS ==== ssmtp [ flags ] [ address ... ] /usr/lib/sendmail [ flags ] [ address ... ] ==== DESCRIPTION ==== ssmtp is a send-only sendmail emulator for machines which normally pick their mail up from a centralized mailhub (via pop, imap, nfs mounts or other means). It provides the functionality required for humans and programs to send mail via the standard or /usr/bin/mail user agents. It accepts a mail stream on standard input with recipients specified on the command line and synchronously forwards the message to the mail transfer agent of a mailhub for the mailhub MTA to process. Failed messages are placed in dead.letter in the sender's home directory. Config files allow one to specify the address to receive mail from root, daemon, etc.; a default mailhub; a default domain to be used in From: lines; and per-user From: addresses and mailhub names. It does not attempt to provide all the functionality of sendmail: it is intended for use where other programs are the primary means of at last mail delivery. It is usefull with pop/imap, or to simulate the Sun shared mail spool option for non-Sun machines, for machines whose sendmails are too difficult (or various) to configure, for machines with known disfeatures in their sendmails or for ones where there are 'mysterious problems'. It does not do aliasing, which must be done either in the user agent or on the mailhub. Nor does it honor .forwards, which have to be done on the recieving host. It especially does not deliver to pipelines. ==== REVERSE ALIASES ==== A reverse alias gives the From: address placed on a user's outgoing messages and (optionally) the mailhub these messages will be sent through. Example: root:jdoe@isp.com:mail.isp.com Messages root sends will be identified as from jdoe@isp.com and sent through mail.isp.com. ==== FILES ==== /etc/ssmtp/ssmtp.conf - configuration file /etc/ssmtp/revaliases - reverse aliases file ===== ssmtp.conf(5) - Linux man page ===== ==== NAME ==== ssmtp.conf - ssmtp configuration file ==== DESCRIPTION ==== ssmtp reads configuration data from /etc/ssmtp/ssmtp.conf The file contains keyword-argument pairs, one per line. Lines starting with `#' and empty lines are interpreted as comments. The possible keywords and their meanings are as follows (both are case-insensitive): **Root** The user that gets all mail for userids less than 1000. If blank, address rewriting is disabled. **Mailhub** The host to send mail to, in the form host | IP_addr [: port ] The default port is 25. **RewriteDomain** The domain from which mail seems to come. for user authentication. **Hostname** The full qualified name of the host. If not specified, the host is queried for its hostname. **FromLineOverride** Specifies whether the From header of an email, if any, may override the default domain. The default is ``no'' **UseTLS** Specifies whether ssmtp uses TLS to talk to the SMTP server. The default is ``no'' **UseSTARTTLS** Specifies whether ssmtp does a EHLO/STARTTLS before starting SSL negotiation. See RFC 2487. **TLSCert** The file name of an RSA certificate to use for TLS, if required. **AuthUser** The user name to use for SMTP AUTH. The default is blank, in which case SMTP AUTH is not used. sent without **AuthPass** The password to use for SMTP AUTH. **AuthMethod** The authorization method to use. If unset, plain text is used. May also be set to ``cram-md5'' ==== FILES ==== /etc/ssmtp/ssmtp.conf Contains configuration data for ssmtp ==== SEE ALSO ==== ssmtp(8) ==== AUTHORS ==== Matt Ryan (mryan@debian.org), Hugo Haas (hugo@debian.org), Christoph Lameter (clameter@debian.org) and Dave Collier-Brown (davecb@hobbes.ss.org). Reuben Thomas (rrt@sc3d.org) wrote the man page.