?
Solved

mail name

Posted on 2000-02-17
3
Medium Priority
?
176 Views
Last Modified: 2013-12-27
i am using a sun server with solaris 2.7 and i have a cgi script that, when activated will mail a certain address that the script has been accessed....

but when i receive this mail it says that it is from "Nobody" on the server
is there any way that i can change this "Nobody" to become "autoreply" or something along those lines....
0
Comment
Question by:boofulls
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:kawin
ID: 2530968
what the function that you use to send mail?

mailx?

Try to use /usr/lib/sendmail -f <from address> to specific mail from someone if you write shell script to send mail.

Or if you use perl you can find some good perl module that can send mail and attach in mime format! (Mail::Sender)

Good Luck,
Kawin
0
 
LVL 40

Accepted Solution

by:
jlevie earned 300 total points
ID: 2531014
Just add or set the "From:" header of the message with the mail address you want before you send it.
0
 

Expert Comment

by:cartoon022100
ID: 2546923
You will be having a user name with
"nobody" in /etc/passwd & /etc/shadow

a prank way of solving your qn is to change the name & the corresponding changes that it needs

hopefully you'll get it from the name u desire.but this is restricted to only the login name & not a user defined sentence
u shud also have root permissions ofcoz !!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question