hello. my scripts use mailx to send e-mail notices all over the place,
and most of the time it needs to specify a different source address
(From). we use mailx to do this with : mailx -s 'subject here' -r
'return email address here' 'destination address' < 'filename of message
body'.
problem is, sendmail insists on changing the sender address to the
username of the user who called mailx.
--- sendmail logs ---
Aug 22 03:31:52 sun-dev1 sendmail[562]: [ID 801593 mail.info]
f7M3VqB00562: [EMAIL PROTECTED], size=186, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>, relay=root@localhost
Aug 22 03:31:52 sun-dev1 sendmail[564]: [ID 801593 mail.info]
f7M3VqB00562: [EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00,
mailer=relay, pri=120186, relay=ns1.mcrush.com. [192.168.0.36],
dsn=2.0.0, stat=Sent (Ok: queued as 4F41A37D5)
--- end sendmail logs ---
the mail message gets sent properly, but with the From address rewritten
to the address of the calling user, which i dont want. in the case of
the logs, the "From" address i specified on the mailx command line is
"[EMAIL PROTECTED]". when it was delivered, it was changed to
"[EMAIL PROTECTED]". any helps/hints are greaty appreciated. thanks.
-vince
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]