From: Jay Lee [mailto:jl...@pbu.edu]
Bowie Bailey wrote:
From: Sam Varshavchik [mailto:mrs...@courier-mta.com]
Bowie Bailey writes:
For testing purposes, I want to set up my server to accept all email
and deliver it to a single mailbox.
In other words, ALL email that passes through this server should be
redirected so there is never any outgoing email.
Is this possible?
Yes. Set up courier-authlib to use the authuserdb module only, install
an empty userdb, with no records, and set up
$sysconfdir/aliasdir/.courier-default (see the dot-courier man page).
Note that the catch-all mailbox must be owned by the courier
userid/groupid.
This is not quite what I need.
I need to be able to accept and reject mail normally based on the LDAP
and smtpaccess settings. Once this is done, however, any email that is
outbound needs to be redirected somewhere else. I really don't care if
it is going to a mailbox or /dev/null.
I could configure esmtproutes to send everything to a non-existent
smarthost, although that would result in having to manually clean out
the mailq on a regular basis. Or maybe create a smarthost configured as
you describe above. Can you think of any other options?
Maybe you should detail better what your ultimate goal is here. There
might be an easier way of accomplishing it.
There is an external program that will be generating quite a bit of email to
this server. Some of that mail will be delivered locally via a mail
processing program and some of it will be for relay elsewhere. The
processing program will resubmit some of the mail for delivery elsewhere.
We need to be able to run this for testing purposes without any of the
external mail being delivered.
Bowie