sendmail reveals webhost and servername (using mail() in php) -- anyway to fix?

php 4.4.2 mail() working fine BUT
if you look at full headers in the email
you can see name of webhost AND the name of server the site is hosted on.
(in Return-path, Received: from, and Message-Id)

any way to fix?
(I am not a spammer. just dont want to reveal any more info than necessary.)

phpinfo says:
sendmail_from      no value      no value
sendmail_path      /usr/sbin/sendmail -t -i      /usr/sbin/sendmail -t -i

the following did NOT work:
in htaccess
php_value sendmail_from me@mine.com

in the script
ini_set(sendmail_from,'me@mine.com');

thank you.
mtnrAsked:
Who is Participating?
 
BOTA-XCommented:
Theres always other ways.  You could use PHPMailer to SMTP to a server that does not reveal the host (or even IP) information of the sending computer.  This would then only expose the information about the SMTP server.

Depending on your resources this may be practical.
0
 
b0lsc0ttIT ManagerCommented:
mtnr,

There is nothing to fix.  That information is added to the email's header for the purpose of tracking the message, etc.  The servers that forward the message are also added to the header, including the server of the person receiving the message.  It is necessary and will help those receiving your messages and the programs they use realize your message is valid and not SPAM, etc.  Even if you found a way to remove or change the information I would recommend against it.  You would definitely not want to be confused for a spammer and blacklisted.

Let me know if you have any questions about the information above.

b0lsc0tt
0
 
Bernard S.CTOCommented:
If you are not a spammer, you certainly do not want to be confused with one.
So listen to b0lsc0tt' advice, and dot event think about sending mails without these informations.

Now, if you want to hide your default smtp server's name... use another SMTP server!
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
mtnrAuthor Commented:
when I get email from some companies, full headers doesn't mention their webhost company.
it says "received from" that same company.
I guess this means they have their own servers, and don't use a webhost?
0
 
b0lsc0ttIT ManagerCommented:
That is correct.
0
 
mtnrAuthor Commented:
thanks for the information.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.