Folder structure reconstruction
This commit is contained in:
parent
df48102215
commit
c4c32efb04
@ -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;
|
||||
}
|
||||
}
|
@ -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);
|
||||
|
@ -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());
|
Loading…
Reference in New Issue
Block a user