%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/Mailman/MTA/
Upload File :
Create Path :
Current File : //lib/mailman/Mailman/MTA/Postfix.pyc

�
��ac@s�dZddlZddlZddlZddlZddlZddlTddlmZddlm	Z	ddlm
Z
ddlmZddl
mZdd	lmZejjejd
�Zejjejd�Zejjejd�ZyeefWnek
r!d
ZdZnXd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"eeed�Z#d�Z$ed�Z%d�Z&dS(s,Creation/deletion hooks for the Postfix MTA.i����N(t*(tmm_cfg(tUtils(tLockFile(tC_(tmakealiases(tsyslogtcreatortaliasessvirtual-mailmaniicCs�d}tjdt}tj|�d?d@}|rrtj|�}td||||�t||||f�ntjj	t
�r�tjdt
}tj|�d?d@}|r�tj|�}td||||�t||||f�q�ndS(Ns#command failed: %s (status: %s, %s)t ii�terror(RtPOSTFIX_ALIAS_CMDt	ALIASFILEtostsystemtstrerrorRtRuntimeErrortpathtexiststVIRTFILEtPOSTFIX_MAP_CMD(tmsgtacmdtstatusterrstrtvcmd((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt_update_maps.scCs
tjt�S(N(RtLOCKFILE(((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pytmakelock@scCs2tjj|�r.t|d�}|j�ndS(Ntw(R
RRtopentclose(tfilenametfp((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt_zapfileDscCstt�tt�dS(N(R"RR(((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pytclearLs
cCs>tjtjdd��d}tjjtjd�}|jdd�|j	�s�|dIJ|dIJ|d||fIJ|Jn|dkr�dS|j�}t|�td	�}|d
I|IJ|dIt
jt
j
��IJx@t|�D]2\}}||dI|t|�d
|IJq�W|dI|IJ|JdS(Ntextratloopisowner-bounces.mboxis# This file is generated by Mailman, and is kept in sync with the
# binary hash file aliases.db.  YOU SHOULD NOT MANUALLY EDIT THIS FILE
# unless you know what you're doing, and can keep the two files properly
# in sync.  If you screw it up, you're on your own.
s## The ultimate loop stopper addresss%s: %ss-unsubscribes# STANZA START:s
# CREATED:t:R	s
# STANZA END:(Rt
ParseEmailtget_site_emailR
RtjoinRtDATA_DIRtseekttelltNonet
internal_nametlenttimetctimeR(tmlistR!tloopaddrtloopmboxtlistnametfieldsztktv((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt_addlistRs&
*cCsc|j�}t|�td�}|j}tj|jdd�}tj|�d}tjrs|dtj7}n|jdd�|j	�s�|d||fIJn|dI|IJ|d	It
jt
j
��IJxst|�D]e\}}d
||f}	tjrd
|tjf}
n|}
||	I|t|�dI|
IJq�W|dI|IJ|JdS(
Ns-unsubscribeR$R%it@is�# This file is generated by Mailman, and is kept in sync with the binary hash
# file virtual-mailman.db.  YOU SHOULD NOT MANUALLY EDIT THIS FILE unless you
# know what you're doing, and can keep the two files properly in sync.  If you
# screw it up, you're on your own.
#
# Note that you should already have this virtual domain set up properly in
# your Postfix installation.  See README.POSTFIX for details.

# LOOP ADDRESSES START
%s	%s
# LOOP ADDRESSES END
s# STANZA START:s
# CREATED:s%s@%sR	s
# STANZA END:(
R.R/t	host_nameRR(R'RtVIRTUAL_MAILMAN_LOCAL_DOMAINR+R,R0R1R(R2R!R5R6thostnameR3tloopdestR7R8tfqdnaddrt	localaddr((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt_addvirtualws*			(cCs|tj|jdd�}tj|�d}t|�}tjd�}zt|dd�}Wdtj|�Xz�x@tr�|j�}|s�Pn|j	|�|j
d�rtPqtqtWx�tr7|j�}|s�Pn|j
d�r|d	||fIJ|j	|�Pq�|j
|�r'|j	|�Pq�|j	|�q�W|j|j��Wd|j
�|j
�Xtj|d|�dS(
NR$R%iis.tmpRs# LOOP ADDRESSES STARTs# LOOP ADDRESSES ENDs%s	%s(RR(R;R'RR
tumasktTruetreadlinetwritet
startswitht
writelinest	readlinesRtrename(R2R R3R>tinfptomasktoutfptline((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt_check_for_virtual_loopaddr�s>	
	


cCs�yt|d�}Wn^tk
rs}|jtjkr=�ntjd�}zt|d�}Wdtj|�XnXz|||�Wd|j�X|tkr�t||�ndS(Nsr+isw+(	RtIOErrorterrnotENOENTR
RBRRARN(R2ttextfiletfuncR!teRK((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt
_do_create�scCs�d}|s"t�}|j�nzOt|tt�|r`|jtjkr`t|t	t
�n|spt�nWd|r�|jdt
�nXdS(Ntunconditionally(R-RtlockRURR9R;RtPOSTFIX_STYLE_VIRTUAL_DOMAINSRRARtunlockRC(R2tcgitnolocktquietRW((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pytcreate�s	
c
Css|j�}d}yt|�}Wn,tk
rP}|jtjkrL�ndSXz�tjd�}zt|dd�}Wdtj|�Xt}d|}	d|}
d}x�|j	�}|s�Pn|r|j
�|
kr�t}|j	�q?|j|�r?t}|j|�q?q�|j
�|	kr2t
}q�|j|�q�Wd|j�|j�Xtj|d|�dS(Nis.tmpRs# STANZA START: s# STANZA END: (R.R-RRORPRQR
RBtFalseRDtstripRFRERCRRI(
R2RRtvirtualpR5RLRJRTRKt
filteroutptstarttendtoopsRM((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt
_do_remove�sD


	
cCskt�}|j�z@t|tt�|jtjkrKt|tt	�nt
�Wd|jdt	�XdS(NRV(RRWReRR^R;RRXRRCRRY(R2RZRW((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pytremove-s	
cCs�ttBtBtBtB}x�ttfD]�}|jr@td�GHnd}yt
j|�}Wn+tk
r�}|j
t
jkr��q�nX|r�|t|@|kr�|jd7_t|t�}td�G|jr�td�GHt
j||t|B�q�Hn|d}d}yt
j|�}Wn.tk
rP}|j
t
jkr#�q#q#nX|jrhtd�GHntj}|ttj|�dk}|sAytj|t�d}	Wntk
r�d	|t}	nXtd
�G|jd7_|jr=td�GHtj|�d}
tjtj�d}t
j||
|�qAHn|r#|t|@|kr#|jd7_t|t�}td�G|jr�td�GHt
j||t|B�q�Hq#q#WdS(Ns checking permissions on %(file)sis3%(file)s permissions must be 066x (got %(octmode)s)s(fixing)s.dbs checking ownership of %(dbfile)siisuid %ds8%(dbfile)s owned by %(owner)s (must be owned by %(user)ss5%(dbfile)s permissions must be 066x (got %(octmode)s)(tS_IFREGtS_IRUSRtS_IWUSRtS_IRGRPtS_IWGRPRRtVERBOSERR-R
tstattOSErrorRPRQtST_MODEtERRORStocttFIXtchmodRtMAILMAN_USERtST_UIDtpwdtgetpwnamtgetpwuidtKeyErrortgrptgetgrnamt
MAILMAN_GROUPtchown(tstatet
targetmodetfileRmRTtoctmodetdbfiletusertowneroktownertuidtgid((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt
checkperms<sf	

	
		

	
	('t__doc__R
RvRzR0RPRmtMailmanRRRtMailman.i18nRtMailman.MTA.UtilsRtMailman.Logging.SyslogRRR)tLOCK_DIRRt
CONFIG_DIRRRRCR^t	NameErrorRRR"R#R9RARNRUR]ReRfR�(((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/MTA/Postfix.pyt<module>s@


					%	-	+		5

Zerion Mini Shell 1.0