procmail
[Top] [All Lists]

Bouncing messages and unwanted headers

1999-09-08 16:29:53
Does anyone have any suggestions on how to get rid of the
"X-Authentication-Warning" and "Received:" headers that show up in mail that I'm
bouncing (using procmail/sendmail)?  

Specifically: 
- I've got my own domain (towel.com)
- I don't have access to sendmail.cf
- My ISP's SMTP host puts a "X-Rcpt-To:" header in every incoming mail message
(this contains the final recipient, even if it's a Bcc:)
- I filter on the "X-Rcpt-To:" header, comparing against a list of addresses
@towel.com that I want to accept mail on
- If the To: or Bcc: address is not on the list, I want to do a RFC1894-style
bounce to the sender (i.e., "User unknown")
- I currently use "sendmail -oi -t -fMAILER-DAEMON(_at_)towel(_dot_)com" to 
send the bounce
message
- sendmail adds a "X-Authentication-Warning" header, which has my 
username(_at_)ISP
address (which I REALLY don't want going out to anyone)
- sendmail also adds the first "Received:" line with my username(_at_)ISP 
address
(again, I REALLY don't want that -- I don't mind the ISP's host showing up,
though, and I realize that there's no way around that)

One solution is to use another mail-delivery program, but I don't know of any
suitable ones.

Thanks in advance
-dan

<Prev in Thread] Current Thread [Next in Thread>