Re: [AMaViS-user] local maps

This is a discussion on Re: [AMaViS-user] local maps within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Gary V wrote: > On 1/15/08, Jo Rhett wrote: >> On Jan 15, 2008, at 3:28 ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008
Jo Rhett
 
Posts: n/a
Default Re: [AMaViS-user] local maps

Gary V wrote:
> On 1/15/08, Jo Rhett wrote:
>> On Jan 15, 2008, at 3:28 PM, Gary V wrote:
>>> But I can tell you that it's not hard to dump your domains into a flat
>>> file that amavis can use:
>>>
>>> mysql -uusername -psome_password database -B -N -e "select
>>> concat('.',domain) from domain" >/var/amavis/local_domains
>>>
>>> Then in amavisd.conf:
>>>
>>> @local_domains_maps = ( read_hash("$MYHOME/local_domains") );

>> That seems so silly when "select distinct Domain from Email" will
>> give the exact answer. Flushing every minute or so to text tables
>> and then having to restart amavisd to reread it is... wasteful


> Right. Prefixing the domain with a period is likely unnecessary. It
> wildcards all the subdomains of a given domain. Whether this type of
> thing is of any use depends on how often domains new domains are
> added. It would be disruptive if that occurs often. You would only
> need to do it when a new domain is added, which is not likely to be
> every minute or so. One might script this type of thing into whatever
> interface is used to add new domains.


I'm sorry, but it's downright silly to write a script to export it and
restart amavisd. And it needs too much permissions/rights.

Can amavis lookup a map via SQL or not?


-------------------------------------------------------------------------
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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0