sendmail on our hp-ux box is changing the userid of the from address. I have searched the web and read the man pages but can't stop this from happening.
We have a process which creates a text file we pass into sendmail. In the text file we write for example:
Return-Path: joe.bloggs@ourcompany.com
But when sendmail sends the email it is changed to
IFS="~"
cat requests/$request | read user email subject memo attachments
#user is from email address
#email is email address of recipient
#subject is subject of email
#memo is a text file containing the body of the email
#attachments is a list of file (usually pdf) names
IFS=" "
cd /u2/email/temp
domain=`echo $user|cut -d"@" -f2`
local=`echo $user|cut -d"@" -f1`
echo $email >>email2.log
/u2/email/delvmime34.all $attachments <../requests/$request \
|/usr/lib/sendmail -f$user $email document $user
#document is a local mail box that archives a copy of the email
'delvmimne34' assembles the actual email text file.
The -f option on sendmail, sends the mail as $user.