You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered that domain-admin specific spam score is not working in SQLSpamSettings.pm.
May be, I 'm not well using the feature.
In the code we have in the LookupScoreList function:
return $LowHigh->{$to} if $LowHigh->{$to};
return $LowHigh->{$todomain} if $LowHigh->{$todomain};
return $LowHigh->{"admin"} if $LowHigh->{"admin"};
If in the table users we have the user [email protected] ($to) and the default "admin" user, it's working and the code use the specific low/high score.
But for [email protected], it's not working as the code is looking for only the domain part.
I can create a user called domain.tld in the database (but only as "Administrator"). With an administrator domain.tld user, the code use the $todomain and works with a specific low/high score for all email from this domain.
The problem is that this administrator is not an "Domain administrator" and can see all mails, not only it how domain mails.
It will be better to look for [email protected] as a regular domain admin user.
Cheers,
The text was updated successfully, but these errors were encountered:
This would break the settings for normal users. Wouldn't it be better to change it here instead?
return $LowHigh->{$to} if $LowHigh->{$to}; //check user setting
return $LowHigh->{$todomain} if $LowHigh->{$todomain}; //check "legacy" domain setting
return $LowHigh->{'admin@' . $todomain} if $LowHigh->{'admin@' . $todomain} //check new domain setting (in user account admin@<domain.tld>
return $LowHigh->{"admin"} if $LowHigh->{"admin"}; //check global admin
Hi!
I discovered that domain-admin specific spam score is not working in SQLSpamSettings.pm.
May be, I 'm not well using the feature.
In the code we have in the LookupScoreList function:
If in the table users we have the user [email protected] ($to) and the default "admin" user, it's working and the code use the specific low/high score.
But for [email protected], it's not working as the code is looking for only the domain part.
I can create a user called domain.tld in the database (but only as "Administrator"). With an administrator domain.tld user, the code use the $todomain and works with a specific low/high score for all email from this domain.
The problem is that this administrator is not an "Domain administrator" and can see all mails, not only it how domain mails.
It will be better to look for [email protected] as a regular domain admin user.
Cheers,
The text was updated successfully, but these errors were encountered: