Quoting Anders Johansson
On Thursday 10 March 2005 17:18, Chiu, PCM (Peter) wrote:
That I would have thought.
I did
sendmail -v root < /tmp/dummy_file
or
sendmail -v myname@rl.ac.uk < /tmp/dummy_file
The message got sent and arrives, but in the To: field, it says "undisclosed recipients".
What is in the file dummy_file?
Try adding the line
To: foo
at the start of it
The header To: is something that should be a part of your email data, it isn't something sendmail or postfix adds
Or use the mail command: mail root < /tmp/dummy_file It will add the To: header. Note: the recipient(s) listed for the sendmail command go in the message envelope, this is separate from the To: header. If there is not To: header, Postfix will add "To: undisclosed recipients". No To: header is useful for sending to a bunch of people at once without disclosing them all to each other. Kind of like Bcc: with no To:. HTH, Jeffrey