Install PyAIMt - AIM transport

This tutorial explains how you can install PyAIMt. The official PyAIMt documentation may be more complete and up to date.

  1. Install Python

    Make sure have installed Python 2.3 or newer (I have reports that some older versions work). Most distributions should handle this automatically for you.

    • Debian:
      apt-get install python2.3
    • Mandrake:
      urpmi python
    • MS Windows: Download and run the binary installer from When complete, add the directory that python.exe is in to your PATH (look in Windows help for details on doing this)
    • Others: Use your distribution's installation method, or download and compile the source from
  2. Install Twisted

    Install Twisted:

    • Debian:
      apt-get install python-twisted python-crypto python-pyopenssl
    • MS Windows: Download and run the binary installers for Twisted, PyCrypto and PyOpenSSL from
    • Others: Use your distribution's installation method, or download (and compile when necessary) Twisted, PyCrypto and PyOpenSSL from
  3. Download PyAIMt

    Download PyAIMt and uncompress it.

  4. Configure PyAIMt

    Copy config_example.xml to config.xml and edit it:

    • The 'jid' setting should be what ID you want the transport to take on the network. Example:
    • The 'mainServer' setting should be the IP address or DNS of the main Jabber server. Default:
    • The 'secret' setting should match the secret specified for component connections in your main Jabber server. It's a password that only the Jabber server and the transport must know. Default: password
    • The 'port' setting is the port that the transport and ejabberd server agree to use to connect between them (more details on this below). Default: 5347
    • The 'name' setting should be what name you wish users to see in a service discovery request.
    • You can also turn on debugging options, and customise some of the text that is sent to the users in this file.
  5. Spool directory

    This directory must match some conditions, it must:

    • be writeable by whatever system user will be running PyAIMt
    • have the same name as the 'jid' value you specified above in config.xml.

    You must create the directory:

    • If you are starting a new installation, just create the directory.
    • If you are upgrading from the old C version of AIM-t then copy your existing spool directory. Don't forget to rename it to the 'jid' value you specified on config.xml.
  6. Configure ejabberd

    Now you have to configure your Jabber server. This instructions assume you are running the transport on the same machine as your main Jabber server.

    1. Edit ejabberd.cfg.
    2. In the section that says: '{listen,' add those two lines:
          {5347, ejabberd_service, [{host, "",
                                     [{password, "password"}]}]},
    3. Restart ejabberd and you are done.
  7. Start PyAIMt

    Now you are ready to start PyAIMt for the first time:


    It will connect to the Jabber server and serve the Discovery JID you specified. Note: PyAIMt does not implement the old and deprecated 'Browse' capacity, only the newer 'Discovery'.

    On MS Windows you can run it by opening a DOS console in the PyAIMt/src directory and running "python"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

working source and documentation URLs

The official source for PyAIMt is now:

and you will find the online documentation here:


Thanks, I've updated the

Thanks, I've updated the links in the tutorial.

Syndicate content