Re: [BUG] Default search path used in require_resolvable_fromhost

[email protected] (Robert Spier)
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
I've committed this as ab7c2601f0740fac1c3c117e7e5c0a5690348194.

I'm not 100% sure it's a good idea, but I think it's mostly a good
thing.

Charlie - It would be great if you could send patches instead of
"suggestions".

-R


Charlie Brady wrote:
> 
> 
> http://bugs.contribs.org/show_bug.cgi?id=5808
> 
>  Jesper Knudsen      2010-03-01 01:29:10 MST 
> 
> When using the require_resolvable_fromhost plugin for qpsmtpd I noticed 
> that mails from [email protected] was actually getting through 
> this filter. I finally found out that the plugin has a bug that causes it 
> to insert default search path if it cannot find the domain. This means in 
> my case that localhost.localdomain was then tried resolved as 
> localhost.localdomain.swerts-knudsen.dk and since I have a wilcard CNAME 
> was resolved as my public IP.
> 
> Since this plugin is only enabled for public interface the fix is to set 
> the "dnsrch" flag when creating the Net::DNS object.
> 
> In require_resolvable_fromhost:
> my $res = Net::DNS::Resolver->new (
>                                    dnsrch => 0
>                                    );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.