On Thu, 2009-07-30 at 16:50 -0500, Bryan Haase wrote: > I am currently using the header_rewrite for the subject. Wondering if > it is possible to use header_rewrite to change the To: field to a > sub-domain?
Nope. Which part of the docs [1] isn't clear? See rewrite_header, first item in the Basic Message Tagging Options section. "For the From or To headers, this will take the form of an RFC 2822 comment following the address in parantheses." I believe I've written something like this a few months ago. You can change the comment (or real name), but you cannot change the address. As David said, this is syntactic sugar only anyway, and does not have any impact whatsoever, where the mail gets delivered to. [1] http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html -- char *t="\10pse\0r\0dtu...@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; }}}