From 50c03d6d177b971526dc641e2328e3678bff1f4d Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 27 Sep 2022 15:52:33 -0700 Subject: [PATCH] enable tls for smtp auth. forces mail domain to have tls cert configured --- panel/classes/Panel/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/classes/Panel/Login.php b/panel/classes/Panel/Login.php index 9a1ab4c..394ecbd 100644 --- a/panel/classes/Panel/Login.php +++ b/panel/classes/Panel/Login.php @@ -47,7 +47,7 @@ class Login extends \Panel { $username = "$username@$domain"; } $emaildomain = $f3->get('HOST'); - $auth = new \Auth('smtp', ['host' => $emaildomain, 'port' => 25, 'scheme' => null]); + $auth = new \Auth('smtp', ['host' => $emaildomain, 'port' => 587, 'scheme' => 'tls']); if ($auth->login($username, $password)) { /* user passed smtp auth, check for admin access */ if ($email_array = $f3->call('\Panel::vGet', array("vmail-mboxes-get.sh -e $username -c", FALSE))) {