%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/postfix.cpython-312.pyc

�

i��d���l�ddlmZmZmZmZddlZGd�de�ZGd�dee�ZGd�deee�Zy)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginNc�.�eZdZdZdZdZdZd�Zd�Zd�Z	y)	�PostfixzPostfix smtp server�postfix)�mail�services�r	c�r�gd�}g}	t|jd�d�5}|j�D]`}|jd�r�|j	d�}|dj�|vs�<|j
|dj	�d��b	ddd�|S#1swY|SxYw#|ccYSxYw)N)�lmtp_tls_dkey_file�lmtp_tls_eckey_file�lmtp_tls_key_file�smtp_tls_dkey_file�smtp_tls_eckey_file�smtp_tls_key_file�smtpd_tls_dkey_file�smtpd_tls_eckey_file�smtpd_tls_key_file�"tls_legacy_public_key_fingerprints�tlsproxy_tls_dkey_file�tlsproxy_tls_eckey_file�tlsproxy_tls_key_file�smtpd_tls_dh1024_param_file�smtpd_tls_dh512_param_file�tlsproxy_tls_dh1024_param_file�tlsproxy_tls_dh512_param_file�/etc/postfix/main.cf�r�#�=r�)�open�	path_join�	readlines�
startswith�split�strip�append)�self�forbid_attributes�fp�cffile�line�wordss      �</usr/lib/python3/dist-packages/sos/report/plugins/postfix.py�forbidden_ssl_keys_filesz Postfix.forbidden_ssl_keys_filess���
��&��
	��d�n�n�%;�<�c�B�
7�f�"�,�,�.�7�D����s�+� � �J�J�s�O�E��Q�x�~�~�'�+<�<��	�	�%��(�.�.�"2�1�"5�6�
7�
7��I�
7��I��2�I�s/�B/�AB"�0'B"�B/�"B,�'B/�,B/�/B6c��d}g}d}tjd�}	t|jd�d�5}|j	�D]�}tj
dd|�}|j
|�}|��.|jd�j�}||vs�R|jd	�j�}	t|	�d
k(r��|	j|�r|	t|�d}	|j|	���	ddd�|S#1swY|SxYw#t$r.}
d|
jd
��}|j|�Yd}
~
|Sd}
~
wwxYw)N)�lmtp_sasl_password_maps�smtp_sasl_password_maps�postscreen_dnsbl_reply_map�smtp_sasl_auth_cache_namezhash:z
^(.*)=(.*)rr z#.*�r#�rzError parsing main.cf: )�re�compiler$r%r&�sub�match�groupr)�lenr'r*�	Exception�args�
_log_error)r+r,r-�prefix�
option_formatr.r/�option�	attribute�filepath�e�msgs            r1�forbidden_password_filesz Postfix.forbidden_password_files9sH��
�������
�
�=�1�
�	!��d�n�n�%;�<�c�B�
,�f�"�,�,�.�,�D��6�6�%��T�2�D�*�0�0��6�F��~� �!'���Q�� 5� 5� 7�I� �$5�5�#)�<�<��?�#8�#8�#:���x�=�A�-�$�#�.�.�v�6�'/��F���'=�H��	�	�(�+�#,�
,�.�	�/
,�.�	��	�	!�+�A�F�F�1�I�;�7�C��O�O�C� � ��	��		!�s<�D�A"D�A D�<D�D�D�D�	E
�#E�E
c���|jdg�|jddg�|jgd��|j|j��|j|j	��y)Nz
/etc/postfix/�postconf�mailq)z/etc/postfix/*.keyz/etc/postfix/*.crtz/etc/postfix/ssl/)�
add_copy_spec�add_cmd_output�add_forbidden_pathr2rJ)r+s r1�setupz
Postfix.setup]sx������
�	�	
�����
�	�
	
���!
�	�
	
���� =� =� ?�@����� =� =� ?�@�N)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr2rJrQ�rRr1rrs(��&�J��K�#�H��H�!�F"�HArRrc�&��eZdZdZdZ�fd�Z�xZS)�
RedHatPostfix)z/etc/rc.d/init.d/postfixrc�L��tt|��|jd�y)Nz	/etc/mail)�superr\rQrN�r+�	__class__s �r1rQzRedHatPostfix.setupts���
�m�T�(�*����;�'rR)rSrTrU�filesrYrQ�
__classcell__�r`s@r1r\r\os���)�E��H�(�(rRr\c�"��eZdZdZ�fd�Z�xZS)�
DebianPostfixrc�*��tt|��y)N)r^rerQr_s �r1rQzDebianPostfix.setup}s���
�m�T�(�*rR)rSrTrUrYrQrbrcs@r1rereys����H�+�+rRre)	�sos.report.pluginsrrrrr:rr\rerZrRr1�<module>rhs@��P�O�	�^A�f�^A�B(�G�\�(�+�G�\�<�+rR

Zerion Mini Shell 1.0