查看文章 |
一、安装 apt-get install request-tracker3.6 二、Configuring Request Tracker vim /etc/request-tracker3.6/RT_ # RT_SiteConfig.pm # THE BASICS: Set($rtname, ’support.example.org’); Set($CorrespondAddress , ’support@example.org’); Set($Timezone , ‘Europe/Brussels’); # obviously choose what suits you # THE DATABASE: Set($DatabaseType, ‘mysql’); # e.g. Pg or mysql # These are the settings we used above when creating the RT database, Set($DatabaseUser , ‘rtuser’); # THE WEBSERVER: Set($WebPath , “/rt”); 三、Mysql Database Configuration mysql -u root -p mysql> GRANT ALL PRIVILEGES ON rtdb.* TO ‘rtuser’@'localhost’ IDENTIFIED BY ‘password’; FLUSH PRIVILEGES; QUIT 创建rtuser用户并授权 (从上可使用phpmyadmin)
四、Setup RT database 运行命令: /usr/sbin/rt-setup-database-3. 提示输入密码,输入在RT_SiteConfig. Password: Enable mod rewrite apt-get install libapache2-mod-perl2 Paste at the end of the file just before the closing virtualhost tag Include “/etc/request-tracker3.6/ /etc/init.d/apache2 restart Finally you need to login to rt and grant CreateTicket and ReplyToTicket to the group Everyone. Login as user “root” Configuring Fetchmail Setting up fetchmail Edit /etc/default/fetchmail # vim /etc/fetchmailrc Set START_DAEMON=yes save and exit the file Prepare log files # touch /var/log/fetchmail.log # chown fetchmail /var/log/fetchmail.log Edit /etc/fetchmailrc set daemon 60 # support@example.org # support-comment@example.org The mda line tells fetchmail what to do upon reception of a new email. You can select the queue in which the mail should be injected, the action can either be “correspond” for customer correspondances while “comment” is for internal comments on a ticket. Restart Fetchmail # /etc/init.d/fetchmail restart Logs go in /var/log/fetchmail.log You can now try to send an email to support@example.org, the mail would be retrieved by fetchmail and injected into RT. Configuration tips 1. You should set up an “Administrative CC” on the support queue. You’ll get an email notice whenever a new ticket is created or a reply from the customer has been received. 2. I noticed that if you create a ticket from the web interface of RT and add an email address in the CC field, the email specified in the CC will not get the email at the creation of the ticket, only on response made to it. (while AdminCC’s are notified) You must create a new scrip in Configuration > Global > Scrips with the following properties : |