config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/smtpd.pyc

hRc@sdZddkZddkZddkZddkZddkZddkZddkZddkZddddgZ	ei
dZdZd	dd
YZ
e
adZdZd
ZddZdeifdYZdeifdYZdefdYZdefdYZdefdYZdd dYZdZedjoeZeioyddkZWn-e j
o!ei!dIJei"dnXei#ddZ$yeie$Wq)e%j
o=Z&e&iei'jonei!dIJei"dq)Xnei(Z(de(joCe(i)dZ*e+e(e* e,e-dgZ.e(e*dZ(n
ddk/Z.e0e.e(Z1e1ei2ei3fei4ei5fZ6yei7Wqe8j
oqXndS(!scAn RFC 2821 smtp proxy.

Usage: %(program)s [options] [localhost:localport [remotehost:remoteport]]

Options:

    --nosetuid
    -n
        This program generally tries to setuid `nobody', unless this flag is
        set.  The setuid call will fail if this program is not run as root (in
        which case, use this flag).

    --version
    -V
        Print the version number and exit.

    --class classname
    -c classname
        Use `classname' as the concrete SMTP proxy class.  Uses `PureProxy' by
        default.

    --debug
    -d
        Turn on debugging prints.

    --help
    -h
        Print this message and exit.

Version: %(__version__)s

If localhost is not given then `localhost' is used, and if localport is not
given then 8025 is used.  If remotehost is not given then `localhost' is used,
and if remoteport is not given, then 25 is used.
iNt
SMTPServertDebuggingServert	PureProxytMailmanProxyisPython SMTP proxy version 0.2tDevnullcBseZdZdZRS(cCsdS(N((tselftmsg((s!/usr/local/lib/python2.5/smtpd.pytwriteYscCsdS(N((R((s!/usr/local/lib/python2.5/smtpd.pytflushZs(t__name__t
__module__RR(((s!/usr/local/lib/python2.5/smtpd.pyRXs	s
ts, cCs=tittIJ|oti|IJnti|dS(N(tsyststderrt__doc__tglobalstexit(tcodeR((s!/usr/local/lib/python2.5/smtpd.pytusagedstSMTPChannelcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZRS(iicCstii||||_||_||_g|_|i|_d|_	d|_g|_d|_
ti|_|i|_tdIt|iIJ|id|itf|iddS(NiRsPeer:s	220 %s %ss
(tasynchatt
async_chatt__init__t_SMTPChannel__servert_SMTPChannel__connt_SMTPChannel__addrt_SMTPChannel__linetCOMMANDt_SMTPChannel__statet_SMTPChannel__greetingtNonet_SMTPChannel__mailfromt_SMTPChannel__rcpttost_SMTPChannel__datatsockettgetfqdnt_SMTPChannel__fqdntgetpeernamet_SMTPChannel__peertDEBUGSTREAMtreprtpusht__version__tset_terminator(Rtservertconntaddr((s!/usr/local/lib/python2.5/smtpd.pyRps								cCstii||ddS(Ns
(RRR)(RR((s!/usr/local/lib/python2.5/smtpd.pyR)scCs|ii|dS(N(Rtappend(Rtdata((s!/usr/local/lib/python2.5/smtpd.pytcollect_incoming_datasc	Csti|i}tdIt|IJg|_|i|ijo|p|iddSnd}|i	d}|djo|i
}d}n%|| i
}||di}t|d|d}|p|id|dSn||dSn|i|i
jo|iddSng}xQ|id	D]@}|o&|dd
jo|i|dqB|i|qBWti||_|ii|i|i|i|i}g|_d|_|i|_|id	|p|idn|i|dS(NsData:s500 Error: bad syntaxt iitsmtp_s'502 Error: command "%s" not implementeds451 Internal confusions
t.s250 Ok(tEMPTYSTRINGtjoinRR'R(RRR)RtfindtuppertstriptgetattrtDATAtsplitR/tNEWLINER!Rtprocess_messageR&RR R+(	RtlinetmethodtitcommandtargR0ttexttstatus((s!/usr/local/lib/python2.5/smtpd.pytfound_terminatorsR	




		
cCsX|p|iddSn|io|idn||_|id|idS(Ns501 Syntax: HELO hostnames503 Duplicate HELO/EHLOs250 %s(R)RR$(RRC((s!/usr/local/lib/python2.5/smtpd.pyt	smtp_HELOs

	cCs)|o|idn|iddS(Ns501 Syntax: NOOPs250 Ok(R)(RRC((s!/usr/local/lib/python2.5/smtpd.pyt	smtp_NOOPscCs|id|idS(Ns221 Bye(R)tclose_when_done(RRC((s!/usr/local/lib/python2.5/smtpd.pyt	smtp_QUITs
cCsd}t|}|| i|jo_||i}|pq|ddjo/|ddjo|djo|dd!}qn|S(Nit<it>s<>i(RtlenR8R9(RtkeywordRCtaddresstkeylen((s!/usr/local/lib/python2.5/smtpd.pyt	__getaddrs/cCstdI|IJ|o|id|nd}|p|iddSn|io|iddSn||_tdI|iIJ|iddS(Ns	===> MAILsFROM:s501 Syntax: MAIL FROM:<address>s503 Error: nested MAIL commandssender:s250 Ok(R't_SMTPChannel__getaddrRR)R(RRCRO((s!/usr/local/lib/python2.5/smtpd.pyt	smtp_MAILs 


	cCstdI|IJ|ip|iddSn|o|id|nd}|p|iddSn|ii|tdI|iIJ|iddS(Ns	===> RCPTs503 Error: need MAIL commandsTO:s501 Syntax: RCPT TO: <address>srecips:s250 Ok(R'RR)RRRR R/(RRCRO((s!/usr/local/lib/python2.5/smtpd.pyt	smtp_RCPTs

 
cCsT|o|iddSnd|_g|_d|_|i|_|iddS(Ns501 Syntax: RSETRs250 Ok(R)RRR R!RR(RRC((s!/usr/local/lib/python2.5/smtpd.pyt	smtp_RSETs
			cCse|ip|iddSn|o|iddSn|i|_|id|iddS(Ns503 Error: need RCPT commands501 Syntax: DATAs
.
s#354 End data with <CR><LF>.<CR><LF>(R R)R;RR+(RRC((s!/usr/local/lib/python2.5/smtpd.pyt	smtp_DATAs



(R	R
RR;RR)R1RFRGRHRJRRRSRTRURV(((s!/usr/local/lib/python2.5/smtpd.pyRls				1	
			
	
	
	cBs#eZdZdZdZRS(cCs||_||_tii||ititi|i	|i
||idtd|i
ititi||fIJdS(Nis0%s started at %s
	Local addr: %s
	Remote addr:%s(t
_localaddrt_remoteaddrtasyncoret
dispatcherRt
create_socketR"tAF_INETtSOCK_STREAMtset_reuse_addrtbindtlistenR't	__class__R	ttimetctime(Rt	localaddrt
remoteaddr((s!/usr/local/lib/python2.5/smtpd.pyRs		


cCs<|i\}}tdt|IJt|||}dS(NsIncoming connection from %s(tacceptR'R(R(RR-R.tchannel((s!/usr/local/lib/python2.5/smtpd.pyt
handle_acceptscCs
tdS(sIOverride this abstract method to handle messages from the client.

        peer is a tuple containing (ipaddr, port) of the client that made the
        socket connection to our smtp port.

        mailfrom is the raw address the client claims the message is coming
        from.

        rcpttos is a list of raw addresses the client wishes to deliver the
        message to.

        data is a string containing the entire full text of the message,
        headers (if supplied) and all.  It has been `de-transparencied'
        according to RFC 821, Section 4.5.2.  In other words, a line
        containing a `.' followed by other text has had the leading dot
        removed.

        This function should return None, for a normal `250 Ok' response;
        otherwise it returns the desired response string in RFC 821 format.

        N(tNotImplementedError(RtpeertmailfromtrcpttosR0((s!/usr/local/lib/python2.5/smtpd.pyR>%s(R	R
RRhR>(((s!/usr/local/lib/python2.5/smtpd.pyRs		cBseZdZRS(cCs_d}|id}dGHx9|D]1}|o|odG|dGHd}n|GHq!WdGHdS(Nis
s%---------- MESSAGE FOLLOWS ----------sX-Peer:is%------------ END MESSAGE ------------(R<(RRjRkRlR0t	inheaderstlinesR?((s!/usr/local/lib/python2.5/smtpd.pyR>As

	(R	R
R>(((s!/usr/local/lib/python2.5/smtpd.pyR?scBseZdZdZRS(c	Cs|id}d}x$|D]}|pPn|d7}qW|i|d|dti|}|i|||}tdI|IJdS(Ns
iis
X-Peer: %sswe got some refusals:(R<tinsertR=R6t_deliverR'(	RRjRkRlR0RnRAR?trefused((s!/usr/local/lib/python2.5/smtpd.pyR>PscCsddk}h}yU|i}|i|id|idz|i|||}Wd|iXWn|ij
o}tdIJ|i}nzt	i
|ifj
oa}tdI|iIJt
|dd}t
|dd}	x#|D]}
||	f||
<qWnX|S(	Niiisgot SMTPRecipientsRefusedtgott	smtp_codet
smtp_errortignore(tsmtplibtSMTPtconnectRXtsendmailtquittSMTPRecipientsRefusedR't
recipientsR"terrort
SMTPExceptionRaR:(RRkRlR0RvRqtsteterrcodeterrmsgtr((s!/usr/local/lib/python2.5/smtpd.pyRp^s&

(R	R
R>Rp(((s!/usr/local/lib/python2.5/smtpd.pyROs	cBseZdZRS(c
Cs!ddkl}ddkl}ddkl}ddkl}g}	x|D]}
|
iidd}|id}t|d	joqMn|d}
t|d	jo|d
}nd}|i	|
p
|d!joqMn|	i
|
|
|fqMWx$|	D]\}
}
}|i|
qWtdIdi
|IJ|o)|i|||}tdI|IJnh}||}|i|}|idp||d<n|idptiti|d<nx9|	D]1\}
}
}tdI|
IJ|i|
}|p#|i|
dd}|||
<n|djo|i|dd
q|djo|i|dd
q|d
jo|i|dd
q|djo|i|dd
q|d"jo<|djod|d<nd |d<|i|dd
qqWdS(#Ni(tStringIO(tUtils(tMessage(tMailListt@it-iiRtadmintownertrequestR6tleavesforwarding recips:R2swe got refusals:tfromtFromtdatetDatessending message totlockttolistttoadminttoownert	torequestt	subscribetSubjecttunsubscribe(RRRRsjoinR(sjoinR(t	cStringIORtMailmanRRRtlowerR<RMtlist_existsR/tremoveR'R6Rpt	getheaderRbRctgettEnqueue(RRjRkRlR0RRRRt	listnamestrcpttlocaltpartstlistnameRBRqtmlistsRRtmlist((s!/usr/local/lib/python2.5/smtpd.pyR>ysj








(R	R
R>(((s!/usr/local/lib/python2.5/smtpd.pyRxstOptionscBseZdZdZRS(iR(R	R
tsetuidt	classname(((s!/usr/local/lib/python2.5/smtpd.pyRsc	Csy5titidddddddg\}}Wn%tij
o}td|nXt}x|D]\}}|djotd
qm|djotitIJtid
qm|djo
d
|_	qm|d jo
||_
qm|d!jo
tiaqmqmWt|djod}d}nmt|djo|d
}d}nFt|djo|d
}|d}ntddt
i||id}|d
jotdd|n|| |_yt||d|_Wn$tj
otdd|nX|id}|d
jotdd|n|| |_yt||d|_Wn$tj
otdd|nX|S("NisnVhc:dsclass=tnosetuidtversionthelptdebugs-hs--helpis-Vs	--versions-ns
--nosetuids-cs--classs-ds--debugslocalhost:8025slocalhost:25iisInvalid arguments: %st:sBad local spec: %ssBad local port: %ssBad remote spec: %ssBad remote port: %s(s-hs--help(s-Vs	--version(s-ns
--nosetuid(s-cs--class(s-ds--debug(tgetoptRtargvR}RRR
R*RRRR'RMt
COMMASPACER6R7t	localhosttintt	localportt
ValueErrort
remotehostt
remoteport(	toptstargsRtoptionstoptRCt	localspect
remotespecRA((s!/usr/local/lib/python2.5/smtpd.pyt	parseargss^
"	















t__main__s7Cannot import module "pwd"; try running with -n option.itnobodyis3Cannot setuid "nobody"; try running with -n option.R4(((9RRtosterrnoRRbR"RYRt__all__RtprogramR*RR'R=R5RRRRRZRRRRRRR	RRtpwdtImportErrorR
RtgetpwnamRtOSErrorRtEPERMRtrfindtlastdott
__import__RtlocalstmodRR:tclass_RRRRtproxytlooptKeyboardInterrupt(((s!/usr/local/lib/python2.5/smtpd.pys<module>$sn%
	/)O	9
	
	
"

Man Man