Hannes, > Strange (or: nice) though that it works even with commas as soon as the > additional nesting level is removed:
It only appears to work, as now the whole world is your local domain, all mail is internal-to-internal. > OK: > | @local_domains_maps = ( qw( dom1.tld, dom2.tld, dom3.tld ) ); Not ok, it always returns true (i.e.: "dom1.tld,") for any lookup. > | @local_domains_maps = ( qw( dom1.tld dom2.tld dom3.tld ) ); Same, always returns true (i.e.: "dom1.tld") > | @local_domains_maps = ([ qw( dom1.tld dom2.tld dom3.tld ) ]); Yes, this one is correct. The @local_domains_maps contains a list of lookup tables: exactly one lookup table in this case, which is an acl-type lookup table (implemented as an array ref). As Mike noted, the qw perl operator splits a string on whitespace, returning a list of strings (words). > Not OK: > | @local_domains_maps = ([ qw( dom1.tld, dom2.tld, dom3.tld ) ]); Wrong indeed, your domains are "dom1.tld,", "dom2.tld,", and "dom3.tld", and the first two would never match any real domain. Mark ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ 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/
