On Wed, 2014-08-27 at 17:07 -0400, Alex wrote: > I've set up a local URI DNSBL and I believe there are some FPs that > I'd like to identify. I've currently set up amavisd to set > $sa_tag_level_deflt at a value low enough that it always produces the > X-Spam-Status header on every email. > > It will show "LOC_URIBL=1" in the status, but is it possible to have > it somehow report/show the domain that caused the rule to fire, in the > same way that it can be done with spamassassin directly on the > command-line using -t?
The URIs [1] are automatically added to the uridnsbl rule's description for _REPORT_ and _SUMMARY_ template tags. The latter is identical to the additional summary at the end with the -t option, the first one is suitable for headers. add_header spam Report _REPORT_ That Report header is set by default with report_safe 0 (stock SA, not Amavis). [1] Actually lists a single one only, if multiple URIs are hit. That's a comment documented TODO item. -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}