--- mimedefang-2.72/utils.c.sock-chmod	2011-06-20 08:58:23.000000000 -0600
+++ mimedefang-2.72/utils.c	2011-12-03 15:02:43.133799805 -0700
@@ -1155,6 +1155,9 @@ make_listening_socket(char const *str, i
 	    close(sock);
 	    return -1;
 	}
+
+	/* don't forget to make the socket writable by our group */
+	(void)fchmod(sock, 0660);
     }
 
     if (listen(sock, backlog) < 0) {
--- mimedefang-2.72/mimedefang.c.sock-chmod	2011-06-20 08:56:38.000000000 -0600
+++ mimedefang-2.72/mimedefang.c	2011-12-03 15:02:05.969940579 -0700
@@ -2614,7 +2614,11 @@ main(int argc, char **argv)
 
     /* Open the milter socket if library has smfi_opensocket */
 #ifdef MILTER_BUILDLIB_HAS_OPENSOCKET
-    (void) smfi_opensocket(1);
+    {
+	mode_t oldmask = umask(0117);
+	(void) smfi_opensocket(1);
+	(void) umask(oldmask);
+    }
 #endif
 
     if (ValidateHeader[0]) {
