Here describe fetchmail utility setup in centos and also describe setup of mail retrieval from mail box in Request Tracker(RT.
1. Install fetchmail utility(EPEL or rpmforge require)
To install fetchmail on CentOS and Fedora systems, issue the following command:
yum install fetchmail
To install fetchmail on Debian and Ubuntu systems, issue the following command:
apt-get update apt-get upgrade --show-upgraded apt-get install fetchmail
To install fetchmail on Arch Linux systems, issue the following command:
pacman -S fetchmail
2. Create or Edit fetchmailrc file
vim /usr/rt/etc/fetchmailrc # Location should be change any where(default /etc/). #Global Settings set daemon [seconds] set postmaster "squire" set logfile "~/logs/fetchmail.log" set syslog #User mail box setting poll imap.secureserver.net protocol IMAP; user "*****@gmail.com" there with password "somepassword" nofetchall keep ssl mda "/usr/local/rt/bin/rt-mailgate --url http://10.x.x.x/rt --queue 'General' --action correspond" # here mda should be change as per the application,fetchmail from gmail to assign RT mda.
Set permission
# chmod 600 /etc/.fetchmailrc
3.Running the fetchmail utility
# fetchmail -f /usr/rt/etc/fetchmailrc
Enjoy :)
0 Comments