summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-05-06 22:25:12 +0200
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-05-06 22:25:12 +0200
commit2a783dc0bed64a64c5a03e0a3d4436f2d7a54cfa (patch)
tree274eb9045a41da8b0818ca5c76d1e468e6f77cfc
parent27cc3f51a0bd01478faa5a12a6571cc552b87fe0 (diff)
downloaddmarc-2a783dc0bed64a64c5a03e0a3d4436f2d7a54cfa.tar.gz
dmarc-2a783dc0bed64a64c5a03e0a3d4436f2d7a54cfa.tar.bz2
dmarc-2a783dc0bed64a64c5a03e0a3d4436f2d7a54cfa.zip
The socket should be group-writable
The MTA should be able to write to the socket and it is running in another user. So we have to change the umask to make the socket group-writable.
-rwxr-xr-xdmarc_milter.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/dmarc_milter.pl b/dmarc_milter.pl
index 4a0497f..67e463f 100755
--- a/dmarc_milter.pl
+++ b/dmarc_milter.pl
@@ -94,6 +94,7 @@ sub main($listen, $mailman, $message) {
# Start the mainloop:
# No interpreter limit, but recycle after 100 requests
+ umask(0002);
Sendmail::Milter::main(0, 100);
}