From 252d3fd72c61bde40872ef12138346571ed88b57 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 27 May 2023 10:58:45 -0500 Subject: Basic mail/opensmtpd service added --- services/opensmtpd.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 services/opensmtpd.scm 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))) -- cgit v1.2.3