develooper Front page | perl.qpsmtpd | Postings from April 2004

Re: Null sender and require_resolvable_fromhost

Thread Previous
From:
Keith C. Ivey
Date:
April 15, 2004 15:55
Subject:
Re: Null sender and require_resolvable_fromhost
Message ID:
E1BEFlU-0002JC-00@smtp03.mrf.mail.rcn.net
Peter J. Holzer <hjp@hjp.at> wrote:
> On 2004-04-14 19:41:10 -0400, Keith C. Ivey wrote:

> > since the addresses in the MAIL and RCPT parameters are not
> > RFC 822 addresses (they don't have angle brackets and name and
> > comments and such).
> 
> Actually, they do have angle brackets, and the brackets are
> required, while they are optional in RFC 822.

You're right, of course, but I was thinking of the address in 
this case as being just the thing inside the angle brackets.

> > Maybe they should be a Qpsmtpd::Address object,
> 
> Yup.
> 
> > and there could be a local() method to indicate whether the
> > address is local.
> 
> Hmm. How do you determine that? Do we need a new hook for that?

Unfortunately it's probably different for different servers, 
but it would be nice if there were a way to make such a method. 
Currently there are several plugins that go through essentially 
identical procedures, looping through the rcpthosts and 
morercpthosts and comparing them to the host part of the 
recipient (or sometimes sender) address.  The code needs to be 
consolidated somehow.  Maybe that ties in with your question 
about sharing code between plugins.

-- 
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About