Pārlūkot izejas kodu

Add spamassassin start and enable at boot.

There appears to be an issue when using Debian 11 where spamassassin won't register to start at boot, and even in a post-install rebooted state, will not be running.  Perhaps I am incorrect, but I think this is a useful addition that makes sure this is all set up to operate as you intended.  I am not much of a systemd guy, but I think this is the correct way to do this.  It appears to work on a server I used this script on.  Please reject if superfluous or unnecessary.

Thanks for your work automating the "really fun" part of all this!
pull/228/head
Lysergic Facet pirms 2 gadiem
committed by GitHub
vecāks
revīzija
5994bf0cc3
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      emailwiz.sh

+ 4
- 0
emailwiz.sh Parādīt failu

@@ -309,6 +309,10 @@ for x in spamassassin opendkim dovecot postfix; do
service "$x" restart && printf " ...done\\n"
done

# Start the SpamAssassin process, and ensure SpamAssassin starts on boot.
/etc/init.d/spamassassin start
systemctl enable spamassassin.service

# If ufw is used, enable the mail ports.
pgrep ufw >/dev/null && { ufw allow 993; ufw allow 465 ; ufw allow 587; ufw allow 25 ;}



Notiek ielāde…
Atcelt
Saglabāt