title: Storing messages in ejabberd
body: <p>I am trying to setup simple XMPP server (ejabberd) which will save messages exchanged by users in MySql database.</p>
  
  <p>This really seems like a basic stuff for a chat server.</p>
  
  <p>Does anyone have any experience or documentation on how to setup message storing?</p>
  
  <p>I am using ejabberd 15.04</p>