aboutsummaryrefslogtreecommitdiff
path: root/services/opensmtpd.scm
diff options
context:
space:
mode:
authorPjotr Prins2023-05-27 10:58:45 -0500
committerPjotr Prins2023-07-10 00:48:05 -0500
commit252d3fd72c61bde40872ef12138346571ed88b57 (patch)
tree4c3f91e2ea2b563df94931512294770a4fcfc24b /services/opensmtpd.scm
parent2ef9cebfa7daaf79ccd1d3a336d19da78af83256 (diff)
downloadgn-machines-252d3fd72c61bde40872ef12138346571ed88b57.tar.gz
Basic mail/opensmtpd service added
Diffstat (limited to 'services/opensmtpd.scm')
-rw-r--r--services/opensmtpd.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/services/opensmtpd.scm b/services/opensmtpd.scm
new file mode 100644
index 0000000..1b1e58f
--- /dev/null
+++ b/services/opensmtpd.scm
@@ -0,0 +1,21 @@
+(use-modules (gnu)
+ (gnu services mail))
+
+(operating-system
+ (host-name "mail")
+ (timezone "UTC")
+ (locale "en_US.utf8")
+ (bootloader (bootloader-configuration
+ (bootloader grub-bootloader)
+ (targets (list "/dev/sdX"))))
+ (file-systems %base-file-systems)
+ (users %base-user-accounts)
+ (packages %base-packages)
+
+ (services (cons
+ (service opensmtpd-service-type
+ (opensmtpd-configuration
+ (config-file %default-opensmtpd-config-file
+ ; (config-file (local-file "./my-smtpd.conf")))
+ )))
+ %base-services)))