Jo, > >> The problem is that I'm hosting a bunch of friends, and I in no way > >> really want to be editing/restarting everything any time they host a > >> new domain. (same set of problems for other hosting providers too) > >> > >> What are my choices to resolve this? I need some sort of db lookup > >> for what domains are local. > > > > Yes, sql based lookups, see readme's or restart amavisd every time a new > > domain comes on.
If you want to avoid a restart, the only options are SQL or LDAP -based lookup tables. This needn't be a full-featured SQL server, it would suffice to use a SQLite database (embedded, no SQL server). > > (also, don't you also have to make sure your MTA knows about the new > > domains so it will relay for them?) > > Yes, that's easily done with edits to the virtusertable db hash. Using read_hash() function in amavisd.conf, it can read the text source file that you use to construct the virtusertable db hash. The format is mostly compatible between Postfix and what is understood by read_hash, a notable difference is that 'example.com' does not include subdomains in amavisd, and '.example.com' includes domains AS WELL AS the top domain itself. And amavisd does not understand continuation lines. A restart is still needed after changing the file. 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://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/
