Red Hat Bugzilla – Bug 474351
sendmail -f is not respecting the subject and "to:"
Last modified: 2008-12-04 07:54:57 EST
Description of problem:
When I run the command
uuencode test.txt test.txt | sendmail -f email@example.com -s test firstname.lastname@example.org
I got an e-mail without subject, and "to:" as, undisclosed-recipients:;
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install RHEL 5.2
2. Configure send-mail
3. send an e-mail with "sendmail -f "
I got an e-mail with out subject, and "to:" as, undisclosed-recipients:;
the subject displayed in the e-mail and in to: the correct e-mail address of the recipient.
This doesn't look like a valid use of sendmail command. The -s options isn't used to specify a subject.
Both subject and to headers need to be specified in the message that sendmail reads from standard input.
echo -e "To: ...\nSubject: ...\n..." | sendmail ...