Server does not support secure connections, though .PFX is already pointed

35 views
Skip to first unread message

DP Bhatt

unread,
May 9, 2019, 6:36:13 AM5/9/19
to ArGoSoft Products
I have to run ArGoSoft Mail Server in a secure way and I have already received a .PFX certificate from a certificate authority.
Then I pointed the .PFX file by clicking on Security - Server Certificate - Use from PFX file.

After that I clicked on Options - Services and made the following changes:

In SMTP section, Disable STARTTLS  Unchecked
In Secondary SMTP section, Disable STARTTLS Unchecked
In POP3 section, Disable STLS Unchecked
In Delivery section, Use STARTTLS when possible Checked


I believe these are the necessary steps to run the ArGoSoft Mail Server in TLS. 

Then I tried to run following C# code with EnableSsl flag to true, but I received an exception as "Server does not support secure connections.". Am I missing any steps? Please help.


      try
            {
                SmtpClient client = new SmtpClient("mail server domain, 587);

                client.Credentials = new System.Net.NetworkCredential("username", "password");
                client.EnableSsl = true; 
                client.UseDefaultCredentials = true;

                MailMessage message = new MailMessage("from email address", "to email address", "email subject", "email body");
                client.Send(message);
            }
       catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

ArGoSoft Products

unread,
May 9, 2019, 7:37:29 AM5/9/19
to ArGoSoft Products
Hi DP,

It should be working.

What do you see in the log of mail server?  Can you enable logging of SMTP commands, and attempt to send mail, and send me what do you see.

Is your server accessible from outside?  Send me its IP address

And, possibly, you want to move this conversation to private, because we will have IP addresses and logs involved there.  Reply me in private email, or from https://www.argosoft.com/rootpages/Contact.aspx


Archie
Reply all
Reply to author
Forward
0 new messages