1SMTP(1)                     General Commands Manual                    SMTP(1)
2
3
4

NAME

6       smtp - Simple Mail Transfer Protocol client
7

SYNOPSIS

9       smtp [-Chnv] [-F from] [-H helo] [-s server] [recipient ...]
10

DESCRIPTION

12       The smtp utility is a Simple Mail Transfer Protocol (SMTP) client which
13       can be used to run an SMTP transaction against an SMTP server.
14
15       By default, smtp reads the mail content from the standard input, estab‐
16       lishes an SMTP session, and runs an SMTP transaction for all the speci‐
17       fied recipients.  The content is sent unaltered as mail data.
18
19       The options are as follows:
20
21            -C     Do not require server certificate to be valid.
22
23            -F from
24                   Set the return-path (MAIL FROM) for the SMTP transaction.
25                   Default to the current username.
26
27            -H helo
28                   Define the hostname to advertise (HELO) when establishing
29                   the SMTP session.
30
31            -h     Display version and usage.
32
33            -n     Do not actually execute a transaction, just try to estab‐
34                   lish an SMTP session and quit.  When this option is given,
35                   no message is read from the standard input.
36
37            -s server
38                   Specify the server to connect to and connection parameters.
39                   The format is Sm off [proto :// [user: pass @]] host [:
40                   port.]  Sm on The following protocols are available:
41
42                 smtp   Normal SMTP session with opportunistic STARTTLS.
43
44                 smtp+tls
45                        Normal SMTP session with mandatory STARTTLS.
46
47                 smtp+notls
48                        Plain text SMTP session without TLS.
49
50                 lmtp   LMTP session with opportunistic STARTTLS.
51
52                 lmtp+tls
53                        LMTP session with mandatory STARTTLS.
54
55                 lmtp+notls
56                        Plain text LMTP session without TLS.
57
58                 smtps  SMTP session with forced TLS on connection.
59
60            Defaults to ``smtp://localhost:25''.
61
62            -v     Be more verbose.  This option can be specified multiple
63                   times.
64

SEE ALSO

66       smtpd(8)
67

HISTORY

69       The smtp program first appeared in OpenBSD 6.4.
70
71
72
73                           $Mdocdate: July 4 2018 $                    SMTP(1)
Impressum