On Sun, 02 Aug 2009, Gary Chodos wrote:

> I see the above error when trying to start amavis after setting
> mynetworks to read_array...... I also tried read_hash but got similar
> error
> 
> @mynetworks =  (read_array('/etc/amavis-mynetworks'));

My guess is that this doesn't work because by default:

 @mynetworks_maps = (\...@mynetworks);

and Perl's backslash reference operator causes @mynetwork_maps to see the
*address* of the array rather than its contents. Instead, try (from
README.lookups): 

 @mynetworks_maps = (read_array('/etc/amavisd-mynetworks'), \...@mynetworks);

-- 
Sahil Tandon <sa...@tandon.net>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to