LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tweaking with sendmail configuration? (https://www.linuxquestions.org/questions/linux-newbie-8/tweaking-with-sendmail-configuration-744970/)

your_shadow03 08-04-2009 05:03 AM

Tweaking with sendmail configuration?
 
Whenever I try sending mail with:

Code:

#echo "hello" | mail -v -s "hello" linuxfreaker@gmail.com
I receive mail as:
Code:

root@Machine22
I need the mail to arrive at my mailbox as
Code:

sysadmin@Machine22
How can it be possible?

choogendyk 08-04-2009 07:11 AM

What's wrong with

Code:

# su - sysadmin -c "echo hello | mail -v -s hello linuxfreaker@gmail.com"


All times are GMT -5. The time now is 03:52 PM.