Bug 474351 - sendmail -f is not respecting the subject and "to:"
sendmail -f is not respecting the subject and "to:"
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sendmail (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Miroslav Lichvar
Depends On:
  Show dependency treegraph
Reported: 2008-12-03 08:16 EST by Matias Kreder
Modified: 2008-12-04 07:54 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-12-04 07:54:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matias Kreder 2008-12-03 08:16:50 EST
Description of problem:

When I run the command

uuencode test.txt test.txt | sendmail -f alerta@chocolatera.com.mx -s test mkreder@redhat.com 

I got an e-mail without subject, and "to:" as, undisclosed-recipients:;

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install RHEL 5.2
2. Configure send-mail 
3. send an e-mail with "sendmail -f "
Actual results:

I got an e-mail with out subject, and "to:" as, undisclosed-recipients:;

Expected results:

the subject displayed in the e-mail and in to: the correct e-mail address of the recipient.

Additional info:
Comment 2 Miroslav Lichvar 2008-12-04 07:54:57 EST
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 ...

Note You need to log in before you can comment on or make changes to this bug.