]> git.ipfire.org Git - people/ms/dma.git/blame - dma.8
make ppa: force lower version number
[people/ms/dma.git] / dma.8
CommitLineData
86e4d161
MS
1.\"
2.\" Copyright (c) 2008
3.\" The DragonFly Project. All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\"
9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in
13.\" the documentation and/or other materials provided with the
14.\" distribution.
15.\" 3. Neither the name of The DragonFly Project nor the names of its
16.\" contributors may be used to endorse or promote products derived
17.\" from this software without specific, prior written permission.
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
24.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
25.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
29.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
b53f68fc 32.\" $DragonFly: src/libexec/dma/dma.8,v 1.10 2008/09/06 14:17:56 swildner Exp $
86e4d161 33.\"
fcadfbe3 34.Dd April 22, 2010
86e4d161
MS
35.Dt DMA 8
36.Os
37.Sh NAME
38.Nm dma
39.Nd DragonFly Mail Agent
40.Sh SYNOPSIS
41.Nm
f734c0ae 42.Op Fl DiOt
30e2d711
SS
43.Op Fl A Ns Ar mode
44.Op Fl b Ns Ar mode
86e4d161
MS
45.Op Fl f Ar sender
46.Op Fl L Ar tag
30e2d711 47.Op Fl o Ns Ar option
86e4d161 48.Op Fl r Ar sender
30e2d711 49.Op Fl q Ns Op Ar arg
86e4d161
MS
50.Op Ar recipient ...
51.Sh DESCRIPTION
52.Nm
53is a small Mail Transport Agent (MTA), designed for home and office use.
54It accepts mails from locally installed Mail User Agents (MUA) and
55delivers the mails either locally or to a remote destination.
56Remote delivery includes several features like TLS/SSL support and SMTP
15386ecd 57authentication.
86e4d161
MS
58.Pp
59.Nm
60is not intended as a replacement for real, big MTAs like
61.Xr sendmail 8
62or
0f215b8d 63.Xr postfix 1 .
86e4d161
MS
64Consequently,
65.Nm
66does not listen on port 25 for incoming connections.
67.Pp
68The options are as follows:
69.Bl -tag -width indent
30e2d711
SS
70.It Fl A Ns Ar mode
71.Fl \&Ac
86e4d161 72acts as a compatibility option for sendmail.
30e2d711 73.It Fl b Ns Ar mode
bca4c72a
SS
74.Bl -tag -width indent
75.It Fl bp
76List all mails currently stored in the mail queue.
77.It Fl bq
78Queue the mail, but don't attempt to deliver it.
79See also the
80.Sq DEFER
81config file setting below.
82.El
83.Pp
84All other
85.Ar mode Ns
86s are are ignored.
86e4d161
MS
87.It Fl D
88Don't run in the background.
89Useful for debugging.
90.It Fl f Ar sender
fcadfbe3 91Set sender address (envelope-from) to
86e4d161 92.Ar sender .
fcadfbe3
SS
93This overrides the value of the environment variable
94.Ev EMAIL .
86e4d161
MS
95.It Fl i
96Ignore dots alone on lines by themselves in incoming messages.
97This should be set if you are reading data from a file.
98.It Fl L Ar tag
99Set the identifier used in syslog messages to the supplied
100.Ar tag .
101This is a compatibility option for sendmail.
9a0b96be
MS
102.It Fl O
103This is a compatibility option for sendmail.
30e2d711 104.It Fl o Ns Ar option
86e4d161 105Specifying
30e2d711 106.Fl oi
86e4d161
MS
107is synonymous to
108.Fl i .
109All other options are ignored.
30e2d711 110.It Fl q Ns Op Ar arg
86e4d161 111Process saved messages in the queue.
30e2d711 112The argument is optional and ignored.
86e4d161
MS
113.It Fl r Ar sender
114Same as
115.Fl f .
f734c0ae
SS
116.It Fl t
117Obtain recipient addresses from the message header.
30e2d711
SS
118.Nm
119will parse the
f734c0ae
SS
120.Li To: ,
121.Li Cc: ,
122and
123.Li Bcc:
124headers.
125The
126.Li Bcc:
127header will be removed independent of whether
128.Fl t
129is specified or not.
86e4d161
MS
130.El
131.Sh CONFIGURATION
132.Nm
133can be configured with three config files:
134.Pp
135.Bl -bullet -compact
136.It
137auth.conf
138.It
139dma.conf
86e4d161
MS
140.El
141.Pp
142These three files are stored per default in
143.Pa /etc/dma .
86e4d161
MS
144.Sh FILE FORMAT
145Every file contains parameters of the form
146.Sq name value .
147Lines containing boolean values are set to
148.Sq NO
149if the line is commented and to
150.Sq YES
151if the line is uncommented.
152Empty lines or lines beginning with a
153.Sq #
154are ignored.
155Parameter names and their values are case sensitive.
156.Sh PARAMETERS
157.Ss auth.conf
158SMTP authentication can be configured in
159.Pa auth.conf .
160Each line has the format
161.Dq Li user|smarthost:password .
162.Ss dma.conf
163Most of the behaviour of
164.Nm
165can be configured in
166.Pa dma.conf .
86e4d161
MS
167.Bl -tag -width 4n
168.It Ic SMARTHOST Xo
169(string, default=empty)
170.Xc
171If you want to send outgoing mails via a smarthost, set this variable to
172your smarthosts address.
173.It Ic PORT Xo
174(numeric, default=25)
175.Xc
176Use this port to deliver remote emails.
177Only useful together with the
178.Sq SMARTHOST
179option, because
180.Nm
b53f68fc
SW
181will deliver all mails to this port, regardless of whether a smarthost is set
182or not.
86e4d161 183.It Ic ALIASES Xo
db93ed9b 184(string, default=/etc/aliases)
86e4d161
MS
185.Xc
186Path to the local aliases file.
187Just stick with the default.
188.It Ic SPOOLDIR Xo
189(string, default=/var/spool/dma)
190.Xc
191Path to
192.Nm Ap s
193spool directory.
194Just stick with the default.
86e4d161 195.It Ic AUTHPATH Xo
a069120d 196(string, default=not set)
86e4d161
MS
197.Xc
198Path to the
199.Sq auth.conf
200file.
86e4d161
MS
201.It Ic SECURETRANS Xo
202(boolean, default=commented)
203.Xc
d28187a3 204Uncomment if you want TLS/SSL secured transfer.
86e4d161
MS
205.It Ic STARTTLS Xo
206(boolean, default=commented)
207.Xc
d28187a3 208Uncomment if you want to use STARTTLS.
86e4d161
MS
209Only useful together with
210.Sq SECURETRANS .
4dea15f5
PP
211.It Ic OPPORTUNISTIC_TLS Xo
212(boolean, default=commented)
213.Xc
214Uncomment if you want to allow the STARTTLS negotiation to fail.
215Most useful when
216.Nm
217is used without a smarthost, delivering remote messages directly to
218the outside mail exchangers; in opportunistic TLS mode, the connection will
219be encrypted if the remote server supports STARTTLS, but an unencrypted
220delivery will still be made if the negotiation fails.
221Only useful together with
222.Sq SECURETRANS
223and
224.Sq STARTTLS .
86e4d161
MS
225.It Ic CERTFILE Xo
226(string, default=empty)
227.Xc
228Path to your SSL certificate file.
dfce7456
MS
229.It Ic SECURE Xo
230(boolean, default=commented)
231.Xc
d28187a3 232Uncomment this entry and change it to
dfce7456
MS
233.Sq INSECURE
234to use plain text SMTP login over an insecure connection.
235You have to rename this variable manually to prevent that you send your
5a2a19a6 236password accidentally over an insecure connection.
86e4d161
MS
237.It Ic DEFER Xo
238(boolean, default=commented)
239.Xc
d28187a3 240Uncomment if you want that
86e4d161
MS
241.Nm
242defers your mail.
243You have to flush your mail queue manually with the
244.Fl q
245option.
246This option is handy if you are behind a dialup line.
8ee63931
SS
247.It Ic FULLBOUNCE Xo
248(boolean, default=commented)
249.Xc
250Uncomment if you want the bounce message to include the complete original
251message, not just the headers.
ebe7ade7
SS
252.It Ic MAILNAME Xo
253(string, default=empty)
254.Xc
27905878
SS
255The internet hostname
256.Nm
257uses to identify the host.
258If not set or empty, the result of
259.Xr gethostname 2
260is used.
261If
ebe7ade7 262.Sq MAILNAME
27905878
SS
263is an absolute path to a file, the first line of this file will be used
264as the hostname.
86e4d161 265.El
fcadfbe3
SS
266.Ss Environment variables
267The behavior of
268.Nm
269can be influenced by some environment variables.
270.Pp
271.Bl -tag -width 4n
272.It Ev EMAIL Xo
273.Xc
274Used to set the sender address (envelope-from).
275Use a plain address, in the form of
276.Li user@example.com .
277This value will be overridden when the
278.Fl f
279flag is used.
280.El
86e4d161
MS
281.Sh SEE ALSO
282.Xr mailaddr 7 ,
283.Xr mailwrapper 8 ,
284.Xr sendmail 8
285.Rs
286.%A "J. B. Postel"
287.%T "Simple Mail Transfer Protocol"
288.%O RFC 821
289.Re
290.Rs
291.%A "J. Myers"
292.%T "SMTP Service Extension for Authentication"
293.%O RFC 2554
294.Re
295.Rs
296.%A "P. Hoffman"
297.%T "SMTP Service Extension for Secure SMTP over TLS"
298.%O RFC 2487
299.Re
300.Sh HISTORY
301The
302.Nm
303utility first appeared in
304.Dx 1.11 .
305.Sh AUTHORS
306.Nm
307was written by
308.An Matthias Schmidt Aq matthias@dragonflybsd.org
309and
310.An Simon Schubert Aq corecode@dragonflybsd.org .