[bug#77501] Restore logging of OpenSMTPd to /var/log/maillog.
Commit Message
Please see this thread for details:
https://lists.gnu.org/archive/html/help-guix/2025-04/msg00009.html
Change-Id: I485e040d680ccb39fa62e49d2e6ea916f047972c
---
gnu/services/mail.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
base-commit: 52ce48e754a77675da69e14d8f0dfa5fb76539ef
@@ -1742,8 +1742,11 @@ (define (opensmtpd-shepherd-service config)
(documentation "Run the OpenSMTPD daemon.")
(start (let ((smtpd (file-append package "/sbin/smtpd")))
#~(make-forkexec-constructor
- (list #$smtpd "-f" #$config-file)
- #:pid-file "/var/run/smtpd.pid")))
+ (list #$smtpd
+ "-d"
+ "-f" #$config-file)
+ #:pid-file "/var/run/smtpd.pid"
+ #:log-file "/var/log/maillog")))
(stop #~(make-kill-destructor))))))
(define %opensmtpd-accounts