title: Getting ejabberd to notify an external module on client presence change
body: <p>I have an ejabberd server at jabber.domain.com, with an xmpp component written in python (using sleekxmpp) at presence.domain.com.</p>
  
  <p>I wanted the component to get a notification each time a client changed his presence from available to unavailable and vice-versa.</p>
  
  <p>The clients themselves don't have any contacts.</p>
  
  <p>Currently, I have set up my clients to send their available presence stanzas to admin@presence.domain.com, and I do get their online/offline presence notifications. But I feel this isn't the right approach.</p>
  
  <p>I was hoping the clients wouldn't be aware of the component at presence.domain.com, and they would just connect to jabber.domain.com and the component should somehow get notified by the server about the clients presence.</p>
  
  <p>Is there a way to do that?
  Is my component setup correct? or should I think about using an xmpp plugin/module/etc..</p>
  
  <p>Thanks</p>