diff options
-rw-r--r-- | src/org/euandre/queue.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/euandre/queue.scm b/src/org/euandre/queue.scm index 5790826..8d18f3b 100644 --- a/src/org/euandre/queue.scm +++ b/src/org/euandre/queue.scm @@ -1106,9 +1106,10 @@ header_checks = regexp:{ { /^Received:.*/ IGNORE }, { /^X-Originating-IP:.*/ IGN (format (current-error-port) "Creating Postfix queue directory: \"~a\".~%" #$queue-directory) (mkdir-p/perms #$queue-directory user #o755) - (format (current-error-port) - "Creating email spool director: \"/var/mail\".~%") - (mkdir-p/perms "/var/mail" user #o755) + (unless (directory-exists? "/var/mail") + (format (current-error-port) + "Creating email spool director: \"/var/mail\".~%") + (mkdir-p/perms "/var/mail" user #o755)) (format (current-error-port) "Updating /etc/aliases: FIXME.~%") ;; FIXME: add -c option |