We have modified the server to add a second optin/optout check using sender
address (instead of recipient), which we think is much more useful to the
user. The code is below.
/// ORIGINAL CODE:
# optin/optout checks
if (! $self->greylisting_active($recipient)) {
$self->mylog('optin', 3, "greylisting inactive for $recipient");
return $self->{sqlgrey}{prepend} ?
$prepend . "greylisting inactive for $recipient in $software"
: 'dunno';
} else {
$self->mylog('optin', 3, "greylisting active for $recipient");
}
/// ADDED THIS CODE:
if (! $self->greylisting_active("$sender_name\@$sender_domain")) {
$self->mylog('optin', 3, "greylisting inactive for
$sender_name\@$sender_domain");
return $self->{sqlgrey}{prepend} ?
$prepend . "greylisting inactive for
$sender_name\@$sender_domain in $software"
: 'dunno';
} else {
$self->mylog('optin', 3, "greylisting active for
$sender_name\@$sender_domain");
}