DMA(8) | System Manager's Manual | DMA(8) |
dma
— DragonFly
Mail Agent
dma |
[-DiOt ]
[-A mode]
[-b mode]
[-f sender]
[-L tag]
[-o option]
[-r sender]
[-q [arg]]
[recipient ...] |
dma
is a small Mail Transport Agent (MTA),
designed for home and office use. It accepts mails from locally installed
Mail User Agents (MUA) and delivers the mails either locally or to a remote
destination. Remote delivery includes several features like TLS/SSL support
and SMTP authentication.
dma
is not intended as a replacement for
real, big MTAs like sendmail(8) or
postfix(1). Consequently, dma
does
not listen on port 25 for incoming connections.
The options are as follows:
-A
mode-Ac
acts as a compatibility option for sendmail.-b
mode-bp
-bq
All other modes are are ignored.
-D
-f
senderEMAIL
.-i
-L
tag-O
-o
option-oi
is synonymous to
-i
. All other options are ignored.-q
[arg]-r
sender-f
.-t
dma
will parse the To:
,
Cc:
, and Bcc:
headers. The
Bcc:
header will be removed independent of whether
-t
is specified or not.dma
can be configured with two config
files:
These two files are stored per default in /etc/dma.
Every file contains parameters of the form ‘name value’. Lines containing boolean values are set to ‘NO’ if the line is commented and to ‘YES’ if the line is uncommented. Empty lines or lines beginning with a ‘#’ are ignored. Parameter names and their values are case sensitive.
SMTP authentication can be configured in
auth.conf. Each line has the format
“user|smarthost:password
”.
Most of the behaviour of dma
can be
configured in dma.conf.
SMARTHOST
(string, default=mail.example.com)PORT
(numeric, default=25)dma
will
deliver all mails to this port, regardless of whether a smarthost is set
or not.ALIASES
(string, default=/etc/aliases)nam: dest1 dest2 ...
nam
will instead be delivered
to dest1
and dest2
, which
in turn could be entries in /etc/aliases. The
special name ‘*
’ can be used to
create a catch-all alias, which gets used if no other matching alias is
found. Use the catch-all alias only if you don't want any local mail to be
delivered.SPOOLDIR
(string, default=/var/spool/dma)dma
's spool directory. Just stick with the
default.AUTHPATH
(string, default=not set)SECURETRANS
(boolean, default=commented)STARTTLS
(boolean, default=commented)OPPORTUNISTIC_TLS
(boolean, default=commented)dma
is used without a smarthost,
delivering remote messages directly to the outside mail exchangers; in
opportunistic TLS mode, the connection will be encrypted if the remote
server supports STARTTLS, but an unencrypted delivery will still be made
if the negotiation fails. Only useful together with
‘SECURETRANS’ and ‘STARTTLS’.CERTFILE
(string, default=empty)SECURE
(boolean, default=commented)DEFER
(boolean, default=commented)dma
defers your mail.
You have to flush your mail queue manually with the
-q
option. This option is handy if you are behind
a dialup line.FULLBOUNCE
(boolean, default=commented)MAILNAME
(string, default=empty)dma
uses to identify the
host. If not set or empty, the result of gethostname(3)
is used. If ‘MAILNAME’ is an absolute path to a file, the
first line of this file will be used as the hostname.MASQUERADE
(string, default=empty)-f
flag and the EMAIL
environment variable.
If ‘MASQUERADE’ does not contain a
@
sign, the string is interpreted as a host
name. For example, setting ‘MASQUERADE’ to
‘john@
’ on host
‘hamlet
’ will send all mails as
‘john@hamlet
’; setting it to
‘percolator
’ will send all mails
as ‘Sm off username
@percolator
’.
NULLCLIENT
The behavior of dma
can be influenced by
some environment variables.
EMAIL
user@example.com
. This value will be
overridden when the -f
flag is used.mailaddr(7), mailwrapper(8), sendmail(8)
J. B. Postel, Simple Mail Transfer Protocol, RFC 821.
J. Myers, SMTP Service Extension for Authentication, RFC 2554.
P. Hoffman, SMTP Service Extension for Secure SMTP over TLS, RFC 2487.
The dma
utility first appeared in
DragonFly 1.11.
dma
was written by
Matthias Schmidt
<matthias@dragonflybsd.org>
and Simon Schubert
<2@0x2c.org>.
February 13, 2014 | Debian |