> > you can tune Amavisd-new to activate conditional debug inside SA depending > > on recipients address (that’s what I’m doing) > > "$sa_debug = 1" is a global setting. Your logs should be full of "SA > dbg:" lines even for emails which do not match your @debug_recipient_maps.
That’s not how it works. I can assure you my logs have "SA dbg:” lines only for messages which recipient address matches the @debug_recipient_maps. It triggers a DEBUG_ONESHOT event in Amavisd-new, and when the message is fully processed in spamassassin, Amavisd-new turns of DEBUG_ONESHOT: Jun 27 15:31:22 my.mx.server amavis[240694]: (240694-15) DEBUG_ONESHOT: TURNED ON ../.. Jun 27 15:31:24 my.mx.server amavis[240694]: (240694-15) DEBUG_ONESHOT: TURNED OFF This kind of DEBUG_ONESHOT yields to ~ 1900 lines of log, instead of just one or two lines when recipient address does not match @debug_recipient_maps. I would have noticed. Patrick