11 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Re: Trap all inco...
FromSent OnAttachments
Bowie BaileyJul 15, 2005 7:24 am 
Sam VarshavchikJul 15, 2005 3:50 pm 
Bowie BaileyJul 18, 2005 8:55 am 
Jay LeeJul 18, 2005 9:06 am 
Bowie BaileyJul 18, 2005 9:29 am 
David GomillionJul 18, 2005 9:45 am 
Jerry AmundsonJul 18, 2005 10:36 am 
Bowie BaileyJul 18, 2005 11:59 am 
Bowie BaileyJul 18, 2005 12:07 pm 
Jerry AmundsonJul 18, 2005 2:52 pm 
Flavio StanchinaJul 21, 2005 8:31 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Re: Trap all incoming emailActions...
From:Jerry Amundson (jer@pbs.com)
Date:Jul 18, 2005 2:52:22 pm
List:net.sourceforge.lists.courier-users

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