On Monday 18 July 2005 14:04, Bowie Bailey wrote:
From: Jerry Amundson [mailto:jer...@pbs.com]
On Monday 18 July 2005 11:28, Bowie Bailey wrote:
We need to be able to run this for testing purposes without any
of the external mail being delivered.
Bowie
If the Courier server is not using msa, you could have esmtproutes
as:
: localhost,587/SECURITY=NONE
... have esmtpd-msa listening, then, well, I haven't thought
through it beyond that. :-)
That's about the same as pointing it to a non-existent server. The
connection will fail and the message will stay in the queue. That is
a possible solution, but not very elegant as the mailq will expand
quickly and have to be manually cleaned out.
I was hoping someone would chime in and make it elegant. :-)
To continue... "esmtpd-msa start" so the connection succeeds to an
existant server. [the esmtpd-msa script may need to change...?]
etc/smtpaccess-msa/default could contain:
*<tab>accept,SOMEVAR=foo
[can couriertcpd variables be arbitrary?]
etc/maildroprc then checks if SOMEVAR=foo and if true drops the message
(exit's)
That assumes DEFAULTDELIVERY points to maildrop. If not, then change the
"couriertcpd" line in esmtpd-msa to some program other than
courieresmtpd such that stdin gets dropped in the bit-bucket. Per
couriertcpd manpage,
"The program's standard input and output are set to the network
connection."
Hmm, so the latter needs to talk smtp, so perhaps maildrop is the only
option?
jerry