From bf94b3111ea4f214450b86a6a63741fad511415d Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sat, 16 Feb 2019 22:10:22 +0000 Subject: [PATCH] Set the local domain if the Application URL is set for the HELO or EHLO commands. #2636 --- src/Ombi.Notifications/GenericEmailProvider.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Ombi.Notifications/GenericEmailProvider.cs b/src/Ombi.Notifications/GenericEmailProvider.cs index d3f207234..916367e0a 100644 --- a/src/Ombi.Notifications/GenericEmailProvider.cs +++ b/src/Ombi.Notifications/GenericEmailProvider.cs @@ -5,6 +5,7 @@ using MailKit.Net.Smtp; using Microsoft.Extensions.Logging; using MimeKit; using Ombi.Core.Settings; +using Ombi.Helpers; using Ombi.Notifications.Models; using Ombi.Notifications.Templates; using Ombi.Settings.Settings.Models; @@ -56,6 +57,11 @@ namespace Ombi.Notifications using (var client = new SmtpClient()) { + if (customization.ApplicationUrl.HasValue()) + { + client.LocalDomain = customization.ApplicationUrl; + } + if (settings.DisableCertificateChecking) { // Disable validation of the certificate associated with the SMTP service