Click here to Skip to main content
15,895,142 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   18.9K   315  
An SMTP and POP3 mail server written using the .NET Framework and C#.
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
  <Settings>
    <MailRoot>c:\MailStore\</MailRoot>
    <ConnectionString>server=localhost;uid=sa;pwd=;database=lsMail</ConnectionString>
    <DataBaseType>XML</DataBaseType>
    <ErrorFile />
    <SMTP_IPAddress>(All Unassigned)</SMTP_IPAddress>
    <SMTP_Port>25</SMTP_Port>
    <SMTP_Threads>200</SMTP_Threads>
    <POP3_IPAddress>(All Unassigned)</POP3_IPAddress>
    <POP3_Port>110</POP3_Port>
    <POP3_Threads>30</POP3_Threads>
    <SmartHost>mail.neti.ee</SmartHost>
    <UseSmartHost>False</UseSmartHost>
    <Dns1>194.126.115.18</Dns1>
    <Dns2>194.126.101.34</Dns2>
    <LogServer>True</LogServer>
    <LogSMTPCmds>True</LogSMTPCmds>
    <LogPOP3Cmds>True</LogPOP3Cmds>
    <SMTP_SessionIdleTimeOut>300</SMTP_SessionIdleTimeOut>
    <SMTP_CommandIdleTimeOut>120</SMTP_CommandIdleTimeOut>
    <SMTP_MaxBadCommands>8</SMTP_MaxBadCommands>
    <POP3_SessionIdleTimeOut>300</POP3_SessionIdleTimeOut>
    <POP3_CommandIdleTimeOut>120</POP3_CommandIdleTimeOut>
    <POP3_MaxBadCommands>8</POP3_MaxBadCommands>
    <MaxMessageSize>10</MaxMessageSize>
    <MaxRecipients>100</MaxRecipients>
    <MaxRelayThreads>30</MaxRelayThreads>
    <RelayInterval>30</RelayInterval>
    <RelayRetryInterval>60</RelayRetryInterval>
    <RelayUndeliveredWarning>5</RelayUndeliveredWarning>
    <RelayUndelivered>1</RelayUndelivered>
    <UndeliveredTemplate>
Your message didn't reached to following recipient &lt;#RECEPTIENT&gt;
        Server returned error: "&lt;#ERROR&gt;"

For more detail about message, please look attachment data.eml.</UndeliveredTemplate>
    <UndeliveredWarningTemplate>
Your message could not immedeately delivered to following recipient &lt;#RECEPTIENT&gt;
        Server returned error: "&lt;#ERROR&gt;"
 
         NOTE: Server will try to deliver this message for &lt;#UNDELIVERED_HOURS&gt; hours.


For more detail about message, please look attachment data.eml.</UndeliveredWarningTemplate>
    <StoreUndeliveredMessages>True</StoreUndeliveredMessages>
    <PostMasterUserName>postmaster</PostMasterUserName>
    <PostMasterPassword>postmaster</PostMasterPassword>
  </Settings>
</NewDataSet>

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