diff options
author | EuAndreh <eu@euandre.org> | 2023-03-17 16:27:15 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-17 16:27:15 -0300 |
commit | 0c50cd5de80eecbfab793bb7eccdf5404fe045f1 (patch) | |
tree | fbf27583ecf266688e8fb72e4e775ec63a424068 /src | |
parent | queue.scm: Parameterize "/var/mail/" Postfix mail spool directory (diff) | |
download | package-repository-0c50cd5de80eecbfab793bb7eccdf5404fe045f1.tar.gz package-repository-0c50cd5de80eecbfab793bb7eccdf5404fe045f1.tar.xz |
queue.scm: Use newaliases(1) over postalias(8) on Postfix activation
Diffstat (limited to 'src')
-rw-r--r-- | src/org/euandre/queue.scm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/org/euandre/queue.scm b/src/org/euandre/queue.scm index 821dd0c..e9b6532 100644 --- a/src/org/euandre/queue.scm +++ b/src/org/euandre/queue.scm @@ -1127,7 +1127,7 @@ header_checks = regexp:{ { /^Received:.*/ IGNORE }, { /^X-Originating-IP:.*/ IGN (define (postfix-activation config) (match-record config <postfix-configuration> - (mail-directory queue-directory) + (package mail-directory queue-directory) #~(begin (use-modules (guix build utils)) (let ((user (getpwnam "root"))) @@ -1138,10 +1138,8 @@ header_checks = regexp:{ { /^Received:.*/ IGNORE }, { /^X-Originating-IP:.*/ IGN "Creating Postfix queue directory: \"~a\".~%" #$queue-directory) (mkdir-p/perms #$queue-directory user #o755) (format (current-error-port) - "Updating /etc/aliases: FIXME.~%") - ;; FIXME: add -c option -#; - (invoke #$(file-append postfix "/sbin/postalias") "/etc/aliases"))))) + "Updating /etc/aliases.~%") + (invoke #$(file-append package "/bin/newaliases")))))) (define (postfix-shepherd-service config) (match-record config <postfix-configuration> |