Wayne,

> I have amavis-new up and running on a CENT OS machine with dspam and
> clamav on postfix, with mysql and virtual users/domains setup.  All of that
> is working, however I noticed in the amavisd.conf file that there is a
> hardset
> domain as $mydomain, which is used to set where notfications get sent,
> I was wondering if there's a way to set it up for multiple domains

The $mydomain is just a convenience variable that can be used in other
settings. The only place this setting is used directly by amavisd
is in a default value for $X_HEADER_LINE - nowhere else.

The $mydomain is commonly used in amavisd.conf to specify other
settings, such as:
  @local_domains_maps
  %admin_maps_by_ccat
  %mailfrom_notify_admin_by_ccat
  %hdrfrom_notify_admin_by_ccat
  %mailfrom_notify_recip_by_ccat
  %hdrfrom_notify_recip_by_ccat
or their subordinates (e.g. $mailfrom_notify_recip,
$mailfrom_notify_admin, @virus_admin_maps, ...)

All of these settings can be changed by a policy bank, which
is a mechanism to apply some property-of-a-message-as-a-whole
to current settings - e.g. sender address, sending IP address,
but NOT recipient as there can be multiple recipients of a
message.

Where you see "_maps" in a name of a setting, this gives a
hint that the setting can apply individually to each recipient.

So if you have in mind settings dependent on a sender domain
or his IP address of origin, and if there are only a couple of
domains to accomodate, the policy bank mechanism is the only
currenly available mechanism to adjust e.g. mailfrom_notify_*.
Actually the custom hooks code might be usable there too.

But if what you have in mind is per-recipient setting of
mailfrom_notify_* and hdrfrom_notify_*, this is currently not
possible, mainly because such settings apply to a single
notification possibly sent to multiple addresses, and to
be able to apply per-recipient settings such notifications
would need to be split into more than one message.

Generally, settings applicable to a message as a whole
are not configurable per-recipient.

> and if 
> there is possibly a variable such as $domain that will get the domain of
> the recipient to use?  If so, what other kinds of variables are available
> to use in the config file?

A file amavisd.conf-default in the distribution lists all
configuration variables. Most newer settings are described
in RELEASE_NOTES when they were first introduced.

  Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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