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