<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<xep xmlns="">
<header>
  <title>Contact Addresses for XMPP Services</title>
  <abstract>This document defines a method for specifying contact addresses related to an XMPP service.</abstract>
  
<legal>
<copyright>This XMPP Extension Protocol is copyright © 1999 – 2024 by the <link url="https://xmpp.org/">XMPP Standards Foundation</link> (XSF).</copyright>
<permissions>Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.</permissions>
<warranty>## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##</warranty>
<liability>In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.</liability>
<conformance>This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &lt;<link url="https://xmpp.org/about/xsf/ipr-policy">https://xmpp.org/about/xsf/ipr-policy</link>&gt; or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).</conformance>
</legal>
  <number>0157</number>
  <status>Active</status>
  <type>Informational</type>
  <sig>Standards</sig>
  <approver>Council</approver>
  <dependencies>
    <spec>XMPP Core</spec>
    <spec>XEP-0128</spec>
  </dependencies>
  <supersedes/>
  <supersededby/>
  <shortname>N/A</shortname>
  
  <author>
    <firstname>Peter</firstname>
    <surname>Saint-Andre</surname>
    <email>stpeter@stpeter.im</email>
    <jid>stpeter@jabber.org</jid>
    <uri>https://stpeter.im/</uri>
  </author>

  <author>
    <firstname>Jacek</firstname>
    <surname>Konieczny</surname>
    <email>jajcus@jajcus.net</email>
    <jid>jajcus@jabber.bnet.pl</jid>
  </author>
  <revision>
    <version>1.1.1</version>
    <date>2021-03-04</date>
    <initials>mw</initials>
    <remark><p>Cross-document editorial adjustments for inclusive language.</p></remark>
  </revision>
  <revision>
    <version>1.1.0</version>
    <date>2020-05-25</date>
    <initials>mb, fs</initials>
    <remark><p>Add 'status-addresses' value in registrar, with example.</p></remark>
  </revision>
  <revision>
    <version>1.0.1</version>
    <date>2018-07-21</date>
    <initials>egp</initials>
    <remark><p>Add missing dependency metadata.</p></remark>
  </revision>
  <revision>
    <version>1.0</version>
    <date>2007-01-31</date>
    <initials>psa</initials>
    <remark><p>Per a vote of the XMPP Council, advanced specification to Active.</p></remark>
  </revision>
  <revision>
    <version>0.6</version>
    <date>2007-01-25</date>
    <initials>psa</initials>
    <remark><p>Per Council feedback, restored service discovery of XMPP contact addresses from version 0.1 of spec.</p></remark>
  </revision>
  <revision>
    <version>0.5</version>
    <date>2007-01-06</date>
    <initials>psa</initials>
    <remark><p>Changed XMPP address from domain.tld/admin to xmpp@domain.tld.</p></remark>
  </revision>
  <revision>
    <version>0.4</version>
    <date>2007-01-05</date>
    <initials>psa</initials>
    <remark><p>Changed XMPP address from domain.tld to domain.tld/admin to prevent overloading.</p></remark>
  </revision>
  <revision>
    <version>0.3</version>
    <date>2006-07-31</date>
    <initials>psa</initials>
    <remark><p>Recommended support for RFC2142-style mailbox in addition to XMPP address.</p></remark>
  </revision>
  <revision>
    <version>0.2</version>
    <date>2006-07-18</date>
    <initials>psa</initials>
    <remark><p>Removed extended addressing recommendations pending further review.</p></remark>
  </revision>
  <revision>
    <version>0.1</version>
    <date>2005-09-08</date>
    <initials>psa</initials>
    <remark><p>Initial version.</p></remark>
  </revision>
  <revision>
    <version>0.0.2</version>
    <date>2005-09-06</date>
    <initials>psa</initials>
    <remark><p>Added security considerations and XMPP Registrar considerations.</p></remark>
  </revision>
  <revision>
    <version>0.0.1</version>
    <date>2005-08-27</date>
    <initials>psa/jk</initials>
    <remark><p>First draft.</p></remark>
  </revision>
</header>
<section1 topic="Introduction" anchor="intro">
  <p><span class="ref"><link url="http://tools.ietf.org/html/rfc2142">RFC 2142</link></span> <note>RFC 2142: Mailbox Names for Common Services, Roles and Functions &lt;<link url="http://tools.ietf.org/html/rfc2142">http://tools.ietf.org/html/rfc2142</link>&gt;.</note> specifies conventional electronic mailbox names for common services, roles, and functions related to SMTP, NNTP, and HTTP (such as security@domain.tld, usenet@domain.tld, and abuse@domain.tld). However, no such conventional email address or XMPP address has been specified for XMPP services (e.g., in <span class="ref"><link url="http://tools.ietf.org/html/rfc3920">RFC 3920</link></span> <note>RFC 3920: Extensible Messaging and Presence Protocol (XMPP): Core &lt;<link url="http://tools.ietf.org/html/rfc3920">http://tools.ietf.org/html/rfc3920</link>&gt;.</note>). This document remedies that oversight, and the email recommendation specified here has been incorporated into <span class="ref"><link url="http://tools.ietf.org/html/rfc6120">RFC 6120</link></span> <note>RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core &lt;<link url="http://tools.ietf.org/html/rfc6120">http://tools.ietf.org/html/rfc6120</link>&gt;.</note>.</p>
</section1>
<section1 topic="Email Address" anchor="email">
  <p>Consistent with <span class="ref"><link url="http://tools.ietf.org/html/rfc2142">RFC 2142</link></span> <note>RFC 2142: Mailbox Names for Common Services, Roles and Functions &lt;<link url="http://tools.ietf.org/html/rfc2142">http://tools.ietf.org/html/rfc2142</link>&gt;.</note>, a domain that offers a Jabber/XMPP service SHOULD provide an Internet mailbox of "XMPP" for inquiries related to that service.</p>
</section1>
<section1 topic="XMPP Addresses" anchor="xmpp">
  <p>The administrators of an XMPP service may desire to advertise contact information related to that service.
    <note>Many existing Jabber/XMPP server implementations use the bare domain &lt;domain.tld&gt; of the server (e.g., "example.org") as an alias for the server administrators, such that a &lt;message/&gt; stanza addressed to that domain name is delivered to the JIDs of the server administrators. (Currently, this functionality does not apply to &lt;iq/&gt; or &lt;presence/&gt; stanzas.) Unfortunately, using the "domain.tld" address as a way to direct messages to the server administrators may result in overloading of the bare domain address (i.e., it may be desirable to send messages to the server's address without having those messages delivered to the server admins, for example if the server doubles as a <span class="ref"><link url="https://xmpp.org/extensions/xep-0060.html">Publish-Subscribe (XEP-0060)</link></span> <note>XEP-0060: Publish-Subscribe &lt;<link url="https://xmpp.org/extensions/xep-0060.html">https://xmpp.org/extensions/xep-0060.html</link>&gt;.</note> service). Therefore, it is instead RECOMMENDED to support service discovery of contact addresses as specified herein.</note>
  This contact information may include email addresses, web URLs, and JabberIDs for specific roles and functions such as the service administrators, abuse reports, customer feedback, sales inquiries, technical support, and security concerns. For this purpose, domains SHOULD support the electronic mailboxes required by <span class="ref"><link url="http://tools.ietf.org/html/rfc2142">RFC 2142</link></span> <note>RFC 2142: Mailbox Names for Common Services, Roles and Functions &lt;<link url="http://tools.ietf.org/html/rfc2142">http://tools.ietf.org/html/rfc2142</link>&gt;.</note>. However, additional contact mechanisms may be desirable, and it would be helpful if those who want to initiate contact could discover the contact information using standard XMPP extensions, specifically <span class="ref"><link url="https://xmpp.org/extensions/xep-0030.html">Service Discovery (XEP-0030)</link></span> <note>XEP-0030: Service Discovery &lt;<link url="https://xmpp.org/extensions/xep-0030.html">https://xmpp.org/extensions/xep-0030.html</link>&gt;.</note>. To make such discovery possible, we specify a <span class="ref"><link url="https://xmpp.org/extensions/xep-0128.html">Service Discovery Extensions (XEP-0128)</link></span> <note>XEP-0128: Service Discovery Extensions &lt;<link url="https://xmpp.org/extensions/xep-0128.html">https://xmpp.org/extensions/xep-0128.html</link>&gt;.</note> mechanism that a server SHOULD return in response to service discovery information ("disco#info") requests sent to the bare domain of the server. This information MUST be scoped using a FORM_TYPE of "http://jabber.org/network/serverinfo" (as already specified in <span class="ref"><link url="https://xmpp.org/extensions/xep-0128.html">Service Discovery Extensions (XEP-0128)</link></span> <note>XEP-0128: Service Discovery Extensions &lt;<link url="https://xmpp.org/extensions/xep-0128.html">https://xmpp.org/extensions/xep-0128.html</link>&gt;.</note>) and data form fields registered for this purpose as defined in the <link url="#registrar">XMPP Registrar Considerations</link> section of this document.</p>

  <p>Values of 'status-addresses' form field MUST be valid URIs, i.e. comply with the 
  'xs:anyURI' datatype of <span class="ref"><link url="http://www.w3.org/TR/xmlschema11-2/">XML Schema Part 2</link></span> <note>XML Schema Part 2: Datatypes &lt;<link url="http://www.w3.org/TR/xmlschema11-2/">http://www.w3.org/TR/xmlschema11-2/</link>&gt;.</note>. Values of the 'abuse-addresses', 
  'admin-addresses', 'feedback-addresses', 'sales-addresses',
  'security-addresses' and 'support-addresses' SHOULD be valid URIs.</p>

  <p>To illustrate this usage, consider the following example of a disco#info request sent to the mythical shakespeare.lit XMPP server:</p>
  <example caption="Entity queries server for information"><![CDATA[
<iq from='juliet@capulet.com/chamber'
    to='shakespeare.lit'
    id='disco1'
    type='get'>
  <query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>
]]></example>
  <example caption="Server communicates information"><![CDATA[
<iq from='shakespeare.lit'
    to='juliet@capulet.com/chamber'
    id='disco1'
    type='result'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <identity category='server' type='im'/>
    <feature var='http://jabber.org/protocol/disco'/>
    <x xmlns='jabber:x:data' type='result'>
      <field var='FORM_TYPE' type='hidden'>
        <value>http://jabber.org/network/serverinfo</value>
      </field>
      <field var='abuse-addresses'>
        <value>mailto:abuse@shakespeare.lit</value>
        <value>xmpp:abuse@shakespeare.lit</value>
      </field>
      <field var='admin-addresses'>
        <value>mailto:xmpp@shakespeare.lit</value>
        <value>xmpp:admins@shakespeare.lit</value>
      </field>
      <field var='feedback-addresses'>
        <value>http://shakespeare.lit/feedback.php</value>
        <value>mailto:feedback@shakespeare.lit</value>
        <value>xmpp:feedback@shakespeare.lit</value>
      </field>
      <field var='sales-addresses'>
        <value>xmpp:bard@shakespeare.lit</value>
      </field>
      <field var='security-addresses'>
        <value>xmpp:security@shakespeare.lit</value>
      </field>
      <field var='status-addresses'>
        <value>https://status.shakespeare.lit</value>
      </field>
      <field var='support-addresses'>
        <value>http://shakespeare.lit/support.php</value>
        <value>xmpp:support@shakespeare.lit</value>
      </field>
    </x>
  </query>
</iq>
]]></example>
</section1>
<section1 topic="Deployment Notes" anchor="deploy">
  <p>The "domain.tld" at which the XMPP service is hosted need not be the same as the "domain.tld" at which the email service is hosted. For example, it is common for a service provider to host its XMPP service at a hostname such as "jabber.example.org" whereas email related to the service provider is sent to a hostname of "example.org". Thus while the XMPP address and email address may be the same for some service providers (e.g., both "xmpp@example.com"), that similarity is not necessary.</p>
  <p>Although some service providers that use the same address for both XMPP and email messaging may integrate delivery of messages sent by those mechanisms (e.g., XMPP messages sent while a user is offline are redirected to email delivery), XMPP and email remain separate messaging systems.</p>
  <p>A service provider that supports the functionality specified herein may advertise the service through a Mailto URI (see <span class="ref"><link url="http://tools.ietf.org/html/rfc2368">RFC 2368</link></span> <note>RFC 2368: The mailto URL scheme &lt;<link url="http://tools.ietf.org/html/rfc2368">http://tools.ietf.org/html/rfc2368</link>&gt;.</note>) of &lt;mailto:xmpp@domain.tld&gt; and through appropriate XMPP URIs (see <span class="ref"><link url="http://tools.ietf.org/html/rfc5122">RFC 5122</link></span> <note>RFC 5122: Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for the Extensible Messaging and Presence Protocol (XMPP) &lt;<link url="http://tools.ietf.org/html/rfc5122">http://tools.ietf.org/html/rfc5122</link>&gt;.</note>) such as &lt;xmpp:admins@domain.tld&gt; or (per <span class="ref"><link url="https://xmpp.org/extensions/xep-0147.html">XMPP URI Query Components (XEP-0147)</link></span> <note>XEP-0147: XMPP URI Query Components &lt;<link url="https://xmpp.org/extensions/xep-0147.html">https://xmpp.org/extensions/xep-0147.html</link>&gt;.</note>) &lt;xmpp:admins@domain.tld?message&gt;.</p>
  <p>It is a matter of service policy whether the XMPP addresses provided are dedicated accounts or aliases that redirect communications to the appropriate accounts.</p>
</section1>
<section1 topic="Security Considerations" anchor="security">
  <p>Providing or advertising contact addresses may open those addresses to unwanted communication. Server administrators should balance the need for openness with the desire for control over communication with customers and peers.</p>
</section1>
<section1 topic="IANA Considerations" anchor="iana">
  <p>This document requires no interaction with the <span class="ref"><link url="http://www.iana.org/">Internet Assigned Numbers Authority (IANA)</link></span> <note>The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &lt;<link url="http://www.iana.org/">http://www.iana.org/</link>&gt;.</note>.</p>
</section1>
<section1 topic="XMPP Registrar Considerations" anchor="registrar">
  <p>The <span class="ref"><link url="https://xmpp.org/registrar/">XMPP Registrar</link></span> <note>The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &lt;<link url="https://xmpp.org/registrar/">https://xmpp.org/registrar/</link>&gt;.</note> includes the following information in its registries.</p>
  <section2 topic="Field Standardization" anchor="registrar-formtype">
    <p><span class="ref"><link url="https://xmpp.org/extensions/xep-0068.html">Field Standardization for Data Forms (XEP-0068)</link></span> <note>XEP-0068: Field Data Standardization for Data Forms &lt;<link url="https://xmpp.org/extensions/xep-0068.html">https://xmpp.org/extensions/xep-0068.html</link>&gt;.</note> defines a process for standardizing the fields used within Data Forms qualified by a particular namespace, and <span class="ref"><link url="https://xmpp.org/extensions/xep-0128.html">Service Discovery Extensions (XEP-0128)</link></span> <note>XEP-0128: Service Discovery Extensions &lt;<link url="https://xmpp.org/extensions/xep-0128.html">https://xmpp.org/extensions/xep-0128.html</link>&gt;.</note> describes how to use field standardization in the context of service discovery. This section registers fields for server information scoped by the "http://jabber.org/network/serverinfo" FORM_TYPE.</p>
    <code caption="Registry Submission"><![CDATA[
<form_type>
  <name>http://jabber.org/network/serverinfo</name>
  <doc>XEP-0157</doc>
  <desc>
    Forms enabling the communication of contact addresses
    and other server information.
  </desc>
  <field
      var='abuse-addresses'
      type='list-multi'
      label='One or more addresses for communication related to abusive traffic'/>
  <field
      var='admin-addresses'
      type='list-multi'
      label='One or more addresses for communication with the service administrators'/>
  <field
      var='feedback-addresses'
      type='list-multi'
      label='One or more addresses for customer feedback'/>
  <field
      var='sales-addresses'
      type='list-multi'
      label='One or more addresses for communication related to sales and marketing'/>
  <field
      var='security-addresses'
      type='list-multi'
      label='One or more addresses for communication related to security concerns'/>
  <field
      var='status-addresses'
      type='list-multi'
      label='One or more addresses for service status'>
  </field>
  <field
      var='support-addresses'
      type='list-multi'
      label='One or more addresses for customer support'/>
</form_type>
]]></code>
  </section2>
</section1>
</xep>
