Folder structure reconstruction

This commit is contained in:
Fabian Stamm 2016-12-09 15:41:35 +01:00
parent df48102215
commit c4c32efb04
98 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@ namespace MailServer
public class Configuration
{
public const string Hostname = "localhost";
public const bool STARTTLS_Active = true;
public const bool STARTTLS_Active = false;
public const int MaxMessageSizeInKb = 500000;
}
}

View File

@ -1,5 +1,6 @@
using DnsClient;
using System;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
@ -14,7 +15,7 @@ namespace SMTPServer
var response = request.ResolveAsync("fabianstamm.de", DnDns.Enums.NsType.MX, DnDns.Enums.NsClass.ANY, System.Net.Sockets.ProtocolType.Tcp);
OutputResults(response);*/
TcpClient s = new TcpClient();
var l = new MailServer.SMTPServer.SmtpPortListener(25);

View File

@ -156,7 +156,9 @@ namespace MailServer.SMTPServer
if (Configuration.STARTTLS_Active)
{
#pragma warning disable CS0162 // Unerreichbarer Code wurde entdeckt.
SendExtensionResponse(Extensions.STARTTLS);
#pragma warning restore CS0162 // Unerreichbarer Code wurde entdeckt.
}
SendResponse(ResponseCodes.C250, "SIZE " + (Configuration.MaxMessageSizeInKb * 1000).ToString());