File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/postfix.cpython-310.pyc
Back
o ;j�@ � @ s� d Z ddlZddlZddlZddlZddlZe�d�Ze� e �ZdZdZ dd� Ze fdd �Ze fd d�Zdddd ddde fdd�Zdd� Zefdd�Zefdd�Zefdd�Zefdd�Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� ZdS )'a� Support for Postfix This module is currently little more than a config file viewer and editor. It is able to read the master.cf file (which is one style) and files in the style of main.cf (which is a different style, that is used in multiple postfix configuration files). The design of this module is such that when files are edited, a minimum of changes are made to them. Each file should look as if it has been edited by hand; order, comments and whitespace are all preserved. � Nz^\sz/etc/postfix/main.cfz/etc/postfix/master.cfc C s t jj�d�r dS dS )z6 Only load the module if Postfix is installed ZpostfixT)Fz;postfix execution module not loaded: postfix not installed.)�salt�utils�path�which� r r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/postfix.py�__virtual__ s r c C s� t jj�| d��}t jj�|�� �}W d � n1 sw Y g }i }|�� D ]M}|�� r6|�� � d�r<|� |� q)|�� �� }|d |d |d |d |d |d |d d�|dd� �d �}|d � d|d � �}|� |� |||<