[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Changing sender address within mail



> I have a shell script which checks disk space. I the use mail
> command to send a mail messages to myself and other users to notify the
> status of disk space.
> 
> When I receive the mail message notification it has my email address 
> as the sent address but I wish to change the sender address 
> to info domain ac uk 
> 
> I cannot see an option within the mail command to specify a sender's address.
> 
> Any ideas how I can change the out going sender's address?

Use the sendmail-binary directly but do add all the required (by RFC's) 
headers yourself.

./foo.sh | sendmail -f sender example com recipient example com

-- 

  Jussi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]