minimal updates to exim 3.3
[exim-website.git] / config.samples / C014
1 From: Nigel Metheringham <Nigel.Metheringham@ThePLAnet.net>
2 Date: Wed, 23 Dec 1998 09:30:11 +0000
3
4 If I have a situation where a site I MX for has a known outage I stash all
5 their mail into a directory in BSMTP format.  This is how I do it -
6 another way would be to use a router rather than a director to do this....
7
8  EXICONF_DIR    = /var/exim
9  HELD_DOMDB     = EXICONF_DIR/held_domains.cdb
10  HELD_DOMAINS   = cdb;HELD_DOMDB
11  LOCAL_DOMAINS  = ...:HELD_DOMAINS:...
12  local_domains  = LOCAL_DOMAINS
13
14  #
15  # held_domain transport
16  # ~~~~~~~~~~~~~~~~~~~~~
17  #
18  # This is a transport used to stash held mail into.
19  # Its basically a BSMTP maildir setup.
20
21  held_domain:
22   driver = appendfile
23   directory = /var/spool/mail/held_domains/${lc:$domain}
24   maildir_format
25   user = exim
26   group = exim
27   mode = 0640
28   create_directory
29   bsmtp = domain
30   prefix = ""
31   suffix = ""
32   no_from_hack
33
34 .... 
35
36  #
37  # held_domains director
38  # ~~~~~~~~~~~~~~~~~~~~~
39  #
40  # Handles domains that are broken in some way so we hold mail
41  # for them in a bsmtp mail queue
42  #
43  held_domains:
44   domains = "HELD_DOMAINS"
45   driver = smartuser
46   transport = held_domain
47
48 When the outage is over I then knock the entry out of the held domains
49 cdb, and then cat all the BSMTP files into exim -bS (probably with a few
50 extra options to make it route and queue them).
51
52 This keeps our queues manageable and prevents piles of extra delay messages
53 being sent out.