diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2015-09-23 15:32:22 -0300 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-09-23 14:58:21 -0400 |
commit | c4d239f56947cf5ae4c4d260946bf5ff9fe040cf (patch) | |
tree | 544a0d004632f002649264ca186580bd9c5ed945 /src | |
parent | 069e832e0fcfb70a2521b4857a34a8e47ffa64bc (diff) |
[feat] disable email firewall on docker containers
- Related: #7471
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/bitmask/services/mail/emailfirewall.py | 5 |
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) |