From abea7481299ace248f55bbf833d081ec3f06f91a Mon Sep 17 00:00:00 2001 From: pmkuipers Date: Sat, 23 May 2020 22:56:20 +0200 Subject: [PATCH] Changed Dovecot auth check to use sudo --- app/DovecotPw.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/DovecotPw.php b/app/DovecotPw.php index 7242601..3abbff2 100644 --- a/app/DovecotPw.php +++ b/app/DovecotPw.php @@ -32,7 +32,7 @@ class DovecotPw $fp = []; $m = static::$method; $r = static::$rounds; - $proc = proc_open( "'/usr/bin/doveadm' 'auth' 'test' '-x' 'service=imap' '{$user}'", + $proc = proc_open( "'sudo' '/usr/bin/doveadm' 'auth' 'test' '-x' 'service=imap' '{$user}'", [0 => ["pipe","r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"]], $fp);