diff options
-rw-r--r-- | sos/report/plugins/postfix.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sos/report/plugins/postfix.py b/sos/report/plugins/postfix.py index 18fab444..4e404808 100644 --- a/sos/report/plugins/postfix.py +++ b/sos/report/plugins/postfix.py @@ -19,13 +19,18 @@ class Postfix(Plugin): def setup(self): self.add_copy_spec([ - "/etc/postfix/main.cf", - "/etc/postfix/master.cf" + "/etc/postfix/", ]) self.add_cmd_output([ 'postconf', 'mailq' ]) + # don't collect SSL keys or certs or ssl dir + self.add_forbidden_path([ + "/etc/postfix/*.key", + "/etc/postfix/*.crt", + "/etc/postfix/ssl/", + ]) class RedHatPostfix(Postfix, RedHatPlugin): @@ -44,6 +49,5 @@ class DebianPostfix(Postfix, DebianPlugin, UbuntuPlugin): def setup(self): super(DebianPostfix, self).setup() - self.add_copy_spec("/etc/postfix/dynamicmaps.cf") # vim: set et ts=4 sw=4 : |