[Exim] @INC problem with exim.pl

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Joshua Alexander
Date:  
À: exim-users
Nouveaux-sujets: [Exim] greylisting
Sujet: [Exim] @INC problem with exim.pl
Hi folks,

I'm trying to add a new function to my exim.pl, but I get the
following error in exim_mainlog:

> 2004-03-03 13:56:19 1AyTsn-0006ZG-AG failed to expand condition
> "${perl{greylist}}" for lookuphost router: error in perl_startup
> code: Can't locate Config.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i686-linux
> /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .
> /usr/lib/perl5/5.6.1) at /usr/lib/perl5/5.6.1/lib.pm line 4.
> BEGIN failed--compilation aborted at cm line 4.


Now I can do perl -e 'use Config;' from the command line with no
output or errors.

Adding use strict; and use warnings; I can do
    perl -c filewithjustmycode.pl
and
   perl -c allthecodetogether.pl
and the code is error free.


A few other tests pass (Perl's compiled @INC looks right, an INC_TEST
script checked out ok, etc.

Tech support says:

>The error is telling you its failing at /usr/lib/perl5/5.6.1/lib.pm
>line 4 probably because @INC is being changed (Not just adding to it
>but it looks like possibly replacing the entries) I'd say have a
>look at the "ACL string "${perl{greylist}}": error in perl_startup
>code" that failed to expand and I bet you find the culprit there.


I got this bit directly off a greylisting website, I put it at the
very top of my check_recipient ACL... perhaps it should go elsewhere?

require domains = +local_domains : +relay_domains
            condition = ${perl{greylist}}


-Josh