C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 11-23-2004, 01:50 PM   #1
Registered User
 
Join Date: Oct 2003
Posts: 21
port 25 block..

I got a program that sends email by connecting to a smtp server..

the problem is.. what to do if the ISP of the user blocks all but the isp's smtp server??

there must be a loophole to it.. someway to go around this..

maybe someway to get the STMP server used by the user on windows registry (without relying on something like outlook, etc..)

Thanks!!
ROCKaMIC is offline   Reply With Quote
Old 11-23-2004, 03:24 PM   #2
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
Lightbulb

connect directly to the dest. user's smtp server then!

you see, when you send a mail with your isp's local smtp server it gets forwarded to the destination's smtp server.

example:

you send to user@hotmail.com
from me@netvision.net.il

what happens is you send the mail with your local server: mailgw.netvision.net.il and it forwards it to one of hotmail.com's smtp servers (like mx1.hotmail.com).

in other words, you can simply send the mail directly to hotmail.com's smtp server!


goodluck.
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Old 11-24-2004, 08:46 AM   #3
Registered User
 
Join Date: Oct 2003
Posts: 21
fixed some cases.. thanks

but what if the isp only gives access to their smtp server and none other? :S
ROCKaMIC is offline   Reply With Quote
Old 11-24-2004, 09:20 AM   #4
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,648
Probably to stop spammers
Salem is offline   Reply With Quote
Old 11-24-2004, 09:36 AM   #5
Registered User
 
Join Date: Oct 2003
Posts: 21
Quote:
Originally Posted by Salem
Probably to stop spammers
Yes.

So the most ethic solution would be just find the default smtp of a computer.. somewhere in windows' registry or something.. no idea
ROCKaMIC is offline   Reply With Quote
Old 11-24-2004, 11:40 AM   #6
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
what do you mean by a smtp of a computer???

and about your isp blocking, well... your isp sucks, they have no right to do so! what are you living in china or something?!
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Old 11-24-2004, 12:30 PM   #7
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,648
> the problem is.. what to do if the ISP of the user blocks all but the isp's smtp server??
If the user can use their normal email client to send email via mail.myisp.com, then any program of yours which also conforms to RFC821 will also be able to send mail via mail.myisp.com
ALL mail goes via your local gateway, where it is then forwarded to the destination. You DONT connect directly to the destination address in order to send someone email.

Only incompetent and spam-friendly admins allow unknown persons to connect to mail.randomisp.com from which they can fake all their details and spam anyone they like with near untraceability.
Salem is offline   Reply With Quote
Old 11-24-2004, 12:54 PM   #8
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
but you can act as a smtp server farwarding mail and connect the dest. smtp server yourself and send mail to it's user!
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Old 11-24-2004, 06:19 PM   #9
Yes, my avatar is stolen
 
anonytmouse's Avatar
 
Join Date: Dec 2002
Posts: 2,544
>> If the user can use their normal email client to send email via mail.myisp.com, then any program of yours which also conforms to RFC821 will also be able to send mail via mail.myisp.com <<

I think ROCKaMIC is asking how you get the value "mail.myisp.com" without asking the user for it. ROCKaMIC, if you can convince me that you have a valid reason for getting this without asking the user, I can give you some hints. Your talk of a "loophole" doesn't exactly fill me with confidence.

For further information on why many ISPs block outbound direct email, see search: spam zombie.
anonytmouse is offline   Reply With Quote
Old 11-25-2004, 10:12 AM   #10
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
in other words he's looking for the user's smtp server's address.

you will need mx dns lookup for this:
network-tools.com

check the E-mail Validation, and type the user's e-mail address.
it will give a list of mx servers, that's the smtp servers for that domain.
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Old 11-28-2004, 01:46 PM   #11
Registered User
 
Join Date: Jul 2004
Posts: 24
Hey 'RockaMic' would you be so kind as to show me your code used to send the email?
I've tried various ways using winsock, and I've not found a workable solution yet.

thank you
w4ck0z is offline   Reply With Quote
Old 11-29-2004, 11:27 AM   #12
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
you will need to learn the smtp commands, for a short and simple ref. i suggest: http://www.bsrf.org.uk/tutorials/sendmail.html

unless your problem is with network programming, because there isn't much to it, you just send these commands to the smtp server.
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Old 12-11-2004, 02:15 PM   #13
Registered User
 
Join Date: Feb 2002
Posts: 328
Here's some code i wrote a while ago that implements the RFC for smtp & MIME:

SMTP

Scroll to the end.
knutso is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not returning correct results drty2 C Programming 4 01-19-2009 12:39 PM
FTP program jakemott Linux Programming 14 10-06-2008 01:58 PM
brace-enclosed error jdc18 C++ Programming 53 05-03-2007 05:49 PM
HUGE fps jump DavidP Game Programming 23 07-01-2004 10:36 AM
Manipulating the Windows Clipboard Johno Windows Programming 2 10-01-2002 09:37 AM


All times are GMT -6. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22