LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2003, 01:25 PM   #1
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
/bin/mail command


how can i change the sender address which is used for example when i do:

echo test|mail test@example.com -s "subject"

I always get root@localhost when im logged in as root.
 
Old 11-16-2003, 01:53 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Change your hostname and domain name for your machine. Username will depend on the user account your logged in as.
 
Old 11-16-2003, 03:00 PM   #3
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Original Poster
Rep: Reputation: 30
But isnt there a command line option to override this?
I run a script as a certain user, and it should mail me as a different one and i can't change to another user for this.
 
Old 11-16-2003, 06:00 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by pk21
But isnt there a command line option to override this?
I run a script as a certain user, and it should mail me as a different one and i can't change to another user for this.
I don't understand what your trying to really accomplish here.. a command? Are you referring to the 'su' command?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hosts.allow spawn /bin/mail zzyzx Slackware 8 08-23-2005 11:24 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM
/bin/mail question. Ada Linux - Newbie 1 01-08-2004 01:33 PM
Burn cue/bin and Mail-Proxy RedWeasel Linux - Software 1 10-30-2003 12:27 AM
Qmail & /bin/mail nxny Linux - Software 0 09-27-2002 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration