summaryrefslogtreecommitdiffstats
path: root/bin/kolab_smtp_access_policy.py
Commit message (Collapse)AuthorAgeFilesLines
* Use UTF8 charset on smtp_access_policy tables (Bifrost#T162941)Aleksander Machniak2019-05-291-0/+2
| | | | | | | On Debian 9's MariaDB default charset is set to utf8mb4, which causes problem with creating the unique indexes. We could probably use ASCII, but to be on safe side we use UTF8 which is the default on other platforms.
* Fix syntax errorJeroen van Meeuwen (Kolab Systems)2019-05-201-1/+1
|
* Free lint issuesJeroen van Meeuwen (Kolab Systems)2019-03-181-546/+573
|
* Add option to drop the caching tables from the database and exitJeroen van Meeuwen (Kolab Systems)2018-06-261-0/+16
| | | | | | | | | | | | | Summary: This can be used to enforce the regeneration of the caching tables with the latest database schema - for instance, by the package manager when upgrading the PyKolab package. This patch complements D587 in an attempt to fix T2274. Reviewers: #pykolab_developers Maniphest Tasks: T2274 Differential Revision: https://git.kolab.org/D593
* Resolve T2274 by implementing D587 that arcanist won't apply because the ↵Jeroen van Meeuwen (Kolab Systems)2018-06-261-4/+4
| | | | non-existent base commit does not exist in the local repository
* Remove the stdout/stderr log handlerJeroen van Meeuwen (Kolab Systems)2016-12-131-1/+1
|
* Disable verifying alias and delegated addresses for None SASL users.Jeroen van Meeuwen (Kolab Systems)2016-10-131-5/+7
|
* Fix bug where setting headers on access policy check would not work when ↵Aleksander Machniak2016-05-041-18/+31
| | | | | | | | | | | | cache is enabled (#5252) Summary: Warning: Database structure change Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D141
* Allow NULL sender in smtp_access_policy result cache (#5306)Aleksander Machniak2016-05-041-3/+3
| | | | | | | | Summary: Fixes #5306 Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D140
* Avoid using undefined variable, reject if no delegatees are specified on the ↵Jeroen van Meeuwen (Kolab Systems)2015-08-131-5/+19
| | | | target entry (#4936)
* Add sequences to auto-incrementing primary keys in order to work with Oracle ↵Thomas Bruederli2014-11-251-2/+3
| | | | databases (#3826)
* Fix session timeouts (#2661, #3567)Daniel Hoffend2014-09-111-0/+1
|
* Updated the licensing information according to FSF recommendations.Paul Boddie2014-06-261-12/+12
| | | | Note that cyruslib.py is still "GPLv2 or a later version" unlike the other files.
* Fix typoJeroen van Meeuwen (Kolab Systems)2014-02-161-1/+1
|
* Add new settings to control when (under what circumstances) a Sender:, ↵Jeroen van Meeuwen (Kolab Systems)2014-02-111-8/+118
| | | | X-Sender: or even an obscured X-Authenticated-As: header is prepended to email submitted through Kolab.
* Add an option to disable adding Sender: and X-Sender: headersJeroen van Meeuwen (Kolab Systems)2013-11-251-3/+10
|
* Try/except the actual routines of the Kolab SMTP Access Policy, and push a ↵Jeroen van Meeuwen (Kolab Systems)2013-11-211-9/+40
| | | | | | traceback through log.error (#2329) Allow empty sender addresses from trusted hosts, or do not crash but return False (#2329)
* Fix testing local but not the sender's domainJeroen van Meeuwen (Kolab Systems)2013-09-261-1/+1
|
* Do not assume that because there is an sasl_username and such, the sender ↵Jeroen van Meeuwen (Kolab Systems)2013-09-201-2/+3
| | | | user can actually be found.
* Make the Kolab SMTP Access Policy smarterJeroen van Meeuwen (Kolab Systems)2013-09-201-32/+19
|
* Make sure the recipient checks are cached as wellJeroen van Meeuwen (Kolab Systems)2013-09-201-14/+70
|
* Lower-case email addresses and attributes for comparisonJeroen van Meeuwen (Kolab Systems)2013-08-131-7/+10
| | | | PREPEND Sender: header
* Update copyrightJeroen van Meeuwen (Kolab Systems)2013-04-171-1/+1
|
* Allow additional attributes to be specified as valid sender addressesJeroen van Meeuwen (Kolab Systems)2013-04-111-3/+35
|
* Make sure the sasl_username is realmed, or we run in to server configuration ↵Jeroen van Meeuwen (Kolab Systems)2013-01-091-1/+4
| | | | problem errors
* Adjust utils.parse_ldap_uri()Jeroen van Meeuwen (Kolab Systems)2012-12-191-1/+1
|
* Initialize auth before any work beginsJeroen van Meeuwen (Kolab Systems)2012-11-031-5/+5
|
* Ensure unique recipients in listJeroen van Meeuwen (Kolab Systems)2012-09-161-2/+2
|
* Re-enable and tweak the kolab_smtp_access_policy cacheJeroen van Meeuwen (Kolab Systems)2012-09-161-28/+11
|
* Make sure Auth() is only created for the relevant domain, and at the right ↵Jeroen van Meeuwen (Kolab Systems)2012-09-161-19/+33
| | | | time (#1017)
* Remove the multiline messages that cannot be translated easilyJeroen van Meeuwen (Kolab Systems)2012-08-111-27/+15
|
* Accept recipients that are not LDAP entries (#829)Jeroen van Meeuwen (Kolab Systems)2012-06-061-7/+20
|
* Correct the Kolab SMTP Access Policy not matching alias email address to ↵Jeroen van Meeuwen (Kolab Systems)2012-06-061-33/+71
| | | | it's own authenticated entry (#827)
* sys.exit(0) on timeout waiting for DATA request state, or logs will show the ↵Jeroen van Meeuwen (Kolab Systems)2012-06-051-1/+1
| | | | policy in error (#817)
* Use find_recipient() instead of find_user() to verify delegation. (#826)Jeroen van Meeuwen (Kolab Systems)2012-06-051-7/+17
|
* Multiple recipient entries to be found associated with the recipient email ↵Jeroen van Meeuwen (Kolab Systems)2012-06-031-6/+17
| | | | address to result in the SMTP Access Policy not being applied. (#816)
* Introduce a timeout for requests that end prematurely and never reach the ↵Jeroen van Meeuwen (Kolab Systems)2012-05-281-0/+12
| | | | data protocol state (#780)
* Initialize Auth() after the configuration has been finalized.Jeroen van Meeuwen (Kolab Systems)2012-05-111-46/+15
| | | | Fix the kolab smtp access policy using legacy API calls
* Fix some mistakes in the previous commitJeroen van Meeuwen (Kolab Systems)2012-04-131-2/+2
|
* Allow the Kolab SMTP Access Policy to consult groups as wellJeroen van Meeuwen (Kolab Systems)2012-04-131-6/+27
|
* Correct some pylint conventions/errors/warningsJeroen van Meeuwen (Kolab Systems)2012-03-091-39/+52
|
* Fix the empty recipient inserting at the data request stateJeroen van Meeuwen (Kolab Systems)2012-03-081-4/+9
|
* Update copyrightdev/entitlementsJeroen van Meeuwen (Kolab Systems)2012-01-041-1/+1
|
* Lowercase rules and sender/recipient addresses when parsing the policy, or ↵Jeroen van Meeuwen (Kolab Systems)2011-11-231-0/+3
| | | | | | | | | | | | | | the policy values may not match the input values. It is safe to lowercase both as exploiting case-sensitivity in mail address local parts or domain name spaces is not allowed. Demo Python code: >>> address = "Jeroen.vanMeeuwen@kolab.org" >>> address.startswith('jeroen') False Solves #496.
* Remove stdout log handler when executing kolab_smtp_access_policyJeroen van Meeuwen (Kolab Systems)2011-11-211-65/+150
| | | | | | | | Add parsing an LDAP DN as a separate function call Add parsing an LDAP URI as a separate function call Use these functions in parse_policy() Disable caching for now Only process the complete request in the DATA protocol stage
* Refactor kolab_smtp_access_policy to take into account subsequent access ↵Jeroen van Meeuwen (Kolab Systems)2011-11-091-751/+917
| | | | policy requests, and query databases only after the complete policy request has been received.
* Add statistical accounting for sender <-> recipient counts per date to the ↵Jeroen van Meeuwen (Kolab Systems)2011-09-261-18/+101
| | | | Kolab SMTP Access Policy
* Make the attributes to search for valid addresses a configuration item.Jeroen van Meeuwen (Kolab Systems)2011-09-211-17/+36
|
* Verify whether the user is using an alias as wellJeroen van Meeuwen (Kolab Systems)2011-09-211-2/+37
|
* Add currently unused function verify_quota.Jeroen van Meeuwen (Kolab Systems)2011-09-211-20/+94
| | | | Order functions alphabetically.