Solved

mail name

Posted on 2000-02-17
3
175 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 100 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

729 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