Tools code

Mark Martinec Mark.Martinec+amavis at ijs.si
Tue Sep 4 18:24:19 CEST 2012


Ben,

> i see a mention of this in the log file, and would like to learn more
> about what it is.  looking in amavisd-new, i see some references to
> $extra_code_tools and Amavis::Tools [e.g.
> Amavis::Tools::convert_dkim_keys_file ], but am having a hard time
> understanding this in a practical sense.  is this something used only for
> dkim signing?

The purpose of the Amavis::Tools package within a file amavisd
is only to conveniently package some seldomly used functionality
into the same file 'amavisd', without burdening normal operations
with compiled but unused code.

Currently the code in Amavis::Tools serves to implement commands:

  $ amavisd genrsa
  $ amavisd showkeys
  $ amavisd testkeys
  $ amavisd convert_keysfile

These are the DKIM keys-management commands.

When amavisd is not invoked with one of these command options,
the Amavis::Tools package is not even compiled, and does not
occupy storage. So instead of having to provide one or more
extra utility programs, this functionality is stashed into
the existing file and can reuse some code there.

  Mark


More information about the amavis-users mailing list