mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: opensmtpd: Extend the PAM service.
* gnu/services/mail.scm (%opensmtpd-pam-services): New variable. (opensmtpd-service-type)[extensions]: Add it, extending PAM-ROOT-SERVICE-TYPE. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
parent
30adfd3600
commit
ace8e269a4
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
||||
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2019 Kristofer Buffington <kristoferbuffington@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -1667,6 +1668,9 @@ (define opensmtpd-activation
|
|||
(mkdir-p "/var/spool/smtpd")
|
||||
(chmod "/var/spool/smtpd" #o711))))))
|
||||
|
||||
(define %opensmtpd-pam-services
|
||||
(list (unix-pam-service "smtpd")))
|
||||
|
||||
(define opensmtpd-service-type
|
||||
(service-type
|
||||
(name 'opensmtpd)
|
||||
|
@ -1675,6 +1679,8 @@ (define opensmtpd-service-type
|
|||
(const %opensmtpd-accounts))
|
||||
(service-extension activation-service-type
|
||||
opensmtpd-activation)
|
||||
(service-extension pam-root-service-type
|
||||
(const %opensmtpd-pam-services))
|
||||
(service-extension profile-service-type
|
||||
(compose list opensmtpd-configuration-package))
|
||||
(service-extension shepherd-root-service-type
|
||||
|
|
Loading…
Reference in a new issue