On Sun, Sep 28, 2003 at 05:44:59PM -0400, Sam Varshavchik wrote:
> Courier User writes:
> 
> >  [ ... ]
> >
> >I presume that the final three arguments are the values of the
> >following environment variables, respectively:
> >
> >  TCPREMOTEHOST
> >  TCPREMOTEIP
> >  SENDER
> >
> >Is that correct?
> 
> Correct.
>
> >Also, can it be assumed that if BLOCK2 is also set, that it, too,
> >will be appended as an argument to maildrop in this case?
> 
> No, you can use the import command to take it from the environment.
> 
> While reviewing the code to confirm the above, I discovered that the 
> environment variables BOUNCE and BOUNCE2, if set in the smtpaccess file, 
> will be passed as additional arguments to the filter.  I don't remember 
> what was the original reason for that.
> 
> >In general, can I count on these arguments always being passed to
> >maildrop during rcptfilter and smptfilter calls, in the local
> >filtering case?
> 
> Yes.

Thanks for this info.  And I have two more related questions
concerning local filtering:

In the "rcptfilter" step, I understand how the exit code 0 causes
the message to be accepted, the code 99 causes it to be passed to a
second "smtpfilter" step, and any other code causes the message to
be rejected.

If I don't have an "smtpfilter" step (i.e., no "smtpfilter" or
"smtpfilter-default" or "smtpfilter-ext" file exists), do exit codes
0 and 99 from "rcptfilter" both identically cause the message to be
passed on for further processing, such as subsequent courierfilter,
COURIERHOME/etc/maildroprc, or $HOME/.courier processing, or is the
message unconditionally whitelisted without further processing?

Similarly, if there is indeed an "smtpfilter" step that gets invoked
(due to an "rcptfilter" step returning error code 99), and if that
"smptfilter" step returns with an exit code of 0, will further
processing take place, or is the message unconditionally whitelisted
at that moment?

Thanks.


> >If so, should the documentation be upgraded to state that this is
> >the case?
> 
> Probably.
> 



-- 
 Courier User
 [EMAIL PROTECTED]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to