diff --git a/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/Api/ServiceController.php b/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/Api/ServiceController.php
index 269363bfe..7d21f736f 100644
--- a/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/Api/ServiceController.php
+++ b/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/Api/ServiceController.php
@@ -58,6 +58,8 @@ class ServiceController extends ApiControllerBase
public function startAction()
{
if ($this->request->isPost()) {
+ // close session for long running action
+ $this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun('postfix start');
return array("response" => $response);
@@ -73,6 +75,8 @@ class ServiceController extends ApiControllerBase
public function stopAction()
{
if ($this->request->isPost()) {
+ // close session for long running action
+ $this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("postfix stop");
return array("response" => $response);
@@ -88,6 +92,8 @@ class ServiceController extends ApiControllerBase
public function restartAction()
{
if ($this->request->isPost()) {
+ // close session for long running action
+ $this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("postfix restart");
return array("response" => $response);
@@ -121,7 +127,6 @@ class ServiceController extends ApiControllerBase
$status = "unkown";
}
-
return array("status" => $status);
}
diff --git a/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Recipient.xml b/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Recipient.xml
index 5789e3cd6..40b5c48b4 100644
--- a/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Recipient.xml
+++ b/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Recipient.xml
@@ -17,7 +17,7 @@