Redirecting mail from one to another - WeOnlyDo Discussion board

Redirecting mail from one to another (wodSmtpServer / wodPop3Server / wodImapServer)

by ajitpals, Monday, November 09, 2015, 17:12 (3062 days ago)
edited by ajitpals, Monday, November 09, 2015, 17:19

We have already a service running in C# listening to SMTP email connections over the Port 25. The current connection doesn't support SSL/TLS for the Service. We want to shift the current service to the Port 26 and have new service which support SSL connection run at port 25. When user connect to the new service (support SSL), we want this service to act as proxy and send all event back to the port 26 and wait for the reply from there and then process further.

Is it possible to handle all these events or any other suggestion are welcome. We want to have both SSL/ Non SSL connection.

can something like this work on the server. It support both cases, unless we change the Enum SecurityRequired.

if (IsSSLSupported)
{
//Apply the certificate.
Certificate cert = null;
cert = new Certificate();

cert.Load("certifcate.cer");
cert.LoadKey("certificate.pfx", "password");

SMTPServer.Certificate = cert;
SMTPServer.Security = SmtpSecurityEnum.SecurityAllowed;
}

can sending client or server, can check, if starttls is there, they should use it or sending is always default back to the non SSL?


Complete thread: