From 41dc0a908072764cf1a6176e73c5759c73d15195 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 10 Sep 2025 00:31:14 +0200 Subject: [PATCH 1/2] Install opensmtpd --- install_root.sh | 5 +++-- root/etc/smtpd/smtpd.conf | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 root/etc/smtpd/smtpd.conf diff --git a/install_root.sh b/install_root.sh index 0623c62..3c59f61 100755 --- a/install_root.sh +++ b/install_root.sh @@ -25,7 +25,7 @@ pacman -Syu --noconfirm # Install essential packages pacman -S --noconfirm --needed \ networkmanager neovim sudo reflector pacman-contrib man-db man-pages rsync btop \ - bind base-devel git fd ripgrep fwupd arch-audit systemd-resolvconf + bind base-devel git fd ripgrep fwupd arch-audit systemd-resolvconf opensmtpd # Install packages necessary for this script / other scripts in this dotfiles repo pacman -S --noconfirm --needed python-rich bc lua jq bat @@ -33,6 +33,7 @@ pacman -S --noconfirm --needed python-rich bc lua jq bat # Copy over system configuration data cp root/etc/pacman.conf /etc cp root/etc/hosts /etc +cp -r root/etc/smtpd /etc HOSTNAME="$(cat /etc/hostname)" sed -i "s/^127.0.1.1 pc.localdomain pc/127.0.1.1 ${HOSTNAME}.localdomain ${HOSTNAME}/g" /etc/hosts install -m 640 root/etc/sudoers /etc @@ -50,7 +51,7 @@ sudo pacman -Sy systemctl enable \ systemd-resolved.service systemd-timesyncd.service systemd-oomd.service \ paccache.timer pacman-filesdb-refresh.timer reflector.timer \ - NetworkManager.service + NetworkManager.service smtpd.service systemctl mask systemd-networkd.service # We have NetworkManager for this # Install ZSH shell diff --git a/root/etc/smtpd/smtpd.conf b/root/etc/smtpd/smtpd.conf new file mode 100644 index 0000000..4525dd7 --- /dev/null +++ b/root/etc/smtpd/smtpd.conf @@ -0,0 +1,22 @@ +# $OpenBSD: smtpd.conf,v 1.10 2018/05/24 11:40:17 gilles Exp $ + +# This is the smtpd server system-wide configuration file. +# See smtpd.conf(5) for more information. + +table aliases file:/etc/smtpd/aliases + +# To also accept external mail over IPv4 or IPv6, +# respectively replace "listen on localhost" with: +# +# listen on 0.0.0.0 +# listen on :: +listen on localhost + +action "local" mbox alias +#action "relay" relay + +# Uncomment the following to accept external mail for domain "example.org" +# +# match from any for domain "example.org" action "local" +match for local action "local" +#match from local for any action "relay" From c06bee9e2d1aad5b02ebb9a3aa98cfad5cd0fcdf Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 10 Sep 2025 00:31:52 +0200 Subject: [PATCH 2/2] Install openbsd-netcat --- install_user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_user.sh b/install_user.sh index e682270..a009ae6 100755 --- a/install_user.sh +++ b/install_user.sh @@ -54,7 +54,7 @@ paru -S --noconfirm --needed \ dnsutils net-tools wget jq fzf polkit rebuild-detector hyperfine mediainfo git-delta \ python-pip ripgrep zip p7zip unzip usbutils hexyl strace uv yt-dlp luarocks cargo \ cmake meson npm downgrade glow xdg-ninja-git github-cli act lsof procs skim thermald \ - tealdeer pkgfile zoxide + tealdeer pkgfile zoxide openbsd-netcat # Make paru properly track git dependencies paru --gendb