> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Erick Perez > Sent: Thursday, 27 November 2008 9:39 AM > To: postfix-users@postfix.org > Subject: suggestions with transport and virtual > > And correctly delivers the emails to both servers. This is all good. > However when the user (using ms outlook express) sees the > email, the email has "undisclosed recipients" as the To: > > Here are the headers: > > #Return-Path: <[EMAIL PROTECTED]> > #Received: from postfix1.oj.gob.pa ([192.168.10.10]) > # by sendmail1.oj.gob.pa (8.10.2/8.10.2) with ESMTP id > mAQKhEq28642 > # for <[EMAIL PROTECTED]>; Wed, 26 Nov 2008 15:43:14 -0500 > #Received: from erick (localhost.localdomain [127.0.0.1]) > # by postfix1.oj.gob.pa (Postfix) with SMTP id 3098F77003D > # for <[EMAIL PROTECTED]>; Wed, 26 Nov 2008 23:49:57 -0500 (EST) > #Subject: Testing > #Message-Id: <[EMAIL PROTECTED]> > #Date: Wed, 26 Nov 2008 23:49:57 -0500 (EST) > #From: [EMAIL PROTECTED] > #To: undisclosed-recipients:; > > Both for sendmail and for postfix recipients, then TO: > arrived "undisclosed recipients". Is this normal postfix > behavior? How can i "fix" this so [EMAIL PROTECTED] is > correctly displayed in the TO field? > > BTW if you have a better way to do what i am doing, please > share!!!! ;) > > thanks. >
The email _body_ doesn't have a "To:" field - while some mail software (such as Exchange) will add the envelope recipient to the "To" field in the email body, Postfix doesn't, and you get that "undisclosed recipients". The simplest solution is to ensure that the message body is formatted with the standard "From:", "To:" and "Subject:" fields (in addition to the message headers).