On Sun, 2007-18-02 at 09:03 -0500, Guy Hulbert wrote:
> 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 ?

looking at the code I see it returns
        OK <addr>
when 'addr' is bare so I guess it already does this ... sorry for the
aside (and talking to myself ;-(


-- 
--gh


Reply via email to