2 commits - pykolab/imap pykolab/setup

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Tue Dec 11 14:18:21 CET 2012


 pykolab/imap/__init__.py   |    4 ++++
 pykolab/setup/setup_mta.py |    3 +++
 2 files changed, 7 insertions(+)

New commits:
commit 9152aecc7c9a9ce98a0e0854002ef7d086fac26e
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Tue Dec 11 13:14:19 2012 +0000

    Secure the SMTP server further, by verifying the envelope sender is either not locally hosted, or authenticated

diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 5c66f19..c02b024 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -198,6 +198,9 @@ result_attribute = mail
             "transport_maps": "ldap:/etc/postfix/ldap/transport_maps.cf",
             "virtual_alias_maps": "$alias_maps, ldap:/etc/postfix/ldap/virtual_alias_maps.cf, ldap:/etc/postfix/ldap/mailenabled_distgroups.cf, ldap:/etc/postfix/ldap/mailenabled_dynamic_distgroups.cf",
             "smtpd_tls_auth_only": "yes",
+            "smtpd_sasl_auth_enable": "yes",
+            "smtpd_sender_login_maps": "$relay_recipient_maps",
+            "smtpd_sender_restrictions": "permit_mynetworks, reject_sender_login_mismatch",
             "smtpd_recipient_restrictions": "permit_mynetworks, reject_unauth_pipelining, reject_rbl_client zen.spamhaus.org, reject_non_fqdn_recipient, reject_invalid_helo_hostname, reject_unknown_recipient_domain, reject_unauth_destination, check_policy_service unix:private/recipient_policy_incoming, permit",
             "smtpd_sender_restrictions": "permit_mynetworks, check_policy_service unix:private/sender_policy_incoming",
             "submission_recipient_restrictions": "check_policy_service unix:private/submission_policy, permit_sasl_authenticated, reject",


commit 5e895296887b134ca3d809a612ceccdc31795f78
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Tue Dec 11 13:13:33 2012 +0000

    Lower-case the mailbox name for user mailboxes (#1455)

diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index d0b7d08..1dcae4d 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -543,6 +543,10 @@ class IMAP(object):
         """
             Check if a user mailbox exists.
         """
+        if not mailbox_base_name == mailbox_base_name.lower():
+            log.warning(_("Downcasing mailbox name %r") % (mailbox_base_name))
+            mailbox_base_name = mailbox_base_name.lower()
+
         return self.has_folder('user%s%s' %(self.imap.separator, mailbox_base_name))
 
     def user_mailbox_quota(self, mailbox_quota):





More information about the commits mailing list