Hi Ed,

On Mon, Nov 15, 2004 at 03:06:19PM -0600, Ed McLain wrote:
> I've had alot of my customers ask me about being able to change what tests
> and so forth are run on the mail that comes in for there domains.  I saw
> that there was some discussion about this a while back, but haven't heard
> anything else about it.  Before I go off and write something is anybody
> working on this or would it be worth it for me to rewrite the config
> function into something more pluggable where you could say make the same
> calls as now just be able to store the config in a
> database/files/dirs/ldap whatever?

You might try my per_user_config plugin available here:

  http://www.openfusion.com.au/labs/qpsmtpd/

To do per-domain configs, you do:

  per_user_config domain

early on in your config/plugins, and then you can define per-domain
directories in your config tree:

   config/
     spamassassin
     whitelistsenders
     openfusion.com.au/
       spamassassin
       whitelistsenders

that get used in preference to the global ones.

It's working well here, although you typically have to munge plugins
you want to use it with, because you have to pass the recipient into
the config call.

Cheers,
Gavin

Reply via email to