Menu

#7 whitelisting the sender email or domain

open
nobody
None
5
2011-03-29
2011-03-29
Anonymous
No

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");
}

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.