1 From: Nigel Metheringham <Nigel.Metheringham@ThePLAnet.net>
2 Date: Wed, 23 Dec 1998 09:30:11 +0000
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....
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
15 # held_domain transport
16 # ~~~~~~~~~~~~~~~~~~~~~
18 # This is a transport used to stash held mail into.
19 # Its basically a BSMTP maildir setup.
23 directory = /var/spool/mail/held_domains/${lc:$domain}
37 # held_domains director
38 # ~~~~~~~~~~~~~~~~~~~~~
40 # Handles domains that are broken in some way so we hold mail
41 # for them in a bsmtp mail queue
44 domains = "HELD_DOMAINS"
46 transport = held_domain
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).
52 This keeps our queues manageable and prevents piles of extra delay messages