summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2015-09-23 15:32:22 -0300
committerKali Kaneko <kali@leap.se>2015-09-23 14:58:21 -0400
commitc4d239f56947cf5ae4c4d260946bf5ff9fe040cf (patch)
tree544a0d004632f002649264ca186580bd9c5ed945 /src/leap
parent069e832e0fcfb70a2521b4857a34a8e47ffa64bc (diff)
[feat] disable email firewall on docker containers
- Related: #7471
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/services/mail/emailfirewall.py5
1 files changed, 5 insertions, 0 deletions
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)