]> git.ipfire.org Git - people/ms/dma.git/blame - README.Debian
Fix Debian bug #544748 - document the correct defaults.
[people/ms/dma.git] / README.Debian
CommitLineData
fa8d8158
PP
1dma for Debian
2--------------
3
5d58b856 41. Deferred delivery by default
fa8d8158 5
5d58b856
PP
6The dma mail transfer agent may operate in two modes - immediate and
7deferred. In both cases, a new dma process is spawned for the delivery
8of each outgoing message, and this process lives on until the message is
9either successfully delivered or it times out after five days.
10
11In immediate delivery mode, the new dma process is spawned as soon as
12the message is submitted to the queue. In deferred mode, which is
13the default for the Debian package, the message is left in the queue
14and will only be processed when dma is invoked separately with the "-q"
6a311c5f 15command-line option. This is the preferred delivery mode - even though
5d58b856
PP
16there may be slight delays, the queue must still be processed periodically
17anyway (if an immediate delivery is deferred, the message is still left
18on the queue), so there's no harm done in always doing it that way.
19
20Hence, the Debian package of dma installs a cron job that attempts to
21flush the queue every five minutes. Note that this does NOT mean that
22message delivery will be attempted every five minutes! Once the queue
23is flushed, a separate dma instance is spawned for each still-unhandled
24message, and it takes care of reasonable exponential back-off in case of
25delivery problems.
26
272. Smarthost operation by default - needs to be configured!
28
fd2815af
PP
29After first installing dma, you need to configure it for proper operation -
30whether it should deliver all outgoing e-mail messages through a single
31smarthost or attempt to contact the remote mail servers directly. This should
32be configured through the debconf questions, but you may change the setting
33using the SMARTHOST directive in the /etc/dma/dma.conf file.
5d58b856
PP
34
353. Double-bounce handling
36
6a311c5f 37By default, the dma mail transfer agent does not attempt to handle double
5d58b856
PP
38bounces - it aborts the delivery with a critical syslog message.
39This, combined with the Debian package's default of "flush the queue
40every five minutes", may pose something of a strain on the mail server :)
41Thus, the Debian version of dma adds a new feature - you may specify
42an external program to handle double bounces with the DBOUNCEPROG
43directive in the /etc/dma/dma.conf file. Also included is a sample
44program, dbounce-simple-safecat, which uses the safecat utility to
45copy the bounce message into a Maildir-structured storage,
6a311c5f
PP
46/var/spool/mail/dma-bounces by default. For the present, the copied file
47still has the dma internal format, which is plain text, but is not really
48a mailbox :)
5d58b856 49
fd2815af 50 -- Peter Pentchev <roam@ringlet.net> Mon, 21 Jun 2010 11:31:02 +0300