LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fetchmail - no mailservers set up -- perhaps /root/.fetchmailrc is missing? (https://www.linuxquestions.org/questions/linux-newbie-8/fetchmail-no-mailservers-set-up-perhaps-root-fetchmailrc-is-missing-4175520013/)

dicky238hk 09-25-2014 04:02 AM

fetchmail - no mailservers set up -- perhaps /root/.fetchmailrc is missing?
 
Hi Experts,

I am using root to install and test fetchmail. I followed the guidance that I need to create a file "fetchmailrc" and I created in root folder (computer --> root). I can even use "cat fetchmailrc" when I start terminal to view the content.

But when perform "fetchmail -v", it returns:

fetchmail: WARNING: Running as root is discouraged.
This is fetchmail release 6.3.26+NLS.

Copyright (C) 2002, 2003 Eric S. Raymond
Copyright (C) 2004, Matthias Andree, Eric S. Raymond,
Robert M. Funk, Graham Wilson
Copyright (C) 2005 - 2012 Sunil Shetye
Copyright (C) 2005 - 2013 Matthias Andree
Fetchmail comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For details, please see the file COPYING in the source or documentation directory.

Fallback MDA: (none)
Linux <mydevice> 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:05:58 UTC 2014 x86_64 x85_64 x86_74 GNU/Linux
Taking options from command line
No mailservers set up -- perhaps /root/.fetchmailrc is missing?


(P.S. my fetchmailrc contains:-

set daemon 600
set no bouncemail
set no spambounce
set logfile #HOME/.fetchmailrc.log

pop pop.gmail.com
protocol POP3
service 995
user "mygmaillogin"
pass "mygmailpwd"
is "localusername" here
keep
fetchall
ssl

(Note: ssl is working fine)

What's wrong now?

bathory 09-25-2014 04:31 AM

Quote:

(P.S. my fetchmailrc contains:-
<snip>
You must rename fetchmailrc to .fetchmailrc (mind the leading dot) because fetchmail looks for the (hidden) file .fetchmailrc in user's homedir

Regards

dicky238hk 09-25-2014 04:34 AM

Thanks. No error coming after renamed.

However still have other issue, let me check first before posting to ask.


All times are GMT -5. The time now is 08:10 PM.