Problem with Bcc's 'for' line disappearing

2001-05-23 Thread Eric Bonharme
Title: Problem with Bcc's 'for' line disappearing




Hi there,
We have a problem with the 'for' line being stripped out when
delivering Bcc'ed messages to the Bcc'ed recipient locally.
This is a problem because we have a catch all mailbox set up in the
following way:
.mail-default contains :
| /home/vpopmail/bin/vdelivermail ''
/home/vpopmail/users/domain.com/anything
This is then picked up by another server which delivers to local
users on the client's site. But as the 'for' line is stripped out
(presumably because qmail thinks that it's in the correct mailbox and
there is no need for a 'for' line any more), the client's mail server
doesn't know which mailbox to send it.
Any help would be appreciated.
Eric





Re: Problem with Bcc's 'for' line disappearing

2001-05-23 Thread Peter van Dijk

On Wed, May 23, 2001 at 10:29:56AM +, Eric Bonharme wrote:
 Hi there,
 We have a problem with the 'for' line being stripped out when delivering 
 Bcc'ed messages to the Bcc'ed recipient locally.
[snip]

qmail doesn't strip headers, and I've never seen qmail *add* a for
header.

Greetz, Peter.



Re: Problem with Bcc's 'for' line disappearing

2001-05-23 Thread Charles Cazabon

Eric Bonharme [EMAIL PROTECTED] wrote:
 We have a problem with the 'for' line being stripped out when delivering 
 Bcc'ed messages to the Bcc'ed recipient locally.

qmail doesn't remove any headers.  What is a for header?  I've never seen
such a beast.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: Problem with Bcc's 'for' line disappearing

2001-05-23 Thread Scott Gifford

Charles Cazabon [EMAIL PROTECTED] writes:

 Eric Bonharme [EMAIL PROTECTED] wrote:
  We have a problem with the 'for' line being stripped out when delivering 
  Bcc'ed messages to the Bcc'ed recipient locally.
 
 qmail doesn't remove any headers.  What is a for header?  I've never seen
 such a beast.

Eric is probably talking about the for clause of the Received
header:

Received: from muncher.math.uic.edu ([131.193.178.181]) (envelope-sender 
[EMAIL PROTECTED])
  by smtp01.mail.onemain.com (qmail-ldap-1.03) with SMTP
  for [EMAIL PROTECTED]; 23 May 2001 10:10:26 -
here  ^^ 

Looking at the 'for' clause is a hack, and will only work under some
circumstances.  Particularly, if more than one person on the same mail
server receives a message, the 'for' clause will not be present at
all.

Fortunately, qmail provides a better solution.  Use the first
'Delivered-To' header; that will always be there, and will always be
correct and unambiguous.

-ScottG.