Solved

Webmail

Posted on 2007-04-02
9
349 Views
Last Modified: 2011-08-18
Hi I hope this is the right place for my question.
We are company that has a few branches around the world. I would like to build a web mail service for us but when we will send an e-mail the e-mail header will always appears like as if it was sent from our main office in Hong Kong and always have our main office IP as “sent from”. Is this possible? Can you post a code? Many thanks.
0
Comment
Question by:2Angel
  • 4
  • 4
9 Comments
 
LVL 18

Accepted Solution

by:
ingwa earned 125 total points
ID: 18836215
Unless you can route your mails through the office in Hong Kong you will not be able to spoof the ip address.  Well, I guess there are ways, but to have such matters disclosed on EE would be a violation of EE's T's & C's.  To spoof an address can be a major security risk, or circumnavigation of various legislations etc, and therefore would be deemed unacceptable information.

If you need the Hong Kongs' IP address, then routing it through those smtp servers would be the route to go.  If you need a set of scripts that lets you define specific servers with authentication etc, then have a look at http://www.phpmailer.org.  This is a very useful set of classes to handle your mails and has a very powerful range of features.

Hope this helps.
0
 
LVL 2

Author Comment

by:2Angel
ID: 18836991
Thank you very much for your comment.
 My question is not in any how EE violation because I want to use my own IP.
Any way, I will look in to your suggestion.
By The Way, when I use a free webmail like gmail yahoo or hotmail the first IP in the email header is my own client/pc although the webmail server is in another country - why is that? can I change it to my private static IP?
0
 
LVL 18

Expert Comment

by:ingwa
ID: 18837472
Hi Angel,

I know that you are trying to use your own IP in the headers of your email, and if you are able to "spoof" your Hong Kong IP's then that's great, just something experts at EE can't tell you how to do.

When you use free webmail accounts, they will automatically retrieve the ip address that you are signing into their services for the reasons that were kind of mentioned in my first email.  Each and every connection on the internet should have it's own IP address.  If you are using corporate networks, chances are you will have the same ip as everyone else.  If you are using wireless ip addresses at an airport, the ip would be shared amongst many users.  IP addresses help identify a specific person connected to the network at a specific time, and is tracable.  Therefore, to spoof an address, which may be your own in another location is still a very grey area, because it's not that specific connection that you are using at the time you are sending a message, if you are in a remote area from the corporate network.

You are not supposed to change assigned IP addresses, and that is classed as spoofing...it's not right.  If you have static IP addresses assigned to you by your ISP then you may assign those to your computer.  So long as they are correctly routed for the network you are using then there is no problem "assigning" the ip as it is one that has been allocated to you to use for that network.  If you are using an ip from Hong Kong however, and you are in New York, if you are not remotely dialing into your corporate network, it would be considered a spoof to assign the Hong Kong Ip address to your New York address.  

I hope this clarifies the situation.  If any experts feel I have left anything out, please do share your comments and help me out :)
0
 
LVL 2

Expert Comment

by:wakemup
ID: 18837751
Learn sendmail and m4? You can do whatever you want then as an old man...
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Author Comment

by:2Angel
ID: 18839885
ingwa: The link http://www.phpmailer.org - is not valid....
wakemup: Thank you very much! It is a new "world" for me. Is a easy fast way to learn this?
0
 
LVL 18

Assisted Solution

by:ingwa
ingwa earned 125 total points
ID: 18840174
Oops, sorry Angel.  Try this one:  http://phpmailer.sourceforge.net/
0
 
LVL 2

Author Comment

by:2Angel
ID: 18846531
wakemup:
Is this command/script only for the client side?
Is it only for Linux?
Do I need a Linux server?
Thanks!
0
 
LVL 18

Assisted Solution

by:ingwa
ingwa earned 125 total points
ID: 19014923
Hi 2Angel,

I was going through my history and noticed this still hasn't been resolved for you so please accept my apologies and here are some answers to your questions:

Is this command/script only for the client side? No, this is a set of php classes and you use the examples provided on their site to build your own custom mailing form.
Is it only for Linux? No, php can run in various environments and as long as it's been correctly installed/compiled it will run the classes too.
Do I need a Linux server? No, as above all you need to be able to run is a webserver that has been configured to run with php.

I hope this helps and good luck with your project.
0
 
LVL 2

Author Comment

by:2Angel
ID: 19136465
Hi
Thanks for all but at the end I opened an email account on our website host company...
Although I didn't got a direct answer I'll split the points...
Thanks!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Read about why website design really matters in today's demanding market.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 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

17 Experts available now in Live!

Get 1:1 Help Now