mod_server_contact_info

This module lets you advertise various contact addresses for your XMPP service via XEP-0157.

Configuration

Various types of contact addresses can be set via the single table option contact_info. Each field is a list of strings. Each string should be an URI.

The common address types can be formatted as follows:

  • XMPP address: xmpp:user@example.com
  • Email address: mailto:user@example.com
  • XMPP channel: xmpp:room@muc.example.com?join

An example showing all possible fields:

modules_enabled = {
    -- Other modules here
        "server_contact_info";
}
contact_info = {
  abuse = { "mailto:abuse@shakespeare.lit", "xmpp:abuse@shakespeare.lit" };
  admin = { "mailto:admin@shakespeare.lit", "xmpp:admin@shakespeare.lit" };
  feedback = { "http://shakespeare.lit/feedback.php", "mailto:feedback@shakespeare.lit", "xmpp:feedback@shakespeare.lit" };
  sales = { "xmpp:bard@shakespeare.lit" };
  security = { "xmpp:security@shakespeare.lit" };
  support = { "http://shakespeare.lit/support.php", "xmpp:support@muc.shakespeare.lit?join" };
}

Without configuration, the module will expose the admins configured.