diff --git a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html
index 2762e0d43a..926ad64644 100644
--- a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html
+++ b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html
@@ -331,7 +331,7 @@
           
           
             
diff --git a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts
index 6815c81e31..d95c3d6096 100644
--- a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts
+++ b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts
@@ -416,6 +416,9 @@ export class MailServerComponent extends PageComponent implements OnInit, OnDest
   private get mailSettingsFormValue(): MailServerSettings {
     const formValue = this.mailSettings.getRawValue() as Required;
     delete formValue.changePassword;
+    if (!isDefinedAndNotNull(formValue.password)) {
+      delete formValue.password;
+    }
     return formValue;
   }