Link to home
Start Free TrialLog in
Avatar of boofulls
boofulls

asked on

mail name

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....
Avatar of kawin
kawin

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
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 !!