Solved

pop3 to smtp

Posted on 2000-02-14
3
390 Views
Last Modified: 2010-04-02
I know this is not a true c++ q, but I'm going to write it in c++..eheh.
Anyway, I want to write a pop3 to smtp
prg.  I understand and have all the risks involved in doing that.  I'm not really satisfied with what's on the net and want to write my own.  

Goal:
Write  a pop3 gateway and forward it to and smtp server.

Q:  What rfc's should I be concerned with dealing with pop3 and what kind of gotcha's should I be aware of when writing this type of program.

Any advise would be appreciated.  I plan on using MSVC's ATL as an NT service.
0
Comment
Question by:ivanh
3 Comments
 
LVL 1

Accepted Solution

by:
JMu earned 200 total points
ID: 2520430
POP3 is described in rfc1939 and SMTP in rfc821.

http://www.cis.ohio-state.edu/htbin/rfc/rfc821.html

http://www.cis.ohio-state.edu/htbin/rfc/rfc1939.html

Just write a POP3 client and a SMTP client. I don't see any gotcha's here.

JMu
0
 
LVL 6

Expert Comment

by:WxW
ID: 2520432
POP3 -> SMTP ?

1.Learn WinSock programming
2.Find the POP3 RFC . I haven't yet , i just learned it from telnet...
3.Find the SMTP RFC ( the save as above ...)
4.why do u really need that program
5.there are g00d gateways already
....
....
last-1.im tired to say more
last.You have better to use a plain C++ . I dont know what ATL is , but messing with internet services as POP3 i don't think that u can use anyother thing .
0
 
LVL 1

Author Comment

by:ivanh
ID: 2520745
I guess I should have worded the question differently.  I'm trying to write a POP3 poller, have the program read the headers of the mail and then forward the message to an smtp server to the correct person.  Lastly, I need to make sure I retain the envelope information, etc.  Your right, there are a lot of people selling one for about $170 USD.

I have heard of people talking about some sort of X-Envelope-???.  What is considered a sure way to determine the destination of the message and so on.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

759 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

22 Experts available now in Live!

Get 1:1 Help Now