summaryrefslogtreecommitdiff
path: root/src/leap/mx/check_recipient_access.py
AgeCommit message (Collapse)Author
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-10-29Fix return codes for check recipientTomás Touceda
2013-08-09Return code even if bare usernameKali Kaneko
2013-08-06Fix alias lookup return codes. Closes #3356Kali Kaneko
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-25Add check recipient accessTomas Touceda