Solved

mail name

Posted on 2000-02-17
3
170 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
3 Comments
 
LVL 1

Expert Comment

by:kawin
Comment Utility
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 100 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now