On Wed, 2009-07-15 at 06:34 -0700, Evan Platt wrote: > >but quite a lot of spam gets through by using arbitrary addresses in the To > >field and a 'good' address in the Envelope-to field. > > > >How can I rectify this? > > Why is your MTA not verifying addresses, and rejecting mail to non > valid addresses?
This doesn't apply here, since the OP said the Envelope To is valid. The mail's To header is just syntactic sugar. For example, you want to receive this very mail, despite it not showing any address valid at your MX in the To header, right? ;) -- 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; }}}