SPDX-FileCopyrightText: V SPDX-License-Identifier: OSL-3.0 --- a/src/mlmmj-process.c +++ b/src/mlmmj-process.c @@ -490,6 +490,9 @@ { NULL, 0, NULL } }; + /* Postfix unconditionally sets this to 0077 */ + umask(0027); + CHECKFULLPATH(argv[0]); log_set_name(argv[0]); @@ -553,7 +556,7 @@ donemailname = concatstr(3, listdir, "/queue/", randomstr); donemailfd = open(donemailname, O_RDWR|O_CREAT|O_EXCL, - S_IRUSR|S_IWUSR); + S_IRUSR|S_IWUSR|S_IRGRP); } while ((donemailfd < 0) && (errno == EEXIST));