initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

26
opendkim/opendkim.install Normal file
View File

@@ -0,0 +1,26 @@
post_upgrade() {
if ! getent passwd opendkim &>/dev/null; then
useradd -r -g mail -G adm -d / -s /bin/nologin opendkim >/dev/null
fi
if ! groups opendkim | grep adm &>/dev/null; then
gpasswd -a opendkim adm >/dev/null
fi
opendkim_shell=$(getent passwd opendkim | cut -d: -f7)
if [ "$opendkim_shell" != '/bin/nologin' ]; then
chsh -s /bin/nologin opendkim &>/dev/null
fi
}
post_install() {
post_upgrade
chown -R opendkim:mail etc/opendkim
cat <<EOF
>>> Check and modify /etc/opendkim/opendkim.conf before starting
EOF
}
post_remove() {
if getent passwd opendkim &>/dev/null; then
userdel opendkim >/dev/null
fi
}