I have asked repeatedly on the list about how to query SQL for 
local_domains_maps.  To first some answers which didn't seem to relate, 
then resounding silence.

After taking some time to read the code today, I believe I have figured 
out the answer.  Will someone please tell me if I'm right or wrong?

1. There is no way to query SQL for local_domains

*HOWEVER*

2. When a recipient lookup is done in SQL, if the local column evaluates 
(is not undefined) then the recipient is considered local.

*AND*

3. A wildcard entry of '@{domain}' will evaluate the entire domain to be 
local (unless you set $sql_lookups_no_at_means_domain in which case drop 
the @ sign)

Therefore, the right answer for hosting environments is to make sure 
that every domain you are receiving mail for exists in the users database.

Questions:

Is this analysis correct?

Would it be too much trouble to allow a SQL query to populate 
local_domains_maps, just like the hash lookup.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to