bin/mailhandler
)
/var/lib/psycho/etc/psychologists
))
The mailhandler file receives e-mail from the psychologists containing details about clients. Details must be sent in plain text, so make sure that no default html format is selected.
The subject of the mail must contain a pre-agreed psychologist ID and the e-mail's envelope must contain the psychologist's e-mail address. The e-mail's body must contain these three lines (other lines are ignored):
---BEGIN CLIENT--- client details ---END CLIENT---
The client details contain the following comma-separated fields (subject to change):
Dear name,or in assessor texts, like
name likes to attend parties
The client is informed about the inital part of the login-code. When receiving the invitation e-mail the client receives an additional suffix, to be added to the provided login code. This way, assuming that the client verbally received the initial part of the login-code during a face-to-face contact with the psychologist the required login code cannot be intercepted: only the client receives the information allowing him/her to correctly login.
E.g., if the psychologist tells the client that his/her login code starts with 12, the client may then be informed in the received invitation e-mail that the value 101 must be added to the login code received from the psychologist. The client thereupon logs in at the psycho-webpage providing login code 12101.
In addition, the client is requested to provide the initial login code to his/her assessors. Once the client has submitted his/her self-ratings the assessors receive an introductory e-mail requesting them to rate the client, and also receiving their individual login-suffix. There is a slight security hole here: the client might e-mail the assessors, informing them about the initial login code. In theory, this e-mail could be intercepted as well as the e-mail sent by the system to the client, thus providing third parties with the required details for accessing the system. Lacking stronger forms of security, I'm afraid we must accept this slight security hole.
mailhandler
script is installed in the computer providing the
web-interface, and is given access to the psycho data.
/var/lib/psycho/psychologists
it verifies
whether e-mail envelopes and subjects match. If not, the e-mail is
ignored.etc/clients
(cf. chapter
3), and an welcoming e-mail is sent to the client.
psycho
, group psycho
must be defined;
psycho: "|sudo -u psycho /var/lib/psycho/bin/mailhandler"
mailhandler
to process incoming mail, the
/etc/sudoers.d/xxx
file must contain an entry like:
mail ALL = (psycho) NOPASSWD: /var/lib/psycho/bin/mailhandler