Skip to content
Permalink
Browse files

bug fix: SpamAssassin

  • Loading branch information...
usmannasir committed Aug 31, 2019
1 parent 1ef69f9 commit bc2a05b5f5a58dc57cf4146d1802df1b12e01110
Showing with 6 additions and 6 deletions.
  1. +6 −6 plogical/mailUtilities.py
@@ -499,21 +499,21 @@ def configureSpamAssassin():


command = "groupadd spamd"
subprocess.call(shlex.split(command))
ProcessUtilities.normalExecutioner(command)

command = "useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd"
subprocess.call(shlex.split(command))
ProcessUtilities.normalExecutioner(command)

##

command = "chown spamd:spamd /var/log/spamassassin"
subprocess.call(shlex.split(command))
ProcessUtilities.normalExecutioner(command)

command = "systemctl enable spamassassin"
subprocess.call(shlex.split(command))
ProcessUtilities.normalExecutioner(command)

command = "systemctl start spamassassin"
subprocess.call(shlex.split(command))
ProcessUtilities.normalExecutioner(command)

## Configuration to postfix

@@ -534,7 +534,7 @@ def configureSpamAssassin():
writeToFile.close()

command = 'systemctl restart postfix'
subprocess.call(shlex.split(command))
ProcessUtilities.normalExecutioner(command)


print "1,None"

0 comments on commit bc2a05b

Please sign in to comment.
You can’t perform that action at this time.