IIS Management Console vs SMTP email enableSSL attribute [Answered]RSS

5 replies

Last post Aug 09, 2016 06:09 AM by Jean Sun

  • IIS Management Console vs SMTP email enableSSL attribute

    Aug 03, 2016 03:44 PM|perreaultd|LINK

    Hi,

    I've look around many posts here and none seems to really talk about the issue where i am wondering if there is a specific reason why the IIS UserInterface Console cannot handle the enableSSL attribute from an asp.net web.config file.

    Many posts explains to developer how easy it is to enable SSL through the web.config file (in plain text).

    None explains why it has to be that way...

    ISV ships application to customer where they need to configure 90% of the smtp relay (like gmail or O365) into the user interface then needs to go into text file to add an attribute to the web.config file (hope users know how/where to add the attribute).

    Then user cannot go back into the IIS section to change settings like credentials because the section won't load because of the unknown attribute.

  • Re: IIS Management Console vs SMTP email enableSSL attribute

    Aug 04, 2016 03:22 AM|Jean Sun|LINK

    Hi,

    handle the enableSSL attribute 

    Do you mean add HTTPS binding?

    Many posts explains to developer how easy it is to enable SSL through the web.config file (in plain text).
    
    None explains why it has to be that way...

    All the methods(IIS UI, scripts, appcmd...) that we configure the SSL settings will finally save configuration changes in web.config file.

    So Modify the web.config file is the most directly way.

    Best Regards,

    Jean

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: IIS Management Console vs SMTP email enableSSL attribute

    Aug 04, 2016 09:58 AM|perreaultd|LINK

    Hi,

    No i am not talking about bindings. I am talking about SMTP email configuration as mentionned in the thread title and shown with the following image http://intellitect.com/wp-content/uploads/2010/10/image3.png

    Here's the scenario:

    As an ISV, we ship to customers applications they need to configure according to their environment. The WebApp sends email and they want to configure the app to use their O365 account to send emails through SMTP.

    After the users configure the SMTP server, port and credentials into that IIS section of the application, it saves the user settings into the web.config file in the <mailSettings> section under system.net. This is a rich experience for the user. But the application cannot send email yet because O365 requires the connection to be secured over SSL/TLS. The user interface does not allow this settings to be set. 

    Because the .NET Framework 4+ supports the enableSSL attribute into the <mailSettings> configuration, the user would need to go into text mode of the web.config and add the enableSSL="true" to the <network> node under <mailSettings>. This kinda downgrades the experience for the user.

    But worst, if the user goes back to IIS to see or change its SMTP settings, IIS is not able to load the dialog because it doesn't recognized this enableSSL attribute and IIS ends up in error.

    Wouldn't the fix be as simple as adding to the actual XSD validation file all the supported attributes of the .NET Framework to let developers and users configure the WebApp without breaking IIS??

    So my initial question was, i see a lots of posts showing how to activate SSL for SMTP and they all talk about adding the attribute in text mode. It seems everyone is feeling OK about breaking an IIS section where users can no more edit their settings.

  • Re: IIS Management Console vs SMTP email enableSSL attribute

    Aug 05, 2016 06:28 AM|Jean Sun|LINK

    Hi,

    It seems that this is a bug for IIS doesn't have such section to enable SSL using the UI, and it doesn't recognize the SSL attribute.

    Now the only way to configure this is using the text mode.

    Best Regards,

    Jean

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: IIS Management Console vs SMTP email enableSSL attribute

    Aug 05, 2016 09:54 AM|perreaultd|LINK

    Hi,

    Is there a place like an IIS UserVoice where users can submit bugs, requests changes and follow up their requests?

  • Re: IIS Management Console vs SMTP email enableSSL attribute

    Aug 09, 2016 06:09 AM|Jean Sun|LINK

    Hi,

    You can report IIS bug here : http://forums.iis.net/1080.aspx/1?IIS+Feature+Feedback

    Best Regards,

    Jean

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.