[tor-commits] [bridgedb/develop] Allow SMTP 'RCPT TO: bridges at bridgedb'.

isis at torproject.org isis at torproject.org
Tue Jul 8 13:05:02 UTC 2014


commit 7b14664ed9b2c7fd031c930495362838fe0f95b5
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat Jun 7 02:19:28 2014 +0000

    Allow SMTP 'RCPT TO: bridges at bridgedb'.
---
 lib/bridgedb/email/server.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/email/server.py b/lib/bridgedb/email/server.py
index f57b957..7c86395 100644
--- a/lib/bridgedb/email/server.py
+++ b/lib/bridgedb/email/server.py
@@ -316,7 +316,8 @@ class SMTPIncomingDelivery(smtp.SMTP):
         recipient = user.dest
         ourAddress = smtp.Address(self.context.smtpFromAddr)
 
-        if not (ourAddress.domain in recipient.domain):
+        if not ((ourAddress.domain in recipient.domain) or
+                (recipient.domain == "bridgedb")):
             logging.debug(("Not our domain (%s) or subdomain, skipping"
                            " SMTP 'RCPT TO' address: %s")
                           % (ourAddress.domain, str(recipient)))





More information about the tor-commits mailing list