LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2011, 08:00 AM   #1
grydan
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
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
 
Old 09-14-2011, 02:21 PM   #2
gorav
LQ Newbie
 
Registered: Sep 2007
Posts: 11

Rep: Reputation: 0
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
 
Old 09-15-2011, 02:42 AM   #3
grydan
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
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

Last edited by grydan; 09-15-2011 at 02:45 AM.
 
Old 09-15-2011, 02:58 AM   #4
grydan
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
[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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fetchmail problem evaristegalois Linux - Newbie 2 05-22-2010 02:12 PM
fetchmail problem phantom_cyph Linux - Software 1 12-07-2008 08:40 PM
Fetchmail problem johnnyv Linux - Software 2 05-23-2006 09:10 PM
How to put fetchmail in startup ?? jacquedp Linux - Software 4 03-10-2005 10:58 AM
Problem with fetchmail shaggystyle Linux - Networking 3 03-25-2004 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration