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);