jabber-agent.pl

a mail to jabber bridge

command line tool for sending jabber messages

jabber-agent.pl can send jabber messages from the command line.

mail can be piped to jabber-agent.pl, making an effective smtp to jabber bridge.


installation

as a mail pipe

you must define a mx for your jabber domain in your dns :

your-jabber-domain.org in a your-jabber-server-ip-goes-here in mx 10 your-mta-goes-here

in aliases for your-jabber-domain.org :

*: ``|/home/xavier/system/bin/jabber-agent.pl -m -a /etc/aliases -l /tmp/jabber-agent.log''

download

here


options

    -b buddies to send msg to, comma separated
    -s sysadmin
    -m mail input
    -p parse mail to extract buddies from headers "To" (default)
    -a alias lists
    -l <logfile>
    
    command line :
    -t tea
    -f food
    -x xavier (alias debug)
    -n nick


usage

    mail pipe :
    jabber-agent.pl -m -a /etc/aliases <  testmail
    jabber-agent.pl -x -m -a your-mail-domain.org  -l /tmp/jabber-agent.log < testmail
   jabber-agent.pl -m -a ~/your-mail-domain.org < testmail
    command line :
    jabber-agent.pl
    jabber-agent.pl -t
    jabber-agent.pl -x
    echo test`dates2` | mail -s test`dates2` jabber
    echo test`dates2` | mail -s test`dates2` xavier@your-jabber-domain.org nolan@your-jabber-domain.org

pre-req

libemail-simple-perl - Simple parsing of RFC2822 message format and headers libnet-jabber-perl

todo

know every user/pass, login as the user we match in the from

decode quoted printable Module MIME::Decoder::QuotedPrint (D/DS/DSKOLL/MIME-tools-5.419.tar.gz) Module MIME::QuotedPrint (G/GA/GAAS/MIME-Base64-3.07.tar.gz) Module MIME::QuotedPrint::Perl (G/GA/GAAS/MIME-Base64-Perl-1.00.tar.gz) Module Mail::Message::TransferEnc::QuotedPrint (M/MA/MARKOV/Mail-Box-2.063.tar.gz) Module PerlIO::via::QuotedPrint (E/EL/ELIZABETH/PerlIO-via-QuotedPrint-0.06.tar.gz)


copyright/contact

here


screenshot