Re: header_rewrite To: Field
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>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: header_rewrite To: Field
On Thu, 30 Jul 2009, 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? > > > > Example > Mail comes in for u...@domain.com > > Spamassassin flags message as Spam, rewrites the subject to include > ***SPAM*** then rewrites the To: field to be u...@sub.domain.com > > Is this possible? > > Thanks > Bryan What, specifically, are you trying to achieve? Changing the 'To:' HEADER would be a cosmetic change but will -not- affect mail routing. To change the address that a message gets delivered to you need to change what's called the ENVELOPE to address. Doing that will depend upon your MTA and how SA is glued into your system. -- Dave Funk University of Iowa College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_adminIowa City, IA 52242-1527 #include Better is not better, 'standard' is better. B{
header_rewrite To: Field
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? Example Mail comes in for u...@domain.com Spamassassin flags message as Spam, rewrites the subject to include ***SPAM*** then rewrites the To: field to be u...@sub.domain.com Is this possible? Thanks Bryan This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, printing, distributing or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner. The Evangelical Lutheran Good Samaritan Society.