Offline messages (IM) mail forwarding for OpenSimulator
https://github.com/GuduleLapointe/offline-mail-forwarding
GNU AFFERO GENERAL PUBLIC LICENSE (see LICENSE file)
Warning
This forwarder might look easy to setup, but it is not an easy job.
Mail forwarding will expose your server. So you ABSOLUTELY need to have
a secured server to avoid being hacked or used by spammers.
Among other things:
- use SSL, disallow unencrypted access to this script
- if you have a mail relay installed on your server, deny relay from non authenticated users;
- avoid allowing group messages relaying if possible;
- keep watching your OpenSimulator, mail and web server logs to detect any abuse.
Features
- Forward instant messages by mail when the user is offline
- Replacement for the usual offline message script, so it also handles local delivery
Caveats
It is an external script. It is called where the sender stands by the region
simulator, because that’s where you can call an external offline message script.
This means:
- if somebody sends a message from another grid, it will not be forwarded
because the other grid has no access to HG users email and IM preferences
- if it is sent from a region where the script it is not installed, the message
will not be forwarded either
This can be good, as it limits possible abuses, but a better approach would be
to intercept the message on the grid level (in Robust instance), and from
there allow or disallow forwarding from HG senders, but this would need
changes in OpenSimulator core software.
So this project is, and will stay, a workaround, not perfect but useful until
we or somebody else develop the core module.
Installation
On your webserver
You webserver needs access to the OpenSimulator database.
In OpenSimulator (grid or standalone)
Now mail forwarding is active on the server, but users wanting to enable it
have to do it from viewer preferences (in Chat or Communication tab).