amavis-user May 2011 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: testing Amavisd results by command-line with a

Re: testing Amavisd results by command-line with a source message

From: Mark Martinec <Mark.Martinec+amavis_at_nospam>
Date: Fri May 06 2011 - 15:38:40 GMT
To: amavis-users@amavis.org

> 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@example.com -s127.0.0.1 \
> -p8888 postmaster@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