From c4d239f56947cf5ae4c4d260946bf5ff9fe040cf Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Wed, 23 Sep 2015 15:32:22 -0300 Subject: [feat] disable email firewall on docker containers - Related: #7471 --- src/leap/bitmask/services/mail/emailfirewall.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/leap/bitmask/services/mail/emailfirewall.py') diff --git a/src/leap/bitmask/services/mail/emailfirewall.py b/src/leap/bitmask/services/mail/emailfirewall.py index 2cd2ec31..f7b5d7a2 100644 --- a/src/leap/bitmask/services/mail/emailfirewall.py +++ b/src/leap/bitmask/services/mail/emailfirewall.py @@ -34,6 +34,11 @@ def get_email_firewall(): """ Return the email firewall handler for the current platform. """ + # disable email firewall on a docker container so we can access from an + # external MUA + if os.environ.get("LEAP_DOCKERIZED"): + return None + if not (IS_LINUX): error_msg = "Email firewall not implemented for this platform." raise NotImplementedError(error_msg) -- cgit v1.2.3