testing Amavisd results by command-line with a source message

Mark Martinec Mark.Martinec+amavis at ijs.si
Fri May 6 17:38:40 CEST 2011


> An additional trick is to have a dedicated 'instance' subconfiguration,
> so that one can play with settings for a test instance, while the
> production amavisd is kept running. Something like (by the end of
> amavisd.conf):
> 
> if ($instance_name eq 'test') {
> ...
> }
> 
> $ mini_sendmail -ftest at example.com -s127.0.0.1 \
>    -p8888 postmaster at example.com <test.msg

Forgot to say to start the test instance:

  # amavisd -i test debug

The only requirement for an instance if to have its own pid and
a log file and a nanny database (if enabled), and its own socket.
The rest can be common, such as the work directory.

  Mark


More information about the amavis-users mailing list