summaryrefslogtreecommitdiff
path: root/src/leap/mx/check_recipient_access.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-04-17 16:35:58 -0300
committerdrebs <drebs@leap.se>2015-04-20 16:53:25 -0300
commit62def16809c1cf739db5a7a8e7aa24fec70fdf5d (patch)
treeea5f5e4f16508165838c8cd9a7f2ba168b751599 /src/leap/mx/check_recipient_access.py
parent3353e2bccb2625ae06472721cfbb8cf53144a255 (diff)
[doc] update documentation
I'm updating (1) some very outdated doc from when the program was not yet written, and (2) some small stuff inside classes docstrings.
Diffstat (limited to 'src/leap/mx/check_recipient_access.py')
-rw-r--r--src/leap/mx/check_recipient_access.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/leap/mx/check_recipient_access.py b/src/leap/mx/check_recipient_access.py
index 9f79dfe..55460a6 100644
--- a/src/leap/mx/check_recipient_access.py
+++ b/src/leap/mx/check_recipient_access.py
@@ -17,7 +17,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
-Classes for resolving postfix recipient access
+Classes for resolving postfix recipient access.
+
+The resolver is queried by the mail server before delivery to the mail spool
+directory, and should check if the address is able to receive messages.
+Examples of reasons for denying delivery would be that the user is out of
+quota, is user, or have no pgp public key in the server.
Test this with postmap -v -q "foo" tcp:localhost:2244
"""
@@ -44,6 +49,9 @@ class LEAPPostFixTCPMapAccessServer(postfix.PostfixTCPMapServer):
Return a code and message depending on the result of the factory's
get().
+ If there's no pgp public key for the user, we currently return a
+ temporary failure saying that the user account is disabled.
+
For more info, see: http://www.postfix.org/access.5.html
:param value: The uuid and public key.