]> git.ipfire.org Git - people/ms/dma.git/blobdiff - dma.8
Merge pull request #34 from mtremer/better-authentication
[people/ms/dma.git] / dma.8
diff --git a/dma.8 b/dma.8
index 1fb168e4f1009973ce38b587c95c7471a5fe994d..76ab174fe590061454e91454bcc09816460f8412 100644 (file)
--- a/dma.8
+++ b/dma.8
@@ -1,4 +1,5 @@
 .\"
+.\" Copyright (c) 2008-2014, Simon Schubert <2@0x2c.org>.
 .\" Copyright (c) 2008
 .\"    The DragonFly Project.  All rights reserved.
 .\"
@@ -29,9 +30,7 @@
 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $DragonFly: src/libexec/dma/dma.8,v 1.5 2008/02/04 08:58:54 matthias Exp $
-.\"
-.Dd February 4, 2008
+.Dd February 13, 2014
 .Dt DMA 8
 .Os
 .Sh NAME
 .Nd DragonFly Mail Agent
 .Sh SYNOPSIS
 .Nm
-.Op Fl DiOq
-.Op Fl A Ar mode
-.Op Fl b Ar mode
+.Op Fl DiOt
+.Op Fl A Ns Ar mode
+.Op Fl b Ns Ar mode
 .Op Fl f Ar sender
 .Op Fl L Ar tag
-.Op Fl o Ar option
+.Op Fl o Ns Ar option
 .Op Fl r Ar sender
+.Op Fl q Ns Op Ar arg
 .Op Ar recipient ...
 .Sh DESCRIPTION
 .Nm
@@ -53,7 +53,7 @@ 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 (AUTH LOGIN only).
+authentication.
 .Pp
 .Nm
 is not intended as a replacement for real, big MTAs like
@@ -66,20 +66,31 @@ does not listen on port 25 for incoming connections.
 .Pp
 The options are as follows:
 .Bl -tag -width indent
-.It Fl A Ar mode
-.Fl A Ns Ar c
+.It Fl A Ns Ar mode
+.Fl \&Ac
 acts as a compatibility option for sendmail.
-.It Fl b Ar mode
-Specifying
-.Fl b Ns Ar p
-will list all mails currently stored in the mail queue.
-All other modes are are ignored.
+.It Fl b Ns Ar mode
+.Bl -tag -width indent
+.It Fl bp
+List all mails currently stored in the mail queue.
+.It Fl bq
+Queue the mail, but don't attempt to deliver it.
+See also the
+.Sq DEFER
+config file setting below.
+.El
+.Pp
+All other
+.Ar mode Ns
+s are are ignored.
 .It Fl D
 Don't run in the background.
 Useful for debugging.
 .It Fl f Ar sender
-Set sender address to
+Set sender address (envelope-from) to
 .Ar sender .
+This overrides the value of the environment variable
+.Ev EMAIL .
 .It Fl i
 Ignore dots alone on lines by themselves in incoming messages.
 This should be set if you are reading data from a file.
@@ -89,32 +100,45 @@ Set the identifier used in syslog messages to the supplied
 This is a compatibility option for sendmail.
 .It Fl O
 This is a compatibility option for sendmail.
-.It Fl o Ar option
+.It Fl o Ns Ar option
 Specifying
-.Fl o Ns Ar i
+.Fl oi
 is synonymous to
 .Fl i .
 All other options are ignored.
-.It Fl q
+.It Fl q Ns Op Ar arg
 Process saved messages in the queue.
+The argument is optional and ignored.
 .It Fl r Ar sender
 Same as
 .Fl f .
+.It Fl t
+Obtain recipient addresses from the message header.
+.Nm
+will parse the
+.Li To: ,
+.Li Cc: ,
+and
+.Li Bcc:
+headers.
+The
+.Li Bcc:
+header will be removed independent of whether
+.Fl t
+is specified or not.
 .El
 .Sh CONFIGURATION
 .Nm
-can be configured with three config files:
+can be configured with two config files:
 .Pp
 .Bl -bullet -compact
 .It
 auth.conf
 .It
 dma.conf
-.It
-virtusertable
 .El
 .Pp
-These three files are stored per default in
+These two files are stored per default in
 .Pa /etc/dma .
 .Sh FILE FORMAT
 Every file contains parameters of the form
@@ -139,7 +163,6 @@ Most of the behaviour of
 .Nm
 can be configured in
 .Pa dma.conf .
-.Pp
 .Bl -tag -width 4n
 .It Ic SMARTHOST Xo
 (string, default=empty)
@@ -154,12 +177,29 @@ Only useful together with the
 .Sq SMARTHOST
 option, because
 .Nm
-will deliver all mails to this port, regardless if a smarthost is set or not.
+will deliver all mails to this port, regardless of whether a smarthost is set
+or not.
 .It Ic ALIASES Xo
-(string, default=/etc/mail/aliases)
+(string, default=/etc/aliases)
 .Xc
 Path to the local aliases file.
 Just stick with the default.
+The aliases file is of the format
+.Dl nam: dest1 dest2 ...
+In this case, mails to
+.Li nam
+will instead be delivered to
+.Li dest1
+and
+.Li dest2 ,
+which in turn could be entries in
+.Pa /etc/aliases .
+The special name
+.Ql *
+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.
 .It Ic SPOOLDIR Xo
 (string, default=/var/spool/dma)
 .Xc
@@ -167,56 +207,130 @@ Path to
 .Nm Ap s
 spool directory.
 Just stick with the default.
-.It Ic VIRTPATH Xo
-(string, default=/etc/dma/virtusertable)
-.Xc
-Path to the
-.Sq virtusertable
-file.
 .It Ic AUTHPATH Xo
-(string, default=/etc/dma/auth.conf)
+(string, default=not set)
 .Xc
 Path to the
 .Sq auth.conf
 file.
-.It Ic VIRTUAL Xo
-(boolean, default=commented)
-.Xc
-Comment if you want virtual user support.
 .It Ic SECURETRANS Xo
 (boolean, default=commented)
 .Xc
-Comment if you want TLS/SSL secured transfer.
+Uncomment if you want TLS/SSL secured transfer.
 .It Ic STARTTLS Xo
 (boolean, default=commented)
 .Xc
-Comment if you want to use STARTTLS.
+Uncomment if you want to use STARTTLS.
 Only useful together with
 .Sq SECURETRANS .
+.It Ic OPPORTUNISTIC_TLS Xo
+(boolean, default=commented)
+.Xc
+Uncomment if you want to allow the STARTTLS negotiation to fail.
+Most useful when
+.Nm
+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
+.Sq SECURETRANS
+and
+.Sq STARTTLS .
 .It Ic CERTFILE Xo
 (string, default=empty)
 .Xc
 Path to your SSL certificate file.
+.It Ic SECURE Xo
+(boolean, default=commented)
+.Xc
+Uncomment this entry and change it to
+.Sq INSECURE
+to use plain text SMTP login over an insecure connection.
+You have to rename this variable manually to prevent that you send your
+password accidentally over an insecure connection.
 .It Ic DEFER Xo
 (boolean, default=commented)
 .Xc
-Comment if you want that
+Uncomment if you want that
 .Nm
 defers your mail.
 You have to flush your mail queue manually with the
 .Fl q
 option.
 This option is handy if you are behind a dialup line.
+.It Ic FULLBOUNCE Xo
+(boolean, default=commented)
+.Xc
+Uncomment if you want the bounce message to include the complete original
+message, not just the headers.
+.It Ic MAILNAME Xo
+(string, default=empty)
+.Xc
+The internet hostname
+.Nm
+uses to identify the host.
+If not set or empty, the result of
+.Xr gethostname 3
+is used.
+If
+.Sq MAILNAME
+is an absolute path to a file, the first line of this file will be used
+as the hostname.
+.It Ic MASQUERADE Xo
+(string, default=empty)
+.Xc
+Masquerade the envelope-from addresses with this address/hostname.
+Use this setting if mails are not accepted by destination mail servers
+because your sender domain is invalid.
+This setting is overridden by the
+.Fl f
+flag and the
+.Ev EMAIL
+environment variable.
+.Pp
+If
+.Sq MASQUERADE
+does not contain a
+.Li @
+sign, the string is interpreted as a host name.
+For example, setting
+.Sq MASQUERADE
+to
+.Ql john@
+on host
+.Ql hamlet
+will send all mails as
+.Ql john@hamlet ;
+setting it to
+.Ql percolator
+will send all mails as
+.Ql Sm off Va username @percolator .
+.Sm on
+.It Ic NULLCLIENT Xo
+.Xc
+Bypass aliases and local delivery, and instead forward all mails to
+the defined
+.Sq SMARTHOST .
+.Sq NULLCLIENT
+requires
+.Sq SMARTHOST
+to be set.
+.El
+.Ss Environment variables
+The behavior of
+.Nm
+can be influenced by some environment variables.
+.Bl -tag -width 4n
+.It Ev EMAIL Xo
+.Xc
+Used to set the sender address (envelope-from).
+Use a plain address, in the form of
+.Li user@example.com .
+This value will be overridden when the
+.Fl f
+flag is used.
 .El
-.Ss virtusertable
-The
-.Pa virtusertable
-file specifies a virtual user table.
-Each line has the format
-.Dq Li localuser:mail-address .
-Some smarthosts do not accept mails from unresolvable email address
-(e.g. user@localhost) so you have to rewrite your outgoing email
-address to a valid address.
 .Sh SEE ALSO
 .Xr mailaddr 7 ,
 .Xr mailwrapper 8 ,
@@ -242,8 +356,9 @@ The
 utility first appeared in
 .Dx 1.11 .
 .Sh AUTHORS
+.An -nosplit
 .Nm
 was written by
-.An Matthias Schmidt Aq matthias@dragonflybsd.org
+.An Matthias Schmidt Aq Mt matthias@dragonflybsd.org
 and
-.An Simon Schubert Aq corecode@dragonflybsd.org .
+.An Simon Schubert Aq Mt 2@0x2c.org .