[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 7b14664ed9b2c7fd031c930495362838fe0f95b5
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sat Jun 7 02:19:28 2014 +0000

    Allow SMTP 'RCPT TO: bridges@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)))



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits