Mercurial > prosody-modules
comparison mod_alias/README.markdown @ 1953:0c3ba5ff7a3b
mod_alias: New alias module
author | moparisthebest <admin@moparisthebest.com> |
---|---|
date | Sat, 21 Nov 2015 00:10:08 -0500 |
parents | |
children | ea6b5321db50 |
comparison
equal
deleted
inserted
replaced
1952:9d0c33ebbcc5 | 1953:0c3ba5ff7a3b |
---|---|
1 --- | |
2 summary: Point alias accounts or domains to correct XMPP user | |
3 ... | |
4 | |
5 Introduction | |
6 ============ | |
7 | |
8 This module allows you to set up aliases that alert people who try to | |
9 contact them or add them to their roster what your actual JID is. This | |
10 is useful for changing JIDs, or just in the case where you own both | |
11 example.com and example.net, and want people who contact you@example.com | |
12 to be alerted to contact you at you@example.net instead. | |
13 | |
14 This type of aliasing is well supported in the email world, but very hard | |
15 to handle with XMPP, this module sidesteps all the hard problems by just | |
16 sending the user a helpful message, requiring humans to decide what they | |
17 actually want to do. | |
18 | |
19 This doesn't require any special support on other clients or servers, | |
20 just the ability to recieve messages. | |
21 | |
22 Configuration | |
23 ============= | |
24 | |
25 Add the module to the `modules_enabled` list. | |
26 | |
27 modules_enabled = { | |
28 ... | |
29 "alias"; | |
30 } | |
31 | |
32 Then set up your list of aliases, aliases can be full or bare JIDs, | |
33 or hosts: | |
34 | |
35 aliases = { | |
36 ["old@example.net"] = "new@example.net"; | |
37 ["you@example.com"] = "you@example.net"; | |
38 ["conference.example.com"] = "conference.example.net"; | |
39 } | |
40 | |
41 You can also set up a custom response, by default it is: | |
42 | |
43 alias_response = "User $alias can be contacted at $target"; | |
44 | |
45 A script named mod_alias_postfixadmin.sh is included in this directory to | |
46 generate the aliases array directly from a postfixadmin MySQL database. | |
47 Instructions for use are included in the script. | |
48 | |
49 Compatibility | |
50 ============= | |
51 | |
52 ------- -------------- | |
53 trunk Works | |
54 0.10 Works | |
55 0.9 Unknown | |
56 0.8 Unknown | |
57 ------- -------------- |