def init_mta(self, policy_class=IMTAPolicy):
self.stop_mta()<EOL>self.deliverer = BlackholeDeliverer<EOL>self.mta = self.build_mta(self.hostname, self.listen_port,<EOL>self.deliverer, policy_class)<EOL>self.mta_thread = MTAThread(self.mta)<EOL>self.mta_thread.start()<EOL>self._try_to_connect_to_mta(self.hostname, self.listen_port)<EOL>
Starts the MTA in a separate thread with a BlackholeDeliver. This
        method also ensures that the MTA is really listening on the specified
        port.