On Mon, 2002-04-29 at 22:24, Pete O'Hara wrote: > :0 > | /usr/sbin/sendmail -oi -t > > The problem is that the "-t" option sends to the recipient > defined in the "To:" header and if it is outgoing mail from > a mail downstream mailserver and the "To:" is an alias such > as "admin@downstream-mailserver" where the real recipient is > out on the INTERNET the mail will be sent back to the > downstream mailserver causing a loop. Does anyone know of a > solution other than running spamassassin only on mail > incoming from the INTERNET?
Consider what happens if you get a message with 30 addresses in the to/cc headers, only one of which is on your site. You absolutely *must* preserve both the envelope sender and recipient information and use that to reinject the mail (remember the envelope sender may (legitimately) be <> and people may have fun trying to craft shell expansion sensitive addresses with security implications). Personally, with exim, I used BSMTP to preserve the envelope and invoke spamc as a transport filter. I think procmail is likely to be the wrong solution here. Nigel. -- [ Nigel Metheringham [EMAIL PROTECTED] ] [ - Comments in this message are my own and not ITO opinion/policy - ] _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk