Click here to Skip to main content
15,897,273 members
Articles / Programming Languages / C#

SMTP and POP3 Mail Server

Rate me:
Please Sign up or sign in to vote.
4.88/5 (96 votes)
29 Sep 20031 min read 1M   19K   315  
An SMTP and POP3 mail server written using the .NET Framework and C#.
CREATE table lsAliases(
        AliasID varchar(40) UNIQUE,
        DomainID varchar(40), 
        AliasName varchar(500), 
        Description varchar(500),  
        AliasMembers varchar(8000),
        IsPublic boolean   
);


CREATE table lsDomains(
        DomainID varchar(40) UNIQUE,
        DomainName varchar(500),
        Description varchar(500)
);


CREATE table lsMailStore(
        MessageID varchar(40) UNIQUE,
        Mailbox varchar(500),
        Folder varchar(500),
        Data bytea,
        Size bigint,
        TopLines bytea,
        MessageFlags bigint,
        Date timestamp,
        UID int
);


CREATE table lsRouting(
        RouteID varchar(40) UNIQUE,
        DomainID varchar(40),        
        Pattern varchar(500),
        Mailbox varchar(500),
        Description varchar(500),
        DomainName varchar(500)
);


CREATE table lsSecurityList(
        SecurityID varchar(40) UNIQUE,
        Description varchar(500),
        Protocol varchar(500),
        Type varchar(500),
        Action varchar(500),
        Content varchar(500),
        StartIP bigint,
        EndIP bigint,
        Enabled boolean
);


CREATE table lsUsers(
        UserID varchar(40) UNIQUE,
        DomainID varchar(40),
        FullName varchar(500),
        UserName varchar(500),
        Password varchar(500),
        Description varchar(500),
        Emails varchar(8000),
        MailBox_Size bigint,
        Enabled boolean,
        AllowRelay boolean,
        RemotePop3Servers bytea
);

CREATE table lsIMAPFolders(
        UserID varchar(40) UNIQUE,
        FolderName varchar(500)
);

CREATE table lsIMAPSubscribedFolders(
        UserID varchar(40) UNIQUE,
        FolderName varchar(500)
);

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Estonia Estonia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions