John Oxley wrote:
> How do I dump all mail for a domain in the queue into a batch SMTP file?
This is modified from the examples at:
http://exim.org/exim-html-4.50/doc/html/spec_44.html#SECT44.11
http://exim.org/exim-html-4.50/doc/html/spec_44.html#SECT44.12
with the addition of a macro so you can leave it permanently in the
config file, and set the macro on the command line to dump the queue for
a specific domain:
begin routers
.ifdef BSMTP_DOMAIN
bsmtp_domain:
driver = manualroute
transport = bsmtp_appendfile
route_list = BSMTP_DOMAIN BSMTP_DOMAIN
.endif
begin transports
bsmtp_appendfile:
driver = appendfile
directory = /var/bsmtp/$host
batch_max = 1000
use_bsmtp
user = exim
As root:
exim -Rf example.com -DBSMTP_DOMAIN=example.com
- Marc