emailserv

所属分类:Email服务器
开发工具:Visual C++
文件大小:276KB
下载次数:22
上传日期:2011-04-17 11:39:32
上 传 者madud00022
说明:  用VC++ 完成的Email 服务器,有源代码,与网络紧密联系的一个VC++程序,是书中的一个实例,比较完整,VC6环境可直接编译,界面语言是英文,邮件服务器的基本功能实现了
(Done with VC++ Email server, source code, and a closely linked network of VC++ program, is an instance of the book, more complete, VC6 environment can be directly translated, the interface language is English, the basic functions of the mail server implements)

文件列表:
Read_Me.txt (20, 2011-04-16)
LISTS\TEST.LST (448, 1999-11-08)
RES\BITMAP1.BMP (2518, 1998-11-22)
RES\FAVICON.ICO (1078, 1998-11-22)
RES\ICO00001.ICO (1078, 1998-11-22)
RES\ICO00002.ICO (1078, 1998-11-22)
RES\ICON1.ICO (1078, 1998-11-22)
RES\ICON2.ICO (1078, 1998-11-22)
RES\INETSERVER.ICO (1078, 1998-11-22)
RES\INETSERVER.RC2 (402, 1998-11-22)
TELNET\HELP.TXT (268, 1998-12-28)
TELNET\MOTD.TXT (1177, 1998-12-27)
TOOLS\INETSVC\MSG00001.BIN (360, 1998-11-22)
TOOLS\INETSVC\MYSERVICE.CPP (2917, 1998-11-22)
TOOLS\INETSVC\MYSERVICE.H (421, 1998-11-22)
TOOLS\INETSVC\NTSERVAPP.APS (234880, 1998-11-22)
TOOLS\INETSVC\NTSERVAPP.CPP (717, 1998-11-22)
TOOLS\INETSVC\NTSERVAPP.H (62, 1998-11-22)
TOOLS\INETSVC\NTSERVAPP.RC (139, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.BAK (9187, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.CPP (15595, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.DSP (4344, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.DSW (569, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.H (1541, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.MAK (9187, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.MDP (34816, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.OPT (48640, 1998-11-22)
TOOLS\INETSVC\NTSERVICE.VCP (12800, 1998-11-22)
TOOLS\INETSVC\NTSERVMSG.APS (848, 1998-11-22)
TOOLS\INETSVC\NTSERVMSG.H (2232, 1998-11-22)
TOOLS\INETSVC\NTSERVMSG.MC (885, 1998-11-22)
TOOLS\INETSVC\NTSERVMSG.RC (37, 1998-11-22)
TOOLS\USRCONV\MAIN.CPP (950, 1998-12-27)
TOOLS\USRCONV\MAIN.H (0, 1998-12-25)
TOOLS\USRCONV\USRCONV.DSP (3516, 1998-12-25)
TOOLS\USRCONV\USRCONV.DSW (565, 1998-12-25)
TOOLS\USRCONV\USRCONV.EXE (34816, 1998-12-25)
TOOLS\USRCONV\USRCONV.OPT (48640, 1998-12-27)
WEBMAIL\INTRO.HTM (175, 1998-12-29)
AFXRES.H (32525, 1998-06-15)
... ...

This is a small code for forwarding mails from POP3 postbox to MSMail. USE AT YOUR OWN RISK.This has been written using CMC (Common Messaging Calls). The codes have to be included with InterServer and compiled.I have tested this with MSMail but should work with any CMC enabled messaging services. Some part of main InetServer code have been modified for testing & implementing. Please forward bug reports to yasinag@hotmail.com. Requirement for running:- ~~~~~~~~~~~~~~~~~~~~~~~~~ The program uses MAPI DLLs ( bundled with all Windows95/NT ) 1. Valid MSMail User,Exchange_Profile,password. Currently hard coded as "InetGate" & "ipsmail" on ProcessPOP32MAPI() a. create a new user called InetGate in your MSMail postoffice. b. create a new profile (InetGate) called InetGate in your Win95/WinNT All mails will be forwarded as mail from InetGate to Respective User. SMTP From address will be added to Mail Message. 2. New directory for storing all mails that needs to be forwarded. eg: C:\InetServer\cmcqueue 2. New file called mapifwd.ctl storing all POP3 & MSMail users eg : eg:- yasin ( POP3 User ) eg:- Mohammed Yasin ( MSMail Alias ) eg:- MS:APAINTS/APBHP/yasin ( MSMail Address ) eg:- abc eg:- Test Mail user eg:- MS:APAINTS/APBHP/test 3. All mails that needs to be transfered should be moved to new directory called "cmcqueue". InetServerDlg.cpp has been modified to do this automatically with user list. 4. The envelop should start with 1.MSMail user list ( used by mapi forwarding code ) 2.Mail Header ( SMTP mail header ) 3.Mail Body ( SMTP Message Body ) eg:- X-CMC_TO:;; ( one record per line ) eg: X-CMC_TO:Mohamed Yasin;MS:APAINTS/APBHP/yasin; X-CMCEND ( indicates end of mapi address used while parsing in POP2CMC) ...... ( mail header ) ( blank line ) ..... ( message ) . ( end of mail envelop) InetServerDlg.cpp has been modified to do this automatically. Limitation:- ~~~~~~~~~~~~ 1. Supports only base*** decoding for attachment 2. Supports only 16 file attachment ( More than 16 will be ignored ) 3. Supports only 16 mapi addresses per mail 4. Cannot run as Service ( Some MSMail gateway says documented bug exist ) Modified/Added File on Inetserv:- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Wrap2cmc.cpp -- (NEW) wrapper class defnition for CMC calls 2. Wrap2cmc.h -- (NEW) wrapper class declaration for CMC calls 3. Pop2cmc.cpp -- (NEW) mapi forwarding class defnition 4. Pop2cmc.h -- (NEW) mapi forwarding class declaration 5. cmcutil.h -- (NEW) datatype declaration 6. base***.h -- (NEW) Base*** encoding/decoding taken from public domain 6. base***.cpp -- (NEW) Base*** encoding/decoding taken from public domain 8. InetServerApp.cpp -- all mapi specific variable/code/function commented with //- MAPI a. initialisation code & gets addressess of CMC function 9. InetServerDlg.h -- all mapi specific variable/code/function commented with //- MAPI a. new class to pop3user & mapiuser link 10. InetServerDlg.cpp -- all mapi sepcific variable/code/function commented with //- MAPI a. (NEW) array to stores pop3user & mapiuser link b. InetServerDlg::ProcessNewMail() modified to update mail envelop for mapi forwarding c. CAboutDlg::OnReg() modified to update mapi-enabled flag in registry d. (NEW) InetServerDlg::ProcessPOP32CMC() logs onto mapi and sends the mail error trapping doesn't happen e. InetServerDlg::OnPop3() for building pop3-mapi user link TODO:- ~~~~~~ 1. Add other Decoding schemes 2. Identify To,Cc,Bcc and process accordingly 3. Add MSMail to SMTP forwarding 4. Proper error trappings 5. Parameterise Exchange_Profile & Password 6. Proper documentation ?? 7. Add MSExchange forwarding ( current code might work )

近期下载者

相关文件


收藏者