def new_connection(self, remote_ip, remote_port):
self.state.set_state('<STR_LIT>')<EOL>self._message = Message(Peer(remote_ip, remote_port))<EOL>decision, response_sent = self.is_allowed('<STR_LIT>',<EOL>self._message.peer)<EOL>if decision:<EOL><INDENT>if not response_sent:<EOL><INDENT>self.handle_input('<STR_LIT>')<EOL><DEDENT>self._set_size_restrictions()<EOL><DEDENT>else:<EOL><INDENT>if not response_sent:<EOL><INDENT>self.reply(<NUM_LIT>, '<STR_LIT>')<EOL><DEDENT>self.close_connection()<EOL><DEDENT>
This method is called when a new SMTP session is opened.
        [PUBLIC API]