Am 09.05.2014 01:34, schrieb Sam Varshavchik:
> The shell script would get invoked in the manner described in the
> localmailfilter man apge:
> 
> HOME=$HOME <pathname> -D uid/gid -M filter
> 
> So, the nondeliverable account gets set up as a pseudo account with a
> home directory. The shell script needs to parse its command line
> arguments. If <filter> begins with 'rcptfilter', exit with status code 0
> unless $HOME is the pseudo account, in which case the exit code is 99.

Sorry, I don't get it. :/

I tried a lot but I cannot get the destination address. Neither in
running as rcptfilter nor as smtpfilter. The HOME is alright but how can
I get WHICH ONE was addressed?

Say, there are 50 abandoned addresses that I want to respond with a
custom SMTP error. How could my script distinguish which response to choose?

We use virtualdomains here, so all addresses come in with the same UID
and HOME. I did not find any way to guess which one was chosen.


My current workaround is to set up a pseudo home-directory like this:
/tmp/reject/[id] so I can search the database for the message to return
for this recipient id. I don't really like this solution.



Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to