Stefan,

> one thing that is always interesting to watch is how people posting to
> this or other lists show their configuration: Most of the time, they
> copy/paste their amavisd.conf files (or 50-user for Debian
> installations). What amavisd-new really lacks is a possibility to show
> how it interpreted it's configuration files.
>
> Two other excellent programs which support this kind of configuration
> data dump are postfix and dovecot:
>
> With Postfix, the command "postconf -n" will show all configuration
> settings which are not left at their standard settings, and "postconf"
> will show all configuration vairables.
>
> With dovecot, "dovecot -n" and "dovecot -a" do the exact same thing.
>
> Of course, both mechanisms don't show the contents of lookup tables,
> e.g. SQL database or transport maps contents, but I think that is
> something we can neglect.
>
> Whar are your thoughts about the addition of a "-n" switch to
> amavisd-new?

Such capability is certainly valuable. Back in the old days
amavisd-new already had such capability, but had to be abandoned
because it was getting increasingly difficult to deal with
pre- and post-defaults, and later with all the newly added composite
settings (_maps, policy banks, per-content-category settings).


20030314:
- temporarily removed utility amavisdconf, it is not yet updated to cope
  with the new configuration variables;

20021227:
- New utility program 'amavisdconf' to check the values of configurable
  variables set by /etc/amavisd.conf or defaulted (modeled after
  Postfix utility 'postconf', but -e option is not yet supported).

  Usage:
    amavisdconf [-d | -n] [-c conf-file] [variable]

  Options:
   (none) show the value as will be used by amavisd;
    -d  show default value as in the absence of the config file;
    -n  only show variable if its value is different from the default;
    -c conf-file ... use the specified file instead of /etc/amavisd.conf

  If a variable is specified show only that variable, otherwise show all
  configurable variables. (Note: the leading $, @ or % must be included
  with the variable. Make sure to protect $ from shell evaluation,
  e.g. by enclosing variable name in single quotes, or prepending
  a backslash:
    $ amavisdconf -d '$forward_method'
    $ amavisdconf -n

  This is the first attempt at such a utility, some details would need
  to be polished (e.g. how to report code reference), but it is hoped
  to be usable already in its present form.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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