Patrick,

> I´m trying to setup amavis on a machine with lot of virtual domains
> and I´m wondering if there is any way to set per domain spam defaults.
>...
> I know how to setup amavis in the way every user can make his own
> settings for spam level, spam subject etc but it would be nice if the
> domain owner could set default values for all users in his domain,
> in case the user himselve doesn´t make a change.
>
> In other words, I´m looking for a mechanism which asks the user
> object and if there is no information, it asks the domain object
> and so on and finally goes to the configuration files default.

If I understand this correctly, it already works this way.
In the absence of exact recipient address entry, a LDAP lookup
for a domain (and subdomains and a catchall) is done.

>From README.ldap:

  lookup_ldap() performs a lookup for an e-mail address in an LDAP
  directory. If a match is found it returns whatever the map returns
  (a reference to a hash containing values of requested attributes),
  otherwise returns undef. Given an address the following lookups are
  done by default:

 - lookup for [EMAIL PROTECTED]
 - lookup for [EMAIL PROTECTED] (only if $recipient_delimiter is '+')
 - lookup for user+foo (only if domain part is local)
 - lookup for user     (only local; only if $recipient_delimiter is '+')
 - lookup for @example.com
 - lookup for @.example.com
 - lookup for @.com
 - lookup for @.       (catchall)


Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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