Thanks uxbod! I found I also had to say --siteconfigpath=/dev/null to prevent it from trying to load my regular SA site config from /etc/spamassassin (which would not be used when amavisd calls it).
I also tried /opt/zimbra/amavisd/sbin/amavisd debug-sa, but that didn't work (gave me errors about the daemon already running). That seemed like, if it had worked, it would be the most correct invocation of SA since it would call it with the correct env vars and options -- one of the things I wanted to test for was calling pyzor/razor2/dcc, which all require some config files in certain places. But your way seems good enough for now. Thanks! |