Faking mail server

Hi,

I’m building a mailing script, and I would like to know if it’s possible to change the header that says from where it comes (for example, mail.google.com). I know we can do a lot of things with the headers and PHP, so I was wondering if this was beyond limits …

If PHP can’t is it possible by setting up my own SMTP server?

Thanks!

Sam

The servers that your message goes through will append to the message and state the servers that your email went through so it will be traceable.

If you mean about forging the “from” header, then you raise the possibility of your message being automatically dropped for being a forgery.

It depends on your host’s mail system - some will allow ghosting the From: header, some wont.

Even with those that do, the email headers added by the mail daemon (to comply with MX requirements) will show which server sent the email, so it’s not a perfect impersonation.