Postconf - command postconf
¶
PostconfBuiltin - command postconf -C builtin
¶
-
class
insights.parsers.postconf.
Postconf
(context, extra_bad_lines=None)[source]¶ Bases:
insights.parsers.postconf._Postconf
Class for parsing the
postconf
command. Sample input:smtpd_tls_loglevel = 0 smtpd_tls_mandatory_ciphers = medium smtpd_tls_mandatory_exclude_ciphers = smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1
Examples
>>> type(postconf) <class 'insights.parsers.postconf.Postconf'> >>> postconf['smtpd_tls_loglevel'] == '0' True >>> postconf['smtpd_tls_mandatory_ciphers'] == 'medium' True >>> postconf['smtpd_tls_mandatory_exclude_ciphers'] == '' True >>> postconf['smtpd_tls_mandatory_protocols'] == '!SSLv2, !SSLv3, !TLSv1' True
-
class
insights.parsers.postconf.
PostconfBuiltin
(context, extra_bad_lines=None)[source]¶ Bases:
insights.parsers.postconf._Postconf
Class for parsing the
postconf -C builtin
command. Sample input:smtpd_tls_loglevel = 0 smtpd_tls_mandatory_ciphers = medium smtpd_tls_mandatory_exclude_ciphers = smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1
Examples
>>> type(postconfb) <class 'insights.parsers.postconf.PostconfBuiltin'> >>> postconfb['smtpd_tls_loglevel'] == '0' True >>> postconfb['smtpd_tls_mandatory_ciphers'] == 'medium' True >>> postconfb['smtpd_tls_mandatory_exclude_ciphers'] == '' True >>> postconfb['smtpd_tls_mandatory_protocols'] == '!SSLv2, !SSLv3, !TLSv1' True