March 28, 2024, 09:11:07 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Sendmail reply-to change  (Read 3888 times)

Offline ryanfrank

  • New Member
  • Posts: 1
Sendmail reply-to change
« on: February 22, 2006, 07:57:41 PM »
Question:  We have a series of CRON jobs running as the Oracle user on our Linux machines.  Each of these scripts generates an email to the Oracle team here.  Each of these emails is sent with the From: field as oracle@<hostname>.  I would like to do a global replace of the from field for the Oracle user... I am not sure if this is possible...

I know I could use sendmail from the command line to specify -f<email addr> and change it there, however I can't get the subject to appear without echoing "Subject: blahh" to the log file (I would not like to modify the log file...  

I have tried using mailx (or /usr/bin/mail ), I can change the subject with the -s option, however it does not give me the option to change the From field...

I know I am missing something really simple, I have been looking way to hard at this... I can't recall an easy way to do this...

-Ryan