2 .\" Copyright (c) 2008-2014, Simon Schubert <2@0x2c.org>.
4 .\" The DragonFly Project. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in
14 .\" the documentation and/or other materials provided with the
16 .\" 3. Neither the name of The DragonFly Project nor the names of its
17 .\" contributors may be used to endorse or promote products derived
18 .\" from this software without specific, prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 .\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24 .\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 .\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
30 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 .Nd DragonFly Mail Agent
52 is a small Mail Transport Agent (MTA), designed for home and office use.
53 It accepts mails from locally installed Mail User Agents (MUA) and
54 delivers the mails either locally or to a remote destination.
55 Remote delivery includes several features like TLS/SSL support and SMTP
59 is not intended as a replacement for real, big MTAs like
65 does not listen on port 25 for incoming connections.
67 The options are as follows:
68 .Bl -tag -width indent
71 acts as a compatibility option for sendmail.
73 .Bl -tag -width indent
75 List all mails currently stored in the mail queue.
77 Queue the mail, but don't attempt to deliver it.
80 config file setting below.
87 Don't run in the background.
90 Set sender address (envelope-from) to
92 This overrides the value of the environment variable
95 Ignore dots alone on lines by themselves in incoming messages.
96 This should be set if you are reading data from a file.
98 Set the identifier used in syslog messages to the supplied
100 This is a compatibility option for sendmail.
102 This is a compatibility option for sendmail.
103 .It Fl o Ns Ar option
108 All other options are ignored.
109 .It Fl q Ns Op Ar arg
110 Process saved messages in the queue.
111 The argument is optional and ignored.
116 Obtain recipient addresses from the message header.
126 header will be removed independent of whether
132 can be configured with two config files:
141 These two files are stored per default in
144 Every file contains parameters of the form
146 Lines containing boolean values are set to
148 if the line is commented and to
150 if the line is uncommented.
151 Empty lines or lines beginning with a
154 Parameter names and their values are case sensitive.
157 SMTP authentication can be configured in
159 Each line has the format
160 .Dq Li user|smarthost:password .
162 Most of the behaviour of
168 (string, default=empty)
170 If you want to send outgoing mails via a smarthost, set this variable to
171 your smarthosts address.
173 (numeric, default=25)
175 Use this port to deliver remote emails.
176 Only useful together with the
180 will deliver all mails to this port, regardless of whether a smarthost is set
183 (string, default=/etc/aliases)
185 Path to the local aliases file.
186 Just stick with the default.
187 The aliases file is of the format
188 .Dl nam: dest1 dest2 ...
189 In this case, mails to
191 will instead be delivered to
195 which in turn could be entries in
199 can be used to create a catch-all alias, which gets used if no other
200 matching alias is found.
201 Use the catch-all alias only if you don't want any local mail to be
204 (string, default=/var/spool/dma)
209 Just stick with the default.
211 (string, default=not set)
216 .It Ic SECURETRANS Xo
217 (boolean, default=commented)
219 Uncomment if you want TLS/SSL secured transfer.
221 (boolean, default=commented)
223 Uncomment if you want to use STARTTLS.
224 Only useful together with
226 .It Ic OPPORTUNISTIC_TLS Xo
227 (boolean, default=commented)
229 Uncomment if you want to allow the STARTTLS negotiation to fail.
232 is used without a smarthost, delivering remote messages directly to
233 the outside mail exchangers; in opportunistic TLS mode, the connection will
234 be encrypted if the remote server supports STARTTLS, but an unencrypted
235 delivery will still be made if the negotiation fails.
236 Only useful together with
241 (string, default=empty)
243 Path to your SSL certificate file.
245 (boolean, default=commented)
247 Uncomment this entry and change it to
249 to use plain text SMTP login over an insecure connection.
250 You have to rename this variable manually to prevent that you send your
251 password accidentally over an insecure connection.
253 (boolean, default=commented)
255 Uncomment if you want that
258 You have to flush your mail queue manually with the
261 This option is handy if you are behind a dialup line.
263 (boolean, default=commented)
265 Uncomment if you want the bounce message to include the complete original
266 message, not just the headers.
268 (string, default=empty)
270 The internet hostname
272 uses to identify the host.
273 If not set or empty, the result of
278 is an absolute path to a file, the first line of this file will be used
281 (string, default=empty)
283 Masquerade the envelope-from addresses with this address/hostname.
284 Use this setting if mails are not accepted by destination mail servers
285 because your sender domain is invalid.
286 This setting is overridden by the
290 environment variable.
296 sign, the string is interpreted as a host name.
303 will send all mails as
307 will send all mails as
308 .Ql Sm off Va username @percolator .
312 Bypass aliases and local delivery, and instead forward all mails to
320 .Ss Environment variables
323 can be influenced by some environment variables.
327 Used to set the sender address (envelope-from).
328 Use a plain address, in the form of
329 .Li user@example.com .
330 This value will be overridden when the
339 .%T "Simple Mail Transfer Protocol"
344 .%T "SMTP Service Extension for Authentication"
349 .%T "SMTP Service Extension for Secure SMTP over TLS"
355 utility first appeared in
361 .An Matthias Schmidt Aq Mt matthias@dragonflybsd.org
363 .An Simon Schubert Aq Mt 2@0x2c.org .