]> git.ipfire.org Git - people/ms/dma.git/blame - dma.8
dma: provide proper bounce error message
[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.\"
15386ecd 34.Dd September 2, 2008
86e4d161
MS
35.Dt DMA 8
36.Os
37.Sh NAME
38.Nm dma
39.Nd DragonFly Mail Agent
40.Sh SYNOPSIS
41.Nm
1b245941 42.Op Fl DiO
86e4d161
MS
43.Op Fl A Ar mode
44.Op Fl b Ar mode
45.Op Fl f Ar sender
46.Op Fl L Ar tag
47.Op Fl o Ar option
48.Op Fl r Ar sender
1b245941 49.Op Fl q 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
70.It Fl A Ar mode
71.Fl A Ns Ar c
72acts as a compatibility option for sendmail.
73.It Fl b Ar mode
74Specifying
75.Fl b Ns Ar p
76will list all mails currently stored in the mail queue.
77All other modes are are ignored.
78.It Fl D
79Don't run in the background.
80Useful for debugging.
81.It Fl f Ar sender
82Set sender address to
83.Ar sender .
84.It Fl i
85Ignore dots alone on lines by themselves in incoming messages.
86This should be set if you are reading data from a file.
87.It Fl L Ar tag
88Set the identifier used in syslog messages to the supplied
89.Ar tag .
90This is a compatibility option for sendmail.
9a0b96be
MS
91.It Fl O
92This is a compatibility option for sendmail.
86e4d161
MS
93.It Fl o Ar option
94Specifying
95.Fl o Ns Ar i
96is synonymous to
97.Fl i .
98All other options are ignored.
1b245941 99.It Fl q Ar arg
86e4d161 100Process saved messages in the queue.
1b245941 101The argument is required for compatibility with sendmail, and ignored.
86e4d161
MS
102.It Fl r Ar sender
103Same as
104.Fl f .
105.El
106.Sh CONFIGURATION
107.Nm
108can be configured with three config files:
109.Pp
110.Bl -bullet -compact
111.It
112auth.conf
113.It
114dma.conf
115.It
116virtusertable
117.El
118.Pp
119These three files are stored per default in
120.Pa /etc/dma .
86e4d161
MS
121.Sh FILE FORMAT
122Every file contains parameters of the form
123.Sq name value .
124Lines containing boolean values are set to
125.Sq NO
126if the line is commented and to
127.Sq YES
128if the line is uncommented.
129Empty lines or lines beginning with a
130.Sq #
131are ignored.
132Parameter names and their values are case sensitive.
133.Sh PARAMETERS
134.Ss auth.conf
135SMTP authentication can be configured in
136.Pa auth.conf .
137Each line has the format
138.Dq Li user|smarthost:password .
139.Ss dma.conf
140Most of the behaviour of
141.Nm
142can be configured in
143.Pa dma.conf .
86e4d161
MS
144.Bl -tag -width 4n
145.It Ic SMARTHOST Xo
146(string, default=empty)
147.Xc
148If you want to send outgoing mails via a smarthost, set this variable to
149your smarthosts address.
150.It Ic PORT Xo
151(numeric, default=25)
152.Xc
153Use this port to deliver remote emails.
154Only useful together with the
155.Sq SMARTHOST
156option, because
157.Nm
b53f68fc
SW
158will deliver all mails to this port, regardless of whether a smarthost is set
159or not.
86e4d161
MS
160.It Ic ALIASES Xo
161(string, default=/etc/mail/aliases)
162.Xc
163Path to the local aliases file.
164Just stick with the default.
165.It Ic SPOOLDIR Xo
166(string, default=/var/spool/dma)
167.Xc
168Path to
169.Nm Ap s
170spool directory.
171Just stick with the default.
172.It Ic VIRTPATH Xo
173(string, default=/etc/dma/virtusertable)
174.Xc
175Path to the
176.Sq virtusertable
177file.
86e4d161
MS
178.It Ic AUTHPATH Xo
179(string, default=/etc/dma/auth.conf)
180.Xc
181Path to the
182.Sq auth.conf
183file.
86e4d161
MS
184.It Ic VIRTUAL Xo
185(boolean, default=commented)
186.Xc
187Comment if you want virtual user support.
188.It Ic SECURETRANS Xo
189(boolean, default=commented)
190.Xc
191Comment if you want TLS/SSL secured transfer.
192.It Ic STARTTLS Xo
193(boolean, default=commented)
194.Xc
195Comment if you want to use STARTTLS.
196Only useful together with
197.Sq SECURETRANS .
198.It Ic CERTFILE Xo
199(string, default=empty)
200.Xc
201Path to your SSL certificate file.
dfce7456
MS
202.It Ic SECURE Xo
203(boolean, default=commented)
204.Xc
205Change this entry to
206.Sq INSECURE
207to use plain text SMTP login over an insecure connection.
208You have to rename this variable manually to prevent that you send your
5a2a19a6 209password accidentally over an insecure connection.
86e4d161
MS
210.It Ic DEFER Xo
211(boolean, default=commented)
212.Xc
213Comment if you want that
214.Nm
215defers your mail.
216You have to flush your mail queue manually with the
217.Fl q
218option.
219This option is handy if you are behind a dialup line.
220.El
221.Ss virtusertable
222The
223.Pa virtusertable
224file specifies a virtual user table.
225Each line has the format
226.Dq Li localuser:mail-address .
227Some smarthosts do not accept mails from unresolvable email address
b53f68fc 228(e.g.\& user@localhost) so you have to rewrite your outgoing email
86e4d161
MS
229address to a valid address.
230.Sh SEE ALSO
231.Xr mailaddr 7 ,
232.Xr mailwrapper 8 ,
233.Xr sendmail 8
234.Rs
235.%A "J. B. Postel"
236.%T "Simple Mail Transfer Protocol"
237.%O RFC 821
238.Re
239.Rs
240.%A "J. Myers"
241.%T "SMTP Service Extension for Authentication"
242.%O RFC 2554
243.Re
244.Rs
245.%A "P. Hoffman"
246.%T "SMTP Service Extension for Secure SMTP over TLS"
247.%O RFC 2487
248.Re
249.Sh HISTORY
250The
251.Nm
252utility first appeared in
253.Dx 1.11 .
254.Sh AUTHORS
255.Nm
256was written by
257.An Matthias Schmidt Aq matthias@dragonflybsd.org
258and
259.An Simon Schubert Aq corecode@dragonflybsd.org .