The code you're looking for is in spamdyke.c, in the process_access() 
function, starting on line 2166.  If the "local-domains-file" option is 
given and the "relay-level" option is "normal" or "allow-all", the 
RELAYCLIENT environment variable is set before qmail-smtpd is started.

The code you found in filter.c is correct -- at that point, spamdyke is 
deciding whether to block a recipient with a "relaying denied" message.  
For the purposes of that action, "no-check" and "allow-all" should 
behave the same (i.e. spamdyke will not intervene).

-- Sam Clippinger

Mirko Buffoni wrote:
> Hi,
>
> again on relay check topic:  shouldn't RELAY_LEVEL_ALLOW_ALL
> always allow relaying (open relay mode)?
>
> in filter.c:
>
>          case RELAY_LEVEL_NO_CHECK:
>            break;
>
>          case RELAY_LEVEL_ALLOW_ALL:
>            break;
>
> it means, no_check  and allow_all are equivalent?
>
> shouldn't allow_all set RELAY_CLIENT environment variable.
> Because otherwise, if qmail is patched for smtp auth check,
> will always do this check.
>
> RELAY_LEVEL_ALLOW_ALL is used only in filter.c and config_test.c
> I do not see any place where environment variable can be set.
> This could be an incorrect behavior.
>
> Mirko
>
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>   
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to