diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx
index 2958c470..784aa888 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx
@@ -1,7 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MailEnable_EditDomain.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.MailEnable_EditDomain" %>
\ No newline at end of file
+
+
+
+ |
+
+
+ |
+
+
+ Only smart host email from authenticated senders: |
+
+
+ |
+
+
+ Smart host mail to: |
+
+
+ (enter IP address or domain name of destination) |
+
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.cs
index e3c0775a..7aa33557 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.cs
@@ -39,6 +39,7 @@ using System.Web.UI.HtmlControls;
using WebsitePanel.Providers.Mail;
+
namespace WebsitePanel.Portal.ProviderControls
{
public partial class MailEnable_EditDomain : WebsitePanelControlBase, IMailEditDomainControl
@@ -50,13 +51,26 @@ namespace WebsitePanel.Portal.ProviderControls
public void BindItem(MailDomain item)
{
BindMailboxes(item);
+
+ chkDomainSmartHostEnabled.Checked = Convert.ToBoolean(item["MailEnable_SmartHostEnabled"]);
+ chkDomainSmartHostAuthSenders.Checked = Convert.ToBoolean(item["MailEnable_SmartHostAuth"]);
+ txtDestination.Text = item.RedirectionHosts;
}
public void SaveItem(MailDomain item)
{
- item.CatchAllAccount = ddlCatchAllAccount.SelectedValue;
item.AbuseAccount = ddlAbuseAccount.SelectedValue;
item.PostmasterAccount = ddlPostmasterAccount.SelectedValue;
+
+ // if we have a smarthost we need to clear the catchall
+ if (chkDomainSmartHostEnabled.Checked)
+ item.CatchAllAccount= "";
+ else
+ item.CatchAllAccount = ddlCatchAllAccount.SelectedValue;
+
+ item["MailEnable_SmartHostEnabled"] = chkDomainSmartHostEnabled.Checked.ToString();
+ item["MailEnable_SmartHostAuth"] = chkDomainSmartHostAuthSenders.Checked.ToString();
+ item.RedirectionHosts = txtDestination.Text;
}
private void BindMailboxes(MailDomain item)
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.designer.cs
index 53d48312..32593262 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.designer.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/MailEnable_EditDomain.ascx.designer.cs
@@ -1,10 +1,9 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:2.0.50727.3074
//
// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// the code is regenerated.
//
//------------------------------------------------------------------------------
@@ -66,5 +65,41 @@ namespace WebsitePanel.Portal.ProviderControls {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.DropDownList ddlAbuseAccount;
+
+ ///
+ /// lblDomainSmartHostEnabled control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDomainSmartHostEnabled;
+
+ ///
+ /// chkDomainSmartHostEnabled control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkDomainSmartHostEnabled;
+
+ ///
+ /// chkDomainSmartHostAuthSenders control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkDomainSmartHostAuthSenders;
+
+ ///
+ /// txtDestination control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtDestination;
}
}