summaryrefslogtreecommitdiff
path: root/src/leap/mx/alias_resolver.py
AgeCommit message (Collapse)Author
2015-11-23[feat] add '@deliver.local' to uuidRuben Pollan
- Resolves: #5959
2015-04-24[feat] make log messages match postfix's configdrebs
Change the virtual alias map and the access recipien access checker log messages so they match postfix's configuration statements.
2015-04-20[doc] update documentationdrebs
I'm updating (1) some very outdated doc from when the program was not yet written, and (2) some small stuff inside classes docstrings.
2015-04-16[bug] return uuid as result of alias resolverdrebs
This fixes a bug introduced on b0ef529cc882a96903597fb5279919969fa286c3, when the alias resolver was modified to return the user's address instead of the uuid. In order to fix this, I had to revert one of the changes made by the commit above, which is to don't make use of reduced view for the uuid query. The pgp public key query remains reduced, as implemented in the commit above. We also refactor the code a bit to allow for log messages specific to each of tcp map's sublasses. Related: #6858.
2015-04-09[refactor] use couch reduced views for lookupsdrebs
The way uuid and pgp key were being queried by means of couch views was not efficient because they weren't using the reduce function and were filtering the views results in the python code. Also, the uuid is not actually needed to find out either if the address exists or if there's a pgp public key for that address. This commit refactors the couch helper to make use of the reduce functions in queried views and to get rid of the intermediate uuid querying.
2015-04-09[bug] limit pgp key lookup to access check serverdrebs
In order to minimize the number of couchdb queries and the number of mx lookups in case of junk mail this commit restricts the pgp key lookup to the access check server (and removes it from the alias server). Closes: #6795.
2015-03-25[refactor] separate tcp map server codedrebs
Separate the common tcp map server code, used for both alias resolver and recipient access checker, to its own file.
2015-03-25[feat] reject incoming mail if no pgp key founddrebs
Implement a PGP key lookup in the postfix smtp recipient restriction and virtual alias mapping levels. If no PGP key is found, then the address is rejected with a temporary error. Closes: #6795
2013-08-20Migrate mx to work with the new couchdb structure and viewsTomás Touceda
2013-08-09Return code even if bare usernameKali Kaneko
2013-08-06Fix alias lookup return codes. Closes #3356Kali Kaneko
2013-05-03Add setup script and init.d scriptTomas Touceda
Also, some pep8 fixes
2013-05-02Several fixes according to the review commentsTomas Touceda
2013-04-25Simplify check recipient access, change the owner field in mail_receiverTomas Touceda
2013-04-23Add pubkey retrievingTomas Touceda
2013-04-22More fixesTomas Touceda
2013-04-15Update AliasResolver.buildProtocol() docstring.Isis Lovecruft
2013-04-15Add connection to CouchDB instance to AliasResolverFactory.Isis Lovecruft
2013-04-15Add CouchDB instance as an attribute of AliasResolverFactory and update docs.Isis Lovecruft
2013-04-15Pass the deferred response from CouchDB along to sendLine in AliasResolver.Isis Lovecruft
2013-04-15Change the logic on sending Postfix TCP map status codes and messages.Isis Lovecruft
2013-04-15Add support for Postfix virtual transports to alias_resolver.AliasResolver.Isis Lovecruft
2013-04-15Update docstrings in alias_resolver.AliasResolver.Isis Lovecruft
2013-04-15Fix logic for return of Postfix TCP map responses in alias_resolver.StatusCodesIsis Lovecruft
2013-04-15Create method-level docstrings for alias_resolver.StatusCodes.Isis Lovecruft
2013-04-15Update mappings of Postfix TCP map protocol codes to message strings.Isis Lovecruft
2013-04-15Update class docstring for alias_resolver.StatusCodes.Isis Lovecruft
2013-04-15Add DatabaseNotConnected exception to alias_resolver.py.Isis Lovecruft
2013-04-15Update docstring for function alias_resolver.createUUID().Isis Lovecruft
2013-04-15Import our couchdb module into alias_resolver.py.Isis Lovecruft
2013-04-15Update module docstring for alias_resolver.py.Isis Lovecruft
2013-01-31Finished check_recipient and virtual_alias_map in AliasResolver.Isis Lovecruft
2013-01-31Add callbacks to AliasResolverFactory, these need to be hooked toIsis Lovecruft
couchdb.ConnectedCouchDB().
2013-01-31Add TODO to alias_resolver.Isis Lovecruft
2013-01-31Renamed alias_resolver.createID() to alias_resolver.aliasToUUID(), renamedIsis Lovecruft
AliasResolver classes, fixed docstrings and imports.
2013-01-31Fix typo.Isis Lovecruft
2013-01-31Separated CouchDB code into mx/couchdb.py and added fake-SMTP status codes toIsis Lovecruft
alias_resolver.
2013-01-31Add UUID creator to alias_resolver.Isis Lovecruft
2013-01-25Clean up directory structure to be better aligned with other leap pythonIsis Lovecruft
project, add __init__.py to modules directories, and add query callback function to couchdb in alias_resolver.py for check_recipient feature.