Fetchmail cannot start when i restart my server
Hi All,
I recently setup fetchmail on my server and its been running awesome! However, I noticed yesterday when the machine switched off due to a power cut, that fetchmail is having an error and will not start. Here is the error: couldn't time-check the run-control file fetchmail: lstat: /root/.fetchmailrc: Permission denied However, when i start it manually thus: /usr/bin/fetchmail -f /root/.fetchmailrc, it works! Any ideas? Regards, BJ |
Quote:
Maybe you can take a look there and see what line is causing this problem and debug it |
Thanks for the reply deadeyes. however, i do not see anything to do with fetchmail in /etc/init.d directory
Regards, BJ |
Quote:
|
I am using CENTOS 5.3
Regards, BJ |
Quote:
Based on error output it looks like issue is related with user/group permission, could you pls post '#ls -lrth' on fetchmailrc file. |
Quote:
|
I am a bit new to linux. what am i suppose to do with the above? sorry to be a bother. please may you explain a bit
Regards, BJ |
move fetchmailrc from /root to /etc folder
Quote:
in case if it is not owned by system user " mail" , you may execute #chown mail:mail <path to fecthmailrc file> Please give it a try -Akash |
Probably fetchmail runs not as a root user.
So the config should be /etc/fetchmailrc and should have user and group mail. THen it will be started. Otherwhise CentOS will try to start it. But it will fail with permission denied. It probably runs if you start it yourself, when you are root. |
Thanks very much guys. this did the trick! i just changed the location of my /root/.fetchmailrc file to /etc/fetchmailrc and its working! thanks for the help.
Regards, BJ |
Quote:
|
All times are GMT -5. The time now is 04:32 AM. |