On Sat, Dec 15, 2007 at 08:48:11PM +0100, Jogi Hofmüller wrote:
> Hi all,
>
> Just working on tests with current amavis from Debian/etch (2.4.2) to
> replace a completely outdated installation I found. When trying to turn
> on LDAP lookups I run into the problem described as follows in the
> changelog:
>
> INCOMPATIBILITY:
>
> - removed some legacy $*_ldap variables, as they are no longer needed;
>
> These variables were still declared but ignored in 2.2.0 for
> compatibility with older amavisd.conf files. Such variables need to
> be removed from the amavisd.conf if they are still present there
> from older versions, otherwise Perl will complain with 'Global
> symbol ... requires explicit package name";
>
> What was the reason for disabling legacy variables? It seems that I am
> forced to use the amavis LDAP scheme now (which would mean the running
> custom LDAP installation) and I don't quite like that. Is there a way to
> use LDAP lookups with custom schemes?
>
> Any hints appreciated.
The old code was completely rewritten ages ago, it was inefficient
and unuseable with any sort of volume.
In the long run the best thing to do would be to change things to allow
use of the amavis LDAP schema and be done with it. Otherwise you could
edit the source and replace all occurences of the standard attribute
with your desired attibute, ex ( amavisSpamLover -> my_attr ):
$ grep amavisSpamLover /usr/local/sbin/amavisd
unshift(@Amavis::Conf::spam_lovers_maps, $lf->('amavisSpamLover',
'B-'));
@ldap_attrs = qw(amavisVirusLover amavisSpamLover amavisBannedFilesLover
would become:
unshift(@Amavis::Conf::spam_lovers_maps, $lf->('my_attr',
'B-'));
@ldap_attrs = qw(amavisVirusLover my_attr amavisBannedFilesLover
and then test before using.
--
If a tree falls on a mime, will the mime yell for help?
Mike Hall
San Juan Island, WA
System Admin - Rock Island Technology Solutions <[EMAIL PROTECTED]>
System Admin - riverside.org, ssdd.org <[EMAIL PROTECTED]>
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/