On Sun, 2007-18-02 at 07:30 -0500, 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;
> }
You'd also need: /\.nz$/i
if using:
dont_require_anglebrackets
... but I don't want to think about the 'right' way to manage that ...
sendmail has those "make canonical" bits ... perhaps that is what
'dont_require_anglebrackets' should do ?
--
--gh