SMTP authentication for FIM 2020 r2 RRS feed

  • Question

  • Hi All,

    Is FIM capable of using SMTP Authentication to send email.?  We are using mimecast gateway to send emails and  we are planning to create an account in mimecast and that can perform SMTP Submission to route mail to Mimecast.

    How to define these things in FIM config file?

    Is this possible?

    Rajesh Kumar NSR, FIM administrator, Wipro Technologies. India.

    Tuesday, October 3, 2017 5:25 AM

All replies

  • You should be able to specify this in the FIM Service config file by configuring the .Net SMTP Client:


    Consulting | Blog | AD Book

    Thursday, October 5, 2017 4:25 PM
  • You can check/test the settings Brian mentions above with a powershell script/code like the one below. They use the same .Net SMTP client library.

    Based on my readings, If you need a secure connection, that library does not handle straight SSL connections (I am just going by what I read, so I haven't validated that.) You have to use the StartTLS port on the server. The default is 587, but your SMTP server may be set up differently.

    $smtp = new-object Net.Mail.SmtpClient("IP Address / DNS Name")
    $smtp.EnableSsl = $true
    $smtp.Port = 587

    $smtp.UseDefaultCredentials = $false
    $smtp.Credentials = New-Object System.Net.NetworkCredential("UserName","Password")

    $smtpmsg = new-object Net.Mail.MailMessage
    $smtpmsg.From = "Sender's Email"
    $smtpmsg.Subject = "Test message to check mail flow"
    $smtpmsg.To.Add("Recipient's Email")
    $smtpmsg.Body = "Test message to check mail flow" 

    $smtpmsg.IsBodyHtml = $true



    Monday, October 9, 2017 2:59 PM
  • Hi Brian,

    The above doc mention all available option but in FIM we need to use key that application code can understand.

    Likewise we have app settings in service config file as below.

        <!-- Setup adds entries -->
        <add key="mailServer" value="" />
        <add key="isExchange" value="0" />
        <add key="sendAsAddress" value="" />
        <add key="synchronizationServerName" value="" />

    If our needs authentication then Microsoft did not expose any other settings to gain that. Also we don't have visibility in application code.

    Please suggest how can we specify credential for our



    Tuesday, October 16, 2018 6:45 AM