def accept_helo(self, helo_string, message): decision = PolicyDecision(True) decision._close_connection_before_response = True decision._close_connection_after_response = True return decision
def accept_helo(self, helo_string, message): return PolicyDecision(False, (553, 'I am tired'))
def accept_helo(self, helo_string, message): decision = PolicyDecision(False, (552, 'Stupid Spammer')) decision._close_connection_after_response = True return decision
def accept_helo(self, helo_string, message): is_localhost = (helo_string == 'localhost') return PolicyDecision(decision=is_localhost)