This is my first post so please excuse any misdemeanor's
the greylisting plugin contains:
# Decline if ALL recipients are whitelisted
if (($transaction->notes('whitelistrcpt')||0) ==
scalar($transaction->recipients)) {
$self->log(LOGWARN,"all recipients whitelisted - skipping");
return DECLINED;
}
can someone suggest how I could modify this code to return DECLINED if
the sender (mail from) contains .nz at the end of the address?
Basically I don't want greylisting to greylist any email claiming to be
from a domain ending in .nz
something like:
# Decline if mail from ends in .nz
if ((sender == *.nz)) {
$self->log(LOGWARN,"sender from nz domain - skipping");
return DECLINED;
}
any suggestions appreciated
cheers
Mark Signal