LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-25-2014, 04:02 AM   #1
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Rep: Reputation: Disabled
Red face 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?
 
Old 09-25-2014, 04:31 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,762

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
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
 
Old 09-25-2014, 04:34 AM   #3
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks. No error coming after renamed.

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


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
Running fetchmail as root dinakumar12 Linux - Server 4 04-28-2011 11:59 AM
how to set diff fetchmail settings for different users? deepugopi Linux - Server 0 10-24-2007 07:47 AM
I can't get fetchmail to work and don't have a fetchmailrc file! ChrisScott Linux - Newbie 6 11-19-2006 06:02 AM
Set up Fetchmail for use with MrPostman? shotokan Linux - Software 1 07-25-2006 08:41 PM
fetchmailrc problem headshot Linux - Newbie 2 08-03-2003 05:45 AM


All times are GMT -5. The time now is 04:11 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