Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Sending mail to SMTP port thru Sockets

 
Neeraj Thakkar
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I have made a program which accepts a domain name. I then get the InetAddress for that name and try to get connected to the host at port number 25(which is for SMTP) but I am unable to establish a connection between the server and my application except for WWW.USA.NET.
All SMTP mail server listen at port number 25 so when i am trying to connect to this port number why I am not getting response from other mail servers like yahoo or hotmail or rediffmail etc etc.
Can anyone help.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any SMTP Server can prevent connections except those that originate from approved IP addresses. Yahoo, Hotmail and quite a few others are probably limited to just their own servers for mail orgination. This prevents you from using them to send mass maillings which can swamp their server for their normal customers.

------------------
Hope This Helps
Carl Trusiak
 
Neeraj Thakkar
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Carl,
Got ur reply but I still have a doubt. As u said that yahoo or rediff accept mail originating from their own server but we are able to send a mail to somebody@yahoo.com from anyother server like rediff netaddress hotmail and so on.
So please help me out.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets see if I can illustrate this.
Y - Your PC
S - Your Smtp server that allows your IP address
H - Hotmail, Yahoo, Rediff Servers
A - Any Server as destination where the email is addressed
These are allowed
Y - Smtp origniation to - S - Stmp to destination - A
Y - Http origination to - H - Stmp to destination - A
Not allowed
Y - Smtp origination to - H
Actually any server can include a feature that will only allow IP addresses that they set to origninate mail.
This is simplifed but, I hope it relays the concpt.
------------------
Hope This Helps
Carl Trusiak
[This message has been edited by Carl Trusiak (edited February 03, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic