Skip to content


Repository files navigation


Join the chat at

Build status

Development Branch

Build Status Build status

Master Branch

Build Status Build status


This is a xmpp server implementation using the Yaaf.Xmpp.* packages. The implementation is here to provide additional (integration-)tests for the Yaaf.Xmpp.* packages and so you can look into an example usage of those packages.

On the other hand it is a full fledged xmpp server ready to use.

Note that this project is at a very early state and some security features are still missing!

If you want to get running:

git clone
cd Yaaf.Xmpp.Server
# or download a .zip or .tar.gz from
build.cmd # or ./ on linux

If everything worked you now have a working xmpp server binary, now you need to configure your server: Just create a file temp/localServer.yaml

# Your domain
Domain: xmpp.domain.tld

# This are the default ports
  - Type: s2s
    Port: 5269
  - Type: c2s
    Port: 5222
  - Type: component
    Port: 5347

# You need to create the certificates four your domain and insert the correct paths here.
  Private: "C:/projects/Yaaf.Xmpp.Server/temp/key.pem"
  Public: "C:/projects/Yaaf.Xmpp.Server/temp/cert.pem"
  Password : ""

# Your components
Components: []
# If you want to specify components they look like this:
#  - Domain:
#    Secret: secret_gtalk
#  - Domain:
#    Secret: secret_facebook

# currently only ldap is supported
  - Type: ldap
    ConnectionString: "Server=ldap.domain.tld;Port=636;SSL=true"
    MapUserId: "uid={0},ou=People,dc=domain,dc=tld"

# You can specify mysql or mssql
  - Type: mysql
    ConnectionString: Server=localhost;Database=xmpp;Uid=xmpp;Pwd=password
# a mssql connection string looks like this (for database files): Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\rosterdb-nunit.mdf;Integrated Security=True
# or: Data Source=(local)\\SQL2014;Database=rosterstore_nunit;User ID=sa;Password=Password12!

# enable this if you want that your messages get written to an imap folder
# note that the given user needs access to the mailbox specified in `Folder`
#  - Type: "imap"
#    Writeonly: true
#    ReplacePreferenceStoreWithMemory: false
#    ConnectionString: "Server=imap.domain.tld;Uid=user;Pwd=password;Folder=user.{0}.Chats.LocalDevelXmpp;Timeout=5000"
  - Type: "mysql"
    Writeonly: false
    ReplacePreferenceStoreWithMemory: true
    ConnectionString: "Server=localhost;Database=xmpp;Uid=xmpp;Pwd=password"

If you use a real database (ie no database files) you need to create the specified user and grant access. For example

GRANT ALL PRIVILEGES ON xmpp.* To 'xmpp'@'localhost' IDENTIFIED BY 'password';

Now you can run the server:

runServer.cmd # or ./ on linux


No description, website, or topics provided.







No packages published