OK here is how u setup fetchmail:
step 1.
Create a file in /root called .fetchmailrc
Command: vi /root/.fetchmailrc
Step 2
Edit the file by putting the following lines:
set daemon 120 {it will query for messages every 2 minutes}
set logfile /var/log/maillog
poll hq.mydomain.com proto pop3
user "someone" with pass "password" is "someone" here
user "someone1" with pass "password" is "someone1" here
{and so on..... till you define all your users}
Step 3.
Save the changes in the file
Step 4.
Edit /etc/rc.local
command: vi /etc/rc.local
put the following lines:
touch /var/lock/subsys/local
/usr/bin/fetchmail -f /root/.fetchmailrc
sleep 1
Step 5.
save the file
Step 6.
edit /etc/hosts
command: vi /etc/hosts
add the following:
xxx.xxx.xxx.xxx hq.mydomain.com mail {xxx.xxx.xxx.xxx is the primary server ip address}
Step 7.
Start fetchmail
Command: /usr/bin/fetchmail -f /root/.fetchmailrc
YOU ARE GOOD TO GO!!!!!!!!! GOOD LUCK. ANY PROBLEMS, DONT HESITATE!!! BYE!!!
|