the greylisting plugin /usr/share/qpsmtpd/plugins/greylisting 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?
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