SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 25 | September | 2000 ]

>> Next Message >>


Date: Mon, 25 Sep 2000 02:04:29 PDT
From: dallas kincyb <dallasii@kincyb.com >
Reply-To: scoug-programming@scoug.com
To: scoug-programming@scoug.com
Subject: SCOUG-Programming: Re: SMTP handshaking?

> Date: Sun, 24 Sep 2000 23:21:08 PDT
> Sender: scoug-programming-owner
> Reply-To: scoug-programming@scoug.com
> From: Peter Skye
> To: scoug-programming@scoug.com
> Subject: SCOUG-Programming: SMTP handshaking ?
>
> I'm writing an email client utility. So far my code does the DNS lookup

Client to do what? Send, Receive, or ???

> on the mail server domain name and then opens a socket to the server on
> port 109. (I presume that's the proper port - I looked in

If I'm not mistaken, that is conventionally the port for POP 2.
(yes, 2 not 3.)

> \mptn\etc\services and found it. There's also port 25 but I seem to
> remember that's not the proper one.)

That would conventionally be the port for SMTP.

>
> RFC 821 doesn't have the handshaking sequence I need. Can anyone point
> me at the document that tells the handshake sequence for asking if
> there's any mail waiting on the server? I assume there are USER and

If you are using POP 3, that should be RFC 1939 according to my
most available reference, 'Sendmail for Linux', and port 110.
You should be able to go to http://www.rfc-editor.org, I think it is,
and browse/search the RFCs.
If you are using IMAP, check with rfc-editor.

> PASSword messages involved, maybe HELO and RSET, plus a command that
> queries the status of the user's mailbox.

Most importantly, from your point of view, HELP. ;-)
OK, now I see what you're trying to do.
When negotiations for the telnet protocol proper fail,
most telnet programs will make a raw TCP connection,
and you can use this to actually interact directly with the server
you are connected to.

Don't confuse SMTP and POP.
SMTP is a generic way of moving mail between address domains.
POP is a way of distributing the mail to users when it has
arrived at the final domain, as far as the network/e-mail address
is concerned.
At least from a simplistic point of view - I'm certain there
are complications I can't imagine. :-)
POP should usually just be a short, local connection, SMTP can be global,
as in world-wide.
They have different commands altogether.
I don't think SMTP (what you mention in the 'Subject:')
really has much in the way of logon requirements.
(Therefore spam gets around.)
I know one of my ISPs doesn't allow local transfers SMTP unless the address
it is receiving the mail from is also logged in via POP, to prevent/restrict
spam origination or mail relaying from other domains.
I had to write a short kermit script to mindlessly login
to POP just to show that I had a right to send mail out the SMTP
server, instead of through the web based email interface.

>
> Thanks,
>
> - Peter
>

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


>> Next Message >>

Return to [ 25 | September | 2000 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.