develooper Front page | perl.qpsmtpd | Postings from September 2007

RE: require_resolvable_fromhost denying mails

Thread Previous | Thread Next
From:
Sydney Bogaert
Date:
September 17, 2007 06:30
Subject:
RE: require_resolvable_fromhost denying mails
Message ID:
20DA2BF2FB30E644AB655C0DD7F658B1073725@exchange.interne.igretec.be
> > I had added 64.30.237.0/24 to the config/whitelisthosts file, but
> > still its blocking the mails, Is the entry I have entered in
> > config/whitelisthosts file  is wrong.?
> >
> 
> This configuration doen't work for me. It still blocks mails, How I
> have to modify the config/whitelisthosts file for the purpose ? Please
> help me to resolve this issue.
> 
> 
> Thanks and Regards,
> 
> Abhilash.S
>

From whitelist_soft :

  for my $h ($self->qp->config('whitelisthosts', $config_arg)) {
    if ($h eq $ip or $ip =~ /^\Q$h\E/) {
      $self->qp->connection->notes('whitelisthost', 1);
      $self->log(2,"host $ip is a whitelisted host");
      return OK;
    }
  }

From man perlre :
  \Q   quote (disable) pattern metacharacters till \E

So, I think that your whitelisthosts file must contain "64.30.237." to
do the job.

Sydney. 

Thread Previous | Thread Next


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