aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-17 16:27:15 -0300
committerEuAndreh <eu@euandre.org>2023-03-17 16:27:15 -0300
commit0c50cd5de80eecbfab793bb7eccdf5404fe045f1 (patch)
treefbf27583ecf266688e8fb72e4e775ec63a424068
parentqueue.scm: Parameterize "/var/mail/" Postfix mail spool directory (diff)
downloadpackage-repository-0c50cd5de80eecbfab793bb7eccdf5404fe045f1.tar.gz
package-repository-0c50cd5de80eecbfab793bb7eccdf5404fe045f1.tar.xz
queue.scm: Use newaliases(1) over postalias(8) on Postfix activation
-rw-r--r--src/org/euandre/queue.scm8
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>