Hi Matt

Thank you for taking the time to respond.

The mod doesn't seem to work in that sender addresses ending .nz are still being greylisted. Could there bee something else that I could have missed.

Thanks again


Mark Signal


Matt Sergeant wrote:
Mark Signal wrote:
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?

if ($transaction->sender->format =~ /\.nz>$/i) {
  $self->log(LOGWARN, "Sender from NZ - skipping");
  return DECLINED;
}

Reply via email to