\section{milter Namespace Reference}
\label{namespacemilter}\index{milter@{milter}}


A thin wrapper around libmilter.  


\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class {\bf error}
\item 
class {\bf milter\+Context}
\begin{DoxyCompactList}\small\item\em Hold context for a milter connection. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
def {\bf set\+\_\+flags} (flags)
\begin{DoxyCompactList}\small\item\em Enable optional milter actions. \end{DoxyCompactList}\item 
def {\bfseries set\+\_\+connect\+\_\+callback} (cb)\label{namespacemilter_a718661a3a66a80bbd81ecdc6558aa6f9}

\item 
def {\bfseries set\+\_\+helo\+\_\+callback} (cb)\label{namespacemilter_a89ea5090ec85d7b2b61b555680533b03}

\item 
def {\bfseries set\+\_\+envfrom\+\_\+callback} (cb)\label{namespacemilter_ae072291fc2acb0975dea551df7ff3a9b}

\item 
def {\bfseries set\+\_\+envrcpt\+\_\+callback} (cb)\label{namespacemilter_a8cfd7045b7e928e9f627506d9fd6fd66}

\item 
def {\bfseries set\+\_\+header\+\_\+callback} (cb)\label{namespacemilter_a2d90d9e897a4b85aefb7af321ddc33ae}

\item 
def {\bfseries set\+\_\+eoh\+\_\+callback} (cb)\label{namespacemilter_afdd3580853559c6e5300ba8d4247dcfc}

\item 
def {\bfseries set\+\_\+body\+\_\+callback} (cb)\label{namespacemilter_a4aea12633c4a40dba28814f6e8fa2737}

\item 
def {\bfseries set\+\_\+abort\+\_\+callback} (cb)\label{namespacemilter_a3c6256d8034903ccfa6dc6445231a855}

\item 
def {\bfseries set\+\_\+close\+\_\+callback} (cb)\label{namespacemilter_a139e902748678df095210028d6082d80}

\item 
def {\bf set\+\_\+exception\+\_\+policy} (code)
\begin{DoxyCompactList}\small\item\em Sets the return code for untrapped Python exceptions during a callback. \end{DoxyCompactList}\item 
def {\bf register}
\begin{DoxyCompactList}\small\item\em Register python milter with libmilter. \end{DoxyCompactList}\item 
def {\bf opensocket} (rmsock)
\begin{DoxyCompactList}\small\item\em Attempt to create the socket used to communicate with the M\+T\+A. \end{DoxyCompactList}\item 
def {\bf main} ()
\begin{DoxyCompactList}\small\item\em Transfer control to libmilter. \end{DoxyCompactList}\item 
def {\bf setdbg} (lev)
\begin{DoxyCompactList}\small\item\em Set the libmilter debugging level. \end{DoxyCompactList}\item 
def {\bf settimeout} (secs)
\begin{DoxyCompactList}\small\item\em Set timeout for M\+T\+A communication. \end{DoxyCompactList}\item 
def {\bf setbacklog} (n)
\begin{DoxyCompactList}\small\item\em Set socket backlog. \end{DoxyCompactList}\item 
def {\bf setconn} (s)
\begin{DoxyCompactList}\small\item\em Set the socket used to communicate with the M\+T\+A. \end{DoxyCompactList}\item 
def {\bf stop} ()
\begin{DoxyCompactList}\small\item\em Stop the milter gracefully. \end{DoxyCompactList}\item 
def {\bf getdiag} ()
\begin{DoxyCompactList}\small\item\em Retrieve diagnostic info. \end{DoxyCompactList}\item 
def {\bf getversion} ()
\begin{DoxyCompactList}\small\item\em Retrieve the runtime libmilter version. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
int {\bf C\+O\+N\+T\+I\+N\+U\+E} = 0
\begin{DoxyCompactList}\small\item\em Continue processing the current connection, message, or recipient. \end{DoxyCompactList}\item 
int {\bf R\+E\+J\+E\+C\+T} = 1
\begin{DoxyCompactList}\small\item\em For a connection-\/oriented routine, reject this connection; call \doxyref{Milter.\+Base.\+close()}{p.}{classMilter_1_1Base_a2644dc855f49da0a9810e8d390c93906}. \end{DoxyCompactList}\item 
int {\bf D\+I\+S\+C\+A\+R\+D} = 2
\begin{DoxyCompactList}\small\item\em For a message-\/ or recipient-\/oriented routine, accept this message, but silently discard it. \end{DoxyCompactList}\item 
int {\bf A\+C\+C\+E\+P\+T} = 3
\begin{DoxyCompactList}\small\item\em For a connection-\/oriented routine, accept this connection without further filter processing; call \doxyref{Milter.\+Base.\+close()}{p.}{classMilter_1_1Base_a2644dc855f49da0a9810e8d390c93906}. \end{DoxyCompactList}\item 
int {\bf T\+E\+M\+P\+F\+A\+I\+L} = 4
\begin{DoxyCompactList}\small\item\em Return a temporary failure, i.\+e., the corresponding S\+M\+T\+P command will return an appropriate 4xx status code. \end{DoxyCompactList}\item 
int {\bf S\+K\+I\+P} = 5
\begin{DoxyCompactList}\small\item\em Skip further callbacks of the same type in this transaction. \end{DoxyCompactList}\item 
int {\bf N\+O\+R\+E\+P\+L\+Y} = 6
\begin{DoxyCompactList}\small\item\em Do not send a reply back to the M\+T\+A. \end{DoxyCompactList}\item 
int {\bf V\+E\+R\+S\+I\+O\+N} = 0x1000001
\begin{DoxyCompactList}\small\item\em The compile time libmilter version. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A thin wrapper around libmilter. 

Most users will not import milter directly, but will instead import \doxyref{Milter}{p.}{namespaceMilter} and subclass \doxyref{Milter.\+Base}{p.}{classMilter_1_1Base}. This module gives you ultimate low level control from python. 

\subsection{Function Documentation}
\index{milter@{milter}!getdiag@{getdiag}}
\index{getdiag@{getdiag}!milter@{milter}}
\subsubsection[{getdiag}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+getdiag (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{namespacemilter_a03013ef1adc45729ac2ebeccc1afd47d}


Retrieve diagnostic info. 

Return a tuple with diagnostic info gathered by the milter module. The first two fields are counts of \doxyref{milter\+Context}{p.}{classmilter_1_1milterContext} objects created and deleted. Additional fields may be added later. \begin{DoxyReturn}{Returns}
a tuple of diagnostic data 
\end{DoxyReturn}
\index{milter@{milter}!getversion@{getversion}}
\index{getversion@{getversion}!milter@{milter}}
\subsubsection[{getversion}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+getversion (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{namespacemilter_a87fde36f3baa77e209fbed7ca2c89796}


Retrieve the runtime libmilter version. 

Return the runtime libmilter version. This can be different from the compile time version when sendmail or libmilter is upgraded after pymilter is compiled. \begin{DoxyReturn}{Returns}
a tuple of {\ttfamily (major,minor,patchlevel)} 
\end{DoxyReturn}


Referenced by Milter.\+runmilter().

\index{milter@{milter}!main@{main}}
\index{main@{main}!milter@{milter}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+main (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{namespacemilter_a505352a1ee405fa0bc08c97ed094fb21}


Transfer control to libmilter. 

Calls {\tt smfi\+\_\+main}. 

Referenced by Milter.\+runmilter().

\index{milter@{milter}!opensocket@{opensocket}}
\index{opensocket@{opensocket}!milter@{milter}}
\subsubsection[{opensocket}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+opensocket (
\begin{DoxyParamCaption}
\item[{}]{rmsock}
\end{DoxyParamCaption}
)}\label{namespacemilter_a25c4b69c2520b1935a816734041db77d}


Attempt to create the socket used to communicate with the M\+T\+A. 

\doxyref{milter.\+opensocket()}{p.}{namespacemilter_a25c4b69c2520b1935a816734041db77d} attempts to create the socket specified previously by a call to \doxyref{milter.\+setconn()}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb} which will be the interface between M\+T\+As and the milter. This allows the calling application to ensure that the socket can be created. If this is not called, \doxyref{milter.\+main()}{p.}{namespacemilter_a505352a1ee405fa0bc08c97ed094fb21} will do so implicitly. Calls {\tt smfi\+\_\+opensocket}. While not documented for libmilter, my experiments indicate that you must call \doxyref{register()}{p.}{namespacemilter_aa940d270cd3e1d7072be6f41d29936df} before calling \doxyref{opensocket()}{p.}{namespacemilter_a25c4b69c2520b1935a816734041db77d}. 
\begin{DoxyParams}{Parameters}
{\em rmsock} & Try to remove an existing unix domain socket if true. \\
\hline
\end{DoxyParams}


Referenced by Milter.\+runmilter().

\index{milter@{milter}!register@{register}}
\index{register@{register}!milter@{milter}}
\subsubsection[{register}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+register (
\begin{DoxyParamCaption}
\item[{}]{name, }
\item[{}]{negotiate = {\ttfamily None}, }
\item[{}]{unknown = {\ttfamily None}, }
\item[{}]{data = {\ttfamily None}}
\end{DoxyParamCaption}
)}\label{namespacemilter_aa940d270cd3e1d7072be6f41d29936df}


Register python milter with libmilter. 

The name we pass is used to identify the milter in the M\+T\+A configuration. Callback functions must be set using the set\+\_\+$\ast$\+\_\+callback() functions before registering the milter. Three additional callbacks are specified as keyword parameters. These were added by recent versions of libmilter. The keyword parameters is a nicer way to do it, I think, since it makes clear that you have to do it before registering. I may move all the callbacks in the future (perhaps keeping the set functions for compatibility). Note that \doxyref{Milter.\+Base}{p.}{classMilter_1_1Base} automatically maps all callbacks to member functions, and negotiates which member functions are actually overridden by an application class. 
\begin{DoxyParams}{Parameters}
{\em name} & the milter name by which the M\+T\+A finds us \\
\hline
{\em negotiate} & the {\tt xxfi\+\_\+negotiate} callback, called to negotiate supported actions, callbacks, and protocol steps. \\
\hline
{\em unknown} & the {\tt xxfi\+\_\+unknown} callback, called when for S\+M\+T\+P commands not recognized by the M\+T\+A. (Extend S\+M\+T\+P in your milter!) \\
\hline
{\em data} & the {\tt xxfi\+\_\+data} callback, called when the D\+A\+T\+A S\+M\+T\+P command is received. \\
\hline
\end{DoxyParams}


Referenced by Milter.\+runmilter().

\index{milter@{milter}!set\+\_\+exception\+\_\+policy@{set\+\_\+exception\+\_\+policy}}
\index{set\+\_\+exception\+\_\+policy@{set\+\_\+exception\+\_\+policy}!milter@{milter}}
\subsubsection[{set\+\_\+exception\+\_\+policy}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+set\+\_\+exception\+\_\+policy (
\begin{DoxyParamCaption}
\item[{}]{code}
\end{DoxyParamCaption}
)}\label{namespacemilter_aa82af42e2b608726a0f7e6d45da5efaa}


Sets the return code for untrapped Python exceptions during a callback. 

The default is T\+E\+M\+P\+F\+A\+I\+L. You should not depend on this handler. Your application should have its own top level exception handler for each callback. You can then choose your own reply message, log the stack track were you please, and so on. However, if you miss one, this last ditch handler will print a standard stack trace to sys.\+stderr, and return to sendmail. 
\begin{DoxyParams}{Parameters}
{\em code} & one of \doxyref{T\+E\+M\+P\+F\+A\+I\+L}{p.}{namespacemilter_a1b4940e90c267a81cba6be20aa782e85},\doxyref{R\+E\+J\+E\+C\+T}{p.}{namespacemilter_a2345250030581a1639ecf905e1668b0a},\doxyref{C\+O\+N\+T\+I\+N\+U\+E}{p.}{namespacemilter_a590b7ab395513af007869ad83e332c14}, or since 1.\+0, \doxyref{A\+C\+C\+E\+P\+T}{p.}{namespacemilter_ae40b8bfbb6828233115c61490998f7f4} \\
\hline
\end{DoxyParams}
\index{milter@{milter}!set\+\_\+flags@{set\+\_\+flags}}
\index{set\+\_\+flags@{set\+\_\+flags}!milter@{milter}}
\subsubsection[{set\+\_\+flags}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+set\+\_\+flags (
\begin{DoxyParamCaption}
\item[{}]{flags}
\end{DoxyParamCaption}
)}\label{namespacemilter_afe0230448acb391b264e8b5c28d45c3c}


Enable optional milter actions. 

Certain milter actions need to be enabled before calling \doxyref{main()}{p.}{namespacemilter_a505352a1ee405fa0bc08c97ed094fb21} or they throw an exception. Pymilter enables them all by default (since 0.\+9.\+2), but you may wish to disable unneeded actions as an optimization. 
\begin{DoxyParams}{Parameters}
{\em flags} & Bit or mask of optional actions to enable \\
\hline
\end{DoxyParams}
\index{milter@{milter}!setbacklog@{setbacklog}}
\index{setbacklog@{setbacklog}!milter@{milter}}
\subsubsection[{setbacklog}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+setbacklog (
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)}\label{namespacemilter_a54ec699d5822b59094c351be70276110}


Set socket backlog. 

Calls {\tt smfi\+\_\+setbacklog}. Must be called before calling \doxyref{main()}{p.}{namespacemilter_a505352a1ee405fa0bc08c97ed094fb21}. \index{milter@{milter}!setconn@{setconn}}
\index{setconn@{setconn}!milter@{milter}}
\subsubsection[{setconn}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+setconn (
\begin{DoxyParamCaption}
\item[{}]{s}
\end{DoxyParamCaption}
)}\label{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb}


Set the socket used to communicate with the M\+T\+A. 

The M\+T\+A can communicate with the milter by means of a unix, inet, or inet6 socket. By default, a unix domain socket is used. It must not exist, and sendmail will throw warnings if, eg, the file is under a group or world writable directory. \doxyref{milter.\+setconn()}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb} will not fail with an invalid socket -\/ this will be detected only when calling \doxyref{milter.\+main()}{p.}{namespacemilter_a505352a1ee405fa0bc08c97ed094fb21} or \doxyref{milter.\+opensocket()}{p.}{namespacemilter_a25c4b69c2520b1935a816734041db77d}. 
\begin{DoxyParams}{Parameters}
{\em s} & the socket address in proto\+:address format 
\begin{DoxyPre}
 \doxyref{milter.setconn}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb}('unix:/var/run/pythonfilter')  \# a named pipe
 \doxyref{milter.setconn}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb}('local:/var/run/pythonfilter') \# a named pipe
 \doxyref{milter.setconn}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb}('inet:8800')                    \# listen on ANY interface
 \doxyref{milter.setconn}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb}('inet:7871@publichost')        \# listen on a specific interface
 \doxyref{milter.setconn}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb}('inet6:8020')
 \doxyref{milter.setconn}{p.}{namespacemilter_a47dedd3e5972a865bcfaa5163eb481cb}('inet6:8020@[2001:db8:1234::1]')      \# listen on specific IP
 \end{DoxyPre}
 \\
\hline
\end{DoxyParams}


Referenced by Milter.\+runmilter().

\index{milter@{milter}!setdbg@{setdbg}}
\index{setdbg@{setdbg}!milter@{milter}}
\subsubsection[{setdbg}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+setdbg (
\begin{DoxyParamCaption}
\item[{}]{lev}
\end{DoxyParamCaption}
)}\label{namespacemilter_a7c4b4f083988abb9c174a152dc0c8fcf}


Set the libmilter debugging level. 

{\tt smfi\+\_\+setdbg} sets the milter library\textquotesingle{}s internal debugging level to a new level so that code details may be traced. A level of zero turns off debugging. The greater (more positive) the level the more detailed the debugging. Six is the current, highest, useful value. Must be called before calling \doxyref{main()}{p.}{namespacemilter_a505352a1ee405fa0bc08c97ed094fb21}. \index{milter@{milter}!settimeout@{settimeout}}
\index{settimeout@{settimeout}!milter@{milter}}
\subsubsection[{settimeout}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+settimeout (
\begin{DoxyParamCaption}
\item[{}]{secs}
\end{DoxyParamCaption}
)}\label{namespacemilter_a560ae93b2946e6405d4e317461db8b4d}


Set timeout for M\+T\+A communication. 

Calls {\tt smfi\+\_\+settimeout}. Must be called before calling \doxyref{main()}{p.}{namespacemilter_a505352a1ee405fa0bc08c97ed094fb21}. 

Referenced by Milter.\+runmilter().

\index{milter@{milter}!stop@{stop}}
\index{stop@{stop}!milter@{milter}}
\subsubsection[{stop}]{\setlength{\rightskip}{0pt plus 5cm}def milter.\+stop (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{namespacemilter_acd4b12aff996916919045f0d9be4d4d8}


Stop the milter gracefully. 



\subsection{Variable Documentation}
\index{milter@{milter}!A\+C\+C\+E\+P\+T@{A\+C\+C\+E\+P\+T}}
\index{A\+C\+C\+E\+P\+T@{A\+C\+C\+E\+P\+T}!milter@{milter}}
\subsubsection[{A\+C\+C\+E\+P\+T}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+A\+C\+C\+E\+P\+T = 3}\label{namespacemilter_ae40b8bfbb6828233115c61490998f7f4}


For a connection-\/oriented routine, accept this connection without further filter processing; call \doxyref{Milter.\+Base.\+close()}{p.}{classMilter_1_1Base_a2644dc855f49da0a9810e8d390c93906}. 

For a message-\/ or recipient-\/oriented routine, accept this message without further filtering. \index{milter@{milter}!C\+O\+N\+T\+I\+N\+U\+E@{C\+O\+N\+T\+I\+N\+U\+E}}
\index{C\+O\+N\+T\+I\+N\+U\+E@{C\+O\+N\+T\+I\+N\+U\+E}!milter@{milter}}
\subsubsection[{C\+O\+N\+T\+I\+N\+U\+E}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+C\+O\+N\+T\+I\+N\+U\+E = 0}\label{namespacemilter_a590b7ab395513af007869ad83e332c14}


Continue processing the current connection, message, or recipient. 

\index{milter@{milter}!D\+I\+S\+C\+A\+R\+D@{D\+I\+S\+C\+A\+R\+D}}
\index{D\+I\+S\+C\+A\+R\+D@{D\+I\+S\+C\+A\+R\+D}!milter@{milter}}
\subsubsection[{D\+I\+S\+C\+A\+R\+D}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+D\+I\+S\+C\+A\+R\+D = 2}\label{namespacemilter_a4c8bad190cb7f54cea87f1182732ce83}


For a message-\/ or recipient-\/oriented routine, accept this message, but silently discard it. 

S\+M\+F\+I\+S\+\_\+\+D\+I\+S\+C\+A\+R\+D should not be returned by a connection-\/oriented routine. \index{milter@{milter}!N\+O\+R\+E\+P\+L\+Y@{N\+O\+R\+E\+P\+L\+Y}}
\index{N\+O\+R\+E\+P\+L\+Y@{N\+O\+R\+E\+P\+L\+Y}!milter@{milter}}
\subsubsection[{N\+O\+R\+E\+P\+L\+Y}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+N\+O\+R\+E\+P\+L\+Y = 6}\label{namespacemilter_a45378e0b42f76927adaf504b6082fc7d}


Do not send a reply back to the M\+T\+A. 

The milter must negotiate this behavior with the M\+T\+A, i.\+e., it must check whether the appropriate protocol action P\+\_\+\+N\+R\+\_\+$\ast$ is available and if so, the milter must request it. If you set the P\+\_\+\+N\+R\+\_\+$\ast$ protocol action for a callback, that callback must always reply with N\+O\+R\+E\+P\+L\+Y. Using any other reply code is a violation of the A\+P\+I. If in some cases your callback may return another value (e.\+g., due to some resource shortages), then you must not set P\+\_\+\+N\+R\+\_\+$\ast$ and you must use C\+O\+N\+T\+I\+N\+U\+E as the default return code. (Alternatively you can try to delay reporting the problem to a later callback for which P\+\_\+\+N\+R\+\_\+$\ast$ is not set.)

This is negotiated and returned automatically by the \doxyref{Milter.\+noreply}{p.}{namespaceMilter_a5bc0cfa03c567347b622acda6f6b6d42} function decorator. \index{milter@{milter}!R\+E\+J\+E\+C\+T@{R\+E\+J\+E\+C\+T}}
\index{R\+E\+J\+E\+C\+T@{R\+E\+J\+E\+C\+T}!milter@{milter}}
\subsubsection[{R\+E\+J\+E\+C\+T}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+R\+E\+J\+E\+C\+T = 1}\label{namespacemilter_a2345250030581a1639ecf905e1668b0a}


For a connection-\/oriented routine, reject this connection; call \doxyref{Milter.\+Base.\+close()}{p.}{classMilter_1_1Base_a2644dc855f49da0a9810e8d390c93906}. 

For a message-\/oriented routine, except \doxyref{Milter.\+Base.\+eom()}{p.}{classMilter_1_1Base_a725f845830639b76f479dc6c0f7f8c00} or \doxyref{Milter.\+Base.\+abort()}{p.}{classMilter_1_1Base_aef01a2465e563ad1435030cfc9b30939}, reject this message. For a recipient-\/oriented routine, reject the current recipient (but continue processing the current message). \index{milter@{milter}!S\+K\+I\+P@{S\+K\+I\+P}}
\index{S\+K\+I\+P@{S\+K\+I\+P}!milter@{milter}}
\subsubsection[{S\+K\+I\+P}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+S\+K\+I\+P = 5}\label{namespacemilter_aa2fa23a83f9bbc204eb14313a6efd4cc}


Skip further callbacks of the same type in this transaction. 

Currently this return value is only allowed in \doxyref{Milter.\+Base.\+body()}{p.}{classMilter_1_1Base_a963e42c7fcf7bb1a967af48c878b00c7}. It can be used if a milter has received sufficiently many body chunks to make a decision, but still wants to invoke message modification functions that are only allowed to be called from \doxyref{Milter.\+Base.\+eom()}{p.}{classMilter_1_1Base_a725f845830639b76f479dc6c0f7f8c00}. Note\+: the milter must negotiate this behavior with the M\+T\+A, i.\+e., it must check whether the protocol action S\+M\+F\+I\+P\+\_\+\+S\+K\+I\+P is available and if so, the milter must request it. \index{milter@{milter}!T\+E\+M\+P\+F\+A\+I\+L@{T\+E\+M\+P\+F\+A\+I\+L}}
\index{T\+E\+M\+P\+F\+A\+I\+L@{T\+E\+M\+P\+F\+A\+I\+L}!milter@{milter}}
\subsubsection[{T\+E\+M\+P\+F\+A\+I\+L}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+T\+E\+M\+P\+F\+A\+I\+L = 4}\label{namespacemilter_a1b4940e90c267a81cba6be20aa782e85}


Return a temporary failure, i.\+e., the corresponding S\+M\+T\+P command will return an appropriate 4xx status code. 

For a message-\/oriented routine, except \doxyref{Milter.\+Base.\+envfrom()}{p.}{classMilter_1_1Base_ac8f026580efbc83c4901693828a362f5}, fail for this message. For a connection-\/oriented routine, fail for this connection; call \doxyref{Milter.\+Base.\+close()}{p.}{classMilter_1_1Base_a2644dc855f49da0a9810e8d390c93906}. For a recipient-\/oriented routine, only fail for the current recipient; continue message processing. \index{milter@{milter}!V\+E\+R\+S\+I\+O\+N@{V\+E\+R\+S\+I\+O\+N}}
\index{V\+E\+R\+S\+I\+O\+N@{V\+E\+R\+S\+I\+O\+N}!milter@{milter}}
\subsubsection[{V\+E\+R\+S\+I\+O\+N}]{\setlength{\rightskip}{0pt plus 5cm}int milter.\+V\+E\+R\+S\+I\+O\+N = 0x1000001}\label{namespacemilter_ab678787ccf06b2417a07e7057f7bace4}


The compile time libmilter version. 

Python code might need to deal with pymilter compiled against various versions of libmilter. This module constant contains the contents of the {\ttfamily S\+M\+F\+I\+\_\+\+V\+E\+R\+S\+I\+O\+N} macro when the milter module was compiled. 