RT HOWTO. ( This HOWTO based on Request Tracker 3.8.1 release and Gentoo Linux)
Request Tracker is the best open source trouble ticket system. RT distributed under GNU GPL license.
1. Download the latest RT release.
wget http://download.bestpractical.com/pub/rt/release/rt.tar.gz
2. Extract the source tar -xzvf rt.tar.gz
3. Read the README file
4. Go to the extracted source folder.
cd /home/jini/downloads/rt-3.8.1
5. Install RT.
./configure –help
./configure –with-db-type=Pg –with-db-dba=postgres –with-db-database=rt_3_8_1
6. make install
if your system does not have required perl module install using perl cpan repos.
eg: install Apache DBI perl module perl -MCPAN -e’install “Apache::DBI”‘
7. Initialize the database.
make initialize-database
selected database is postrgresql and it is configured to listen via TCP port.
8. Change rt host name in /opt/rt3/etc/RT_SiteConfig.pm
Set( $rtname, ‘rt.yourdomain.com’);
9. install apache2 module mod_perl 2.xx version and enable it.
10. set up the vhost for rt.yourdomain.com ( gentoo style )
<IfDefine PERL>
<VirtualHost *:80>
ServerName rt.yourdomain.com
DocumentRoot /opt/rt3/share/html
ServerAdmin noc@yourdomain.com
AddDefaultCharset UTF-8
PerlRequire /opt/rt3/bin/webmux.pl
<Location />
SetHandler perl-script
PerlResponseHandler RT::Mason
</Location>
</VirtualHost>
</IfDefine>
10. Login to rt using default user and password.
user : root
password : password
11. create a queue and give permission to create ticket for group everyone.
eg: queue name support
12. install smtp server ( exim4, sendmail ) and configure to receive mails.
eg : support@yoursite.com
13. set up the mail gateway.
support: “|/opt/rt3/bin/rt-mailgate –queue support –action correspond –url http://rt.yoursite.com/”
support: “|/opt/rt3/bin/rt-mailgate –queue support –action comment –url http://rt.yoursite.com/”
14. If you want to set up the RT to fetch mail from a mailbox use fetch mail.
create fetch mail config file rt_fetch mail.conf with fallowing config
poll yourmailserver.com protocol pop3 username ’support’ password ‘mailpasswd’ smtpaddress localhost mda ‘/opt/rt3/bin/rt-mailgate –queue support –action correspond –url http://rt.yoursite.com’
15 . setup the cron to download the mails using fetchmail
*/5 * * * * /usr/bin/fetchmail -f /root/conf/rt_fetchmail.conf
85,1-8 Bot