Turn on debug mode in Amavisd and SpamAssassin

In Amavisd config file /etc/amavisd/amavisd.conf, change $log_level, then restart amavis service.

$log_level = 5;              # verbosity 0..5, -d

If you want to debug SpamAssassin, please update $sa_debug also:

$sa_debug = 1;

If you found something wrong in this document, please do contact us to fix it.

This tutorial is published under a CC BY-ND 3.0 license.