/usr/share/doc/mailutils-doc/mailutils.html/mailutils-smtp.html is in mailutils-doc 1:3.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Published by the Free Software Foundation,
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA
Copyright (C) 1999-2004, 2008-2012, 2014-2017 Free Software
Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover, and no Back-Cover texts.
A copy of the license is included in the section entitled "GNU Free
Documentation License". -->
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>mailutils smtp (GNU Mailutils Manual)</title>
<meta name="description" content="mailutils smtp (GNU Mailutils Manual)">
<meta name="keywords" content="mailutils smtp (GNU Mailutils Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html#Top" rel="start" title="Top">
<link href="Function-Index.html#Function-Index" rel="index" title="Function Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="mailutils.html#mailutils" rel="up" title="mailutils">
<link href="Libraries.html#Libraries" rel="next" title="Libraries">
<link href="mailutils-send.html#mailutils-send" rel="prev" title="mailutils send">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<a name="mailutils-smtp"></a>
<div class="header">
<p>
Previous: <a href="mailutils-send.html#mailutils-send" accesskey="p" rel="prev">mailutils send</a>, Up: <a href="mailutils.html#mailutils" accesskey="u" rel="up">mailutils</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-Index.html#Function-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="mailutils-smtp-1"></a>
<h4 class="subsection">3.17.17 mailutils smtp</h4>
<p>The <code>mailutils smtp</code> command invokes an interactive SMTP client
shell. It reads commands from the standard input, executes them and
displays the results on the standard output. If the standard input is
connected to a terminal, the readline and history facilities are
enabled (provided that Mailutils is configured with GNU Readline).
</p>
<a name="Initializing-connection"></a>
<h4 class="subsubheading">Initializing connection</h4>
<dl>
<dt><a name="index-connect-1"></a>smtp command: <strong>connect</strong> <em>[-tls] <var>host</var> [<var>port</var>]</em></dt>
<dd><p>Connects to SMTP server at <var>host</var> (IP address or host name). If
the <samp>-tls</samp> option is given, TLS encryption (also known as SMTPS
protocol) will be used. The default port number is 25 for plain SMTP
and 465 for SMTPS. Explicit <var>port</var> argument overrides the default
value.
</p></dd></dl>
<a name="Connection-parameters"></a>
<h4 class="subsubheading">Connection parameters</h4>
<p>A number of parameters is associated with an open connection:
</p>
<dl compact="compact">
<dt>domain</dt>
<dd><p>Domain name used in EHLO statement. Defaults to the current host name.
</p></dd>
</dl>
<p>The following parameters are used for ESMTP authentication:
</p>
<dl compact="compact">
<dt>username</dt>
<dd><p>User name.
</p></dd>
<dt>password</dt>
<dd><p>User password.
</p></dd>
<dt>service</dt>
<dd><p>GSASL service name.
</p></dd>
<dt>realm</dt>
<dd><p>Realm name.
</p></dd>
<dt>host</dt>
<dd><p>Host name.
</p></dd>
<dt>url</dt>
<dd><p>SMTP URL. It can contain all of the above. Default is smtp://
</p></dd>
</dl>
<p>These parameters are manipulated using the following statements:
</p>
<dl>
<dt><a name="index-set"></a>smtp command: <strong>set</strong> <em><var>param</var> <var>value</var> [<var>param</var> <var>value</var>...]</em></dt>
<dd><p>Sets parameter <var>param</var> to <var>value</var>. Several parameters can be
set with one <code>set</code> statement.
</p></dd></dl>
<dl>
<dt><a name="index-clear"></a>smtp command: <strong>clear</strong> <em>[<var>param</var>...]</em></dt>
<dd><p>Unset the supplied connection parameters. If used without arguments,
unsets all parameters.
</p></dd></dl>
<dl>
<dt><a name="index-list-2"></a>smtp command: <strong>list</strong> <em>[<var>param</var>...]</em></dt>
<dd><p>Lists the values of the connection parameters. If used without
arguments, lists all parameters.
</p></dd></dl>
<a name="SMTP-commands"></a>
<h4 class="subsubheading">SMTP commands</h4>
<dl>
<dt><a name="index-ehlo"></a>smtp command: <strong>ehlo</strong> <em>[<var>domain</var>]</em></dt>
<dd><p>Sends the ESMTP greeting. Unless <var>domain</var> is supplied, the
connection parameter ‘<samp>domain</samp>’ is used.
</p></dd></dl>
<dl>
<dt><a name="index-capa"></a>smtp command: <strong>capa</strong> <em>[<var>name</var>...]</em></dt>
<dd><p>Lists the server capabilities.
</p></dd></dl>
<dl>
<dt><a name="index-starttls-1"></a>smtp command: <strong>starttls</strong></dt>
<dd><p>Initiates encrypted connection. This command is disabled if the
connection is opened with the <samp>-tls</samp> option.
</p></dd></dl>
<dl>
<dt><a name="index-auth-1"></a>smtp command: <strong>auth</strong> <em><var>mech</var> [<var>mech</var>...]</em></dt>
<dd><p>Authenticate using the supplied mechanisms.
</p></dd></dl>
<dl>
<dt><a name="index-rset"></a>smtp command: <strong>rset</strong></dt>
<dd><p>Reset the session state.
</p></dd></dl>
<dl>
<dt><a name="index-from"></a>smtp command: <strong>from</strong> <em>[<var>email</var>]</em></dt>
<dd><p>Sets sender email address. If used without arguments, prints the
sender email address.
</p></dd></dl>
<dl>
<dt><a name="index-to"></a>smtp command: <strong>to</strong> <em>[<var>email</var>]</em></dt>
<dd><p>Sets recipient email address. If used without arguments, prints all
recepient names collected so far.
</p></dd></dl>
<dl>
<dt><a name="index-smtp"></a>smtp command: <strong>smtp</strong> <em><var>command</var> [<var>args</var>...]</em></dt>
<dd><p>Sends the <var>command</var> with its arguments verbatim.
</p></dd></dl>
<dl>
<dt><a name="index-quit-1"></a>smtp command: <strong>quit</strong></dt>
<dd><p>Quits the SMTP session.
</p></dd></dl>
<dl>
<dt><a name="index-send"></a>smtp command: <strong>send</strong> <em>[<var>file</var>]</em></dt>
<dd><p>Reads the message from <var>file</var> and sends it. If <var>file</var> is not
supplied, the action depends on whether a <code>send</code> command was used
prevously within the same session. If so, <code>mailutils</code> will
first ask whether to reuse the already supplied message. If not, it
will start an editor, allowing you to enter the new message. When you
exit from the editor, you will be prompted what to do with the
message: send, edit, or quit (discard) it.
</p></dd></dl>
<a name="Internal-commands-2"></a>
<h4 class="subsubheading">Internal commands</h4>
<p>Internal commands are the same as in <code>pop</code> shell: See <a href="mailutils-pop.html#mailutils-pop">Internal commands</a>.
</p>
<hr>
<div class="header">
<p>
Previous: <a href="mailutils-send.html#mailutils-send" accesskey="p" rel="prev">mailutils send</a>, Up: <a href="mailutils.html#mailutils" accesskey="u" rel="up">mailutils</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-Index.html#Function-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|