diff -urN b/postgrey a/postgrey --- b/postgrey 2014-02-03 12:45:09.038687802 +0100 +++ a/postgrey 2014-02-03 12:47:43.083660849 +0100 @@ -58,10 +58,10 @@ ebegin "Starting Postgrey" # HACK -- start a subshell and corrects perms on the socket... - ( if [ "x${POSTGREY_TYPE}" = "xunix" ]; then - rm -f ${POSTGREY_SOCKET}; - while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; - chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & + if [ "x${POSTGREY_TYPE}" = "xunix" ]; then + rm -f ${POSTGREY_SOCKET} + ( while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; chmod a+rw,a-x ${POSTGREY_SOCKET} ) & + fi if [ -z ${POSTGREY_DELAY} ] ; then POSTGREY_DELAY_ARG=""