LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-15-2009, 06:49 AM   #1
h34th
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
fetchmail from gmail will not retrieve local messages I send to myself


Hello all:

To use my gmail account from the CLI
I have installed fetchmail+procmail+mutt+msmtp.

All *seems* to be working ok, except for one thing:

if, from mutt (on my local machine), I send an email
(e.g. "mutt_1") from myself to myself, it goes to the
gmail server (verified: using browser, I see/read
"mutt_1" in my online gmail inbox); but, upon trying
to download messages (POP3 protocol), fetchmail
says that I have no messages (assuming that
"mutt_1" was the only message not already
POP3ed/purged from gmail). "mutt_1" remains
unpurged on the gmail server.

if "mutt_1" is one of many messages (messages
besides "mutt_1" are _not_ written by me) on the
gmail server, all messages besides "mutt_1" are
downloaded to my local mailspool. "mutt_1"
remains unpurged on the gmail server.

if I go online, and, from my online gmail interface,
write "gmail_1" from myself to myself, the message
is downloaded just fine.

I noted, exploring this weirdness, that a copy of
"mutt_1" _does_ exist in my local "sent" directory.
If I delete "mutt_1" from the local "sent" directory,
still I cannot download "mutt_1" from the server.

Here is the fetchmail log ("mutt_1" is the only
message on the server)




Code:
$fetchmail -v
fetchmail: 6.3.8 querying pop.gmail.com (protocol POP3) at Thu Jan 15 01:21:46 2009: poll started
Trying to connect to 209.85.201.111/995...connected.
fetchmail: Issuer Organization: Equifax
fetchmail: Unknown Issuer CommonName
fetchmail: Server CommonName: pop.gmail.com
fetchmail: pop.gmail.com key fingerprint: 44:A8:E9:2C:FB:A9:7E:6D:F9:DB:F3:62:B2:9E:F1:A9
fetchmail: POP3< +OK Gpop ready for requests from 98.234.123.148 30pf1724194wfd.41
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< USER
fetchmail: POP3< RESP-CODES
fetchmail: POP3< EXPIRE 0
fetchmail: POP3< LOGIN-DELAY 300
fetchmail: POP3< X-GOOGLE-VERHOEVEN
fetchmail: POP3< UIDL
fetchmail: POP3< .
fetchmail: POP3> USER ******************
fetchmail: POP3< +OK send PASS
fetchmail: POP3> PASS *
fetchmail: POP3< +OK Welcome.
fetchmail: POP3> STAT
fetchmail: POP3< +OK 0 0
fetchmail: No mail for ******************  at pop.gmail.com
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Farewell.
fetchmail: 6.3.8 querying pop.gmail.com (protocol POP3) at Thu Jan 15 01:21:47 2009: poll completed
fetchmail: normal termination, status 1
What gives? Does anyone know a solution? Is
there another forum that would be more appropriate?
(My apologies if the answer to that is "yes".)

--fieldsheath
 
Old 01-15-2009, 04:59 PM   #2
h34th
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Turns out my configs are all correct:
inability to download email generated
external to the gmail server with *@gmail.com
in the From: header is (somehow) rendered
irretrievable.
 
Old 01-17-2009, 04:46 AM   #3
kgagu
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by fieldsheath View Post
Turns out my configs are all correct:
inability to download email generated
external to the gmail server with *@gmail.com
in the From: header is (somehow) rendered
irretrievable.
How did you solve your problem. I am having exact same problem
I tried it with msmtp as well as with postfix.
 
Old 01-18-2009, 01:40 AM   #4
h34th
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kgagu View Post
How did you solve your problem. I am having exact same problem
I tried it with msmtp as well as with postfix.
I posted this question to the Gentoo Forum

http://forums.gentoo.org/viewtopic-p...8.html#5390618

The answer (or lack thereof) is there:

It's a gmail 'feature'. Any email that you generate locally that uses
'@gmail.com' in the From: field is not allowed to be retrieved via fetchmail.
It _can_ be manipulated--in every other way I could think of (forward, reply,
archive, etc)--from w/in gmail's web interface. Why gmail does this is unknown
(to me, anyway

Question: you mentioned that 'msmpt' didn't work; _my_ problem was with
_fetchmail_. In other words, my problem was with RETRIEVING mail. 'msmtp'
(to the best of my knowledge) is _only_ for SENDING mail. I, personally, have
msmtp successfully installed, configured, and _sending_ mail through gmail.
Are you sure our problems are identical?

. . . . . . . .

Another site I can recommend is http://www.andrews-corner.org/mutt.html

for a complete ssl/fetchmail/procmail/mutt/msmtp tutorial.
When I finally got everything working, I shared this post with 'andrew'. He
said, "It's a gmail 'feature'." Nothing is wrong with my mail setup.

If, you are, indeed, using mutt, rest assured that there are (many) ways to
keep copies of outgoing mail (so that you don't _need_ to download these
marooned messages in the first place): the "record" folder designates a default
location where copies of all outgoing mail are saved (and that's just the
_default_ method! So, then, given that mutt was already keeping local copies
of messages that could not retrieve from the server, and these were just test
messages from myself, to myself, I am calling it good, and calling it done.

Hope this helps.
 
  


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
icedove - retrieve ALL messages verbose Linux - Software 0 11-01-2007 07:00 PM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
Gmail on Home Linux Box using Postfix and Fetchmail mchirico Linux - News 1 05-11-2005 05:37 PM
Fetchmail with Gmail RySk8er30 Linux - Software 1 04-16-2005 02:37 PM
Fetchmail can connect but not retrieve broxtor Linux - Security 4 08-23-2004 12:47 PM


All times are GMT -5. The time now is 01:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration