send a message using smtp
ssmtp [ flags ] [ address … ]
/usr/lib/sendmail [ flags ] [ address … ]
send-only sendmail emulator for machines which normally pick their mail up from a centralized mailhub (via pop, imap,
nfs mounts or other means). Provides the functionality required for humans and programs to send mail via the standard or
/usr/bin/mail user agents.
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 specifying 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.
Does not provide the functionality of sendmail: intended where other programs are the primary
means of mail delivery. Usefull with pop/imap, for machines whose sendmails are too difficult (or various) to configure, etc.
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.
Most sendmail options are irrelevent to sSMTP. unsupported are fatal errors. Those marked simulated are not errors, but the result is for the program to exit
|username for SMTP authentication. (see config)
| password for SMTP authentication.
| mechanism for SMTP authentication. (Only LOGIN and CRAM-MD5)
|Use alternate configuration file.
| Set the full name of the sender.
|Sets the name of the from person. only if no From: line is specified within the header
|Same as -f.
| Set debugging value to X.
| verbose mode.
| Forces IPv4 addresses only.
| Forces IPv6 addresses only.
| (unsupported) ARPANET mode. |
All input lines must end with a LINEFEED, and all messages will be generated with a CR-LF at
the end. Also, the From: and Sender: fields are examined for the name of the sender.
| (unsupported) Run as a daemon.
| (ignored) Initialise the alias database.
| (default) Deliver mail in the usual way.
| (simulated) Print a summary of the mail queue.
| (unsupported) Read SMTP commands from stdin.
| (unsupported) Run in address test mode.
| (unsupported) Verify names only.
| (unsupported) Create the configuration freeze file.
| (ignored) Don't trust userid of sender.
|(ignored) Set the hop count to N.
|(ignored) Ignore originator in alias.
|(ignored) Attempt to deliver the queued message with message-id id.
|(ignored) Set delivery status notification conditions to dsn.
| (default) Do not do aliasing.
| (ignored) Use alternate alias file.
| (ignored) Delay expensive connections.
| (ignored) Set the delivery mode to interactive/synchronous, background or queue (Always interactive).
| (ignored) Run newaliases if required.
| (ignored) Set error processing to mail, write, print or quit. (Always print).
| (ignored) The mode to use when creating temporary files.
| (ignored) Save UNIX-system-style From lines at the front of messages.
| (ignored) Set group ID to use when calling mailers.
| (ignored) Set SMTP help file.
| (default) Do not take dots on a line by themselves as a message terminator.
| (ignored) The log level.
| (default) Send to me (the sender) also if in an alias.
| (unsupported) If set, this message may have old style headers.
| (ignored) Select the directory in which to queue messages.
| (ignored) The timeout on reads.
| (ignored) Save statistics in the named file.
| (ignored) Always instantiate the queue.
| (ignored) Set timeout on messages.
| (ignored) Set the name of the time zone.
| (ignored) Set the default user id for mailers.
| (simulated) Process the queue.
| (ignored) Process queue for recipient.
| (ignored) Set the amount of the message to be returned if the message bounces.
| (not supported). Read message, searching for recipients. |
Bcc: lines will be scanned for people to send to. Any addresses in the argument list will be suppressed
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:
Messages root sends will be identified as from email@example.com and sent through mail.isp.com.
/etc/ssmtp/revaliases - reverse aliases file
RFC821, RFC822, ssmtp.conf(5).
sSMTP does not support exception lists to the -t option (never seen it used).
sSMTP will fail if the mailhub is unreachable.
| user name to use for SMTP AUTH. The default is blank, in which case SMTP AUTH is not used. sent without
| password to use for SMTP AUTH.
| authorization method to use. If unset, plain text is used. May also be set to "cram-md5".
| user that gets all mail for userids less than 1000. If blank, address rewriting is disabled.
| host to send mail to, in the form |
host port | IP_addr port [: port]. default 25.
| The domain from which mail seems to come. for user authentication.
| full qualified name of the host. If not specified, the host is queried for its hostname.
| whether From header may override the default domain. default "no".
| uses TLS to talk to the SMTP server. The default is "no".
| does a EHLO/STARTTLS before starting SSL negotiation. See RFC 2487.
| file of an RSA certificate to use for TLS,