I'm not sure this can be resolved.  Environment variables can't be 
altered once the qmail-smtpd process has been started:
     http://www.spamdyke.org/documentation/FAQ.html#SUGGESTION7

spamdyke always sets the RELAYCLIENT variable because it needs to 
override qmail's filters when a client meets spamdyke's criteria for 
relaying.  Specifically, if a client authenticates or matches a 
whitelist, spamdyke needs to prevent qmail from blocking the message 
later.  I suppose I could change spamdyke to not set the RELAYCLIENT 
variable if authentication is turned off and no whitelists are 
enabled... but the method to trigger/stop the variable would be so 
complex I think it would cause more confusion than it's worth.

What does the rest of your spamdyke configuration look like?  Could you 
use it with no whitelists, no configuration directories and "smtp-auth" 
set to "none" or "observe"?

-- Sam Clippinger

On 11/23/10 3:01 PM, Bgs wrote:
>
> Trying again, it didn't show up on the list...
>
> -------- Original Message --------
> Subject:      RELAYCLIENT setting when spamdyke is authenticating
> Date:         Sun, 21 Nov 2010 14:52:14 +0100
> From:         Bgs <[email protected]>
> To:   spamdyke users <[email protected]>
>
>
>
>
>  Hi,
>
> I might be the one misinterpreting the docs, but something is strange 
> for me.
>
> The setup:
>
> spamdyke with auth/access file + qmail-scanner with spamassassin
>
> In my access file I have localhost with RELAYCLIENT and no 
> qmail-scanner, all other without RELAYCLIENT and qmail-scanner.
>
> I have relay-level set to 'normal' which according to the docs, does 
> the following:
>
> |normal|: Prevent relaying unless the sender authenticates, the access 
> file allows relaying or an environment variable allows relaying. 
> Requires |local-domains-entry| or |local-domains-file| and |access-file|.
>
>
> So I was expecting the following:
>
>  - Normal mail arrives for relay -> denied (does this)
>  - Normal mail arrives for domain in rcpthost -> do NOT set 
> relayclient, pass to q-s and further to qmail-smtpd which will handle 
> it (it doesn't do this)
>  - Authenticated user sends mail -> spamdyke sets RELAYCLIENT, q-s 
> skips checks, qmail-smtpd processes mail
>
> The second buffles me:
>
>  - access file does not set RELAYCLIENT
>  - there is no environment variable passed to spamdyke
>  - the user does not authenticate
>
> Apparently spamdyke also sets RELAYCLIENT when the domain is in 
> rcpthosts. This means that spamdyke disables spam filtering. If I 
> override qmail-scanner (with explicit QS_SPAMASSASSIN environment 
> variable) to check all mail, authenticated users get filtered as well 
> which leads to loads of complaints.
>
> Am I getting something wrong or is this a bug?
>
> Regards
> Bgs
>
>
> _______________________________________________
> 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