problem with fetchmail startup
Hi to all,
I have installed CENTOS6. so... I have installed fetchmail with the command: yum install fetchmail And I have used this script for automatic startup: http://justin-hopkins.com/blog/2010/...pt-for-red-hat After I have created the configuration file /etc/fetchmailrc with this sample configuration: ---------------------------------- set daemon 60 set postmaster root set syslog set no bouncemail poll mail.myprovider.it with protocol POP3 user 'xxx@xxx.xx' password 'xxxxxx' smtphost 'myhostdomain' smtpname 'xx@xx.xx' etc....etc... ------------------------------ After all I execute this command: chmod 755 /etc/init.d/fetchmail chmod 710 /etc/fetchmailrc chkconfig fetchmail on Then...If i am logged with root permission and execute the command: service fetchmail start or /etc/init.d/fetchmail start work very well (In the console on my terminal I see only a WARNING: Running root is discouranged) But when I restart the machines don't work and in boot log messages I see [FAILED] but I don't know why. Someone have any suggest for help me? Tnx you very much |
I think in Cent OS, you have to give complete command rather than just - chkconfig fetchmail on. It works that way in fedora.
What is the output of - chkconfig |grep fetchmail |
the services is ok
the service is UP correcly
return this: ------------------------------------------------ fetchmail 0-off 1-off 2-on 3-on 4-on 5-on 6-off ------------------------------------------------- Now I see in the maillog file this string: lstat: /root/.fetchids: Permission denied So that I think that this is the problem.... p.s. I have changed the : with - because the forum drop this reply |
[SOLVED] fetchmail daemon
I have modifiy this line of init script:
from ---------------------------------------------- daemon /usr/bin/fetchmail -f /etc/fetchmailrc ----------------------------------------------- added a parameter -i ------------------------------------------------------------------- daemon /usr/bin/fetchmail -f /etc/fetchmailrc -i /var/log/.fetchids ------------------------------------------------------------------- and now work correctly! |
All times are GMT -5. The time now is 09:29 PM. |