You are not logged in.

#1 2007-05-21 16:42:09

nicholai
Member
Registered: 2005-04-26
Posts: 51

gmail + pop + fdm/getmail problem

Hi All,

After the 'What mail client do you use' thread I've been trying to get my old mutt configuration back and running. After I changed to gmail from my former, beloved IMAP server I haven't been able to fetch my mails to maildir properly.

Problem is that when I configure gmail as:

1) Enable POP for all mail (even mail that's already been downloaded): getmail and fdm fetches all the mails multiple times so I'll end up with multiple of the same email.

2) Enable POP only for mail that arrives from now on: Not all mails are fetched to my local computer. I think it's something like if it's a reply to a conversation it doesn't flag like a new mail and doesn't get fetched. Sometimes even new mails aren't fetched for no reason.

Same problem with fetchmail/getmail/fdm

How do you people fetch gmail mails through pop3? Am I the only one experiencing these problems?

Thanks in advance,

Nic


Desktop :Athlon64       2.2 GHz
Laptop   :Toshiba R100    1GHz

Offline

#2 2007-05-21 17:23:55

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: gmail + pop + fdm/getmail problem

This is a well-known problem, if you look at the getmail/fdm documentation they simply say that gmail is "broken", as long as it does not follow the POP3 protocol specifications.
Personally I go for method 1) and filtrate the duplicate mails with a procmail rule (I use getmail+procmail) resorting to a cache created and checked by formail (included in the procmail package). Fdm's inability to do something similar (also interacting with formail) is one of the reasons why I do not deploy fdm.


Mortuus in anima, curam gero cutis

Offline

#3 2007-05-23 06:06:30

linderox
Member
Registered: 2007-04-23
Posts: 48

Re: gmail + pop + fdm/getmail problem

I have a problem with a qmail
My MTA server every day is sending for me letter with different adresses. I think that is spam and i'm

Hi. This is the qmail-send program at local1.example.com.
I tried to deliver a bounce message to this address, but the bounce bounced!

<sec@fcradio.net>:
Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)
I'm not going to try again; this message has been in the queue too long.

i found this one on the google and i found one program SPAMDYKE

#!/bin/sh
exec 2%26gt;%261
exec envuidgid qmaild softlimit -d 30000000 tcpserver -x /var/qmail/tcp.smtp.cdb \ 
-p -DRHl mail.myserver.ru 0.0.0.0 25 /var/qmail/bin/qmail-smtpd \ 
mail.myserver.ru /usr/local/bin/checkpassword /usr/bin/true 2%26gt;%261

this i should add to the /service/qmail-smtpd/run,but when i did this my server stoped work...

   /usr/bin/spamdyke -l -d /var/qmail/control/rcpthosts -a 5 -T 60 \
   -g /home/vpopmail/graylist \
   -m 300 -M 1814400 \
   -u http://proxy.org/tor_blacklist.txt  \
   -s /home/vpopmail/blacklist_senders    \
   -S /home/vpopmail/blacklist_recipients \
   -k /home/vpopmail/blacklist_keywords \
   -B /home/vpopmail/blacklist_ip \
   -b /home/vpopmail/blacklist_rdns.d
   -rRc -w /home/vpopmail/whitelist_rdns \
   -W /home/vpopmail/whitelist_ip -e 5 \
   -x zombie.dnsbl.sorbs.net -x dul.dnsbl.sorbs.net -x bogons.cymru.com \
   --reject-missing-sender-mx --smtp-auth-command-encryption "/home/vpopmail/bin/vchkpw /bin/true"\
   --hostname ${LOCAL} \
   --access-file /etc/tcp.smtp \

this is my /service/qmail-smtpd/run

#!/bin/bash
SERVICE=smtp
source /var/qmail/bin/qmail-config-system && \
exec /usr/bin/softlimit ${SOFTLIMIT_OPTS} \
${QMAIL_TCPSERVER_PRE} \
/usr/bin/tcpserver ${TCPSERVER_OPTS} -x ${TCPSERVER_RULESCDB} \
-c ${MAXCONN} -u ${QMAILDUID} -g ${NOFILESGID} \
${TCPSERVER_HOST} ${TCPSERVER_PORT} \
${QMAIL_SMTP_PRE}
/var/qmail/bin/qmail-${SERVICE}d ${QMAIL_SMTP_POST} \
2>&1

Last edited by linderox (2007-05-23 06:12:29)

Offline

#4 2007-05-28 11:34:47

nicholai
Member
Registered: 2005-04-26
Posts: 51

Re: gmail + pop + fdm/getmail problem

linderox, I'm afraid I have no clue. You might want to start a new thread.

Regarding the getmail/gmail problem. I noticed somewhere in the Gmail help section regarding 'lost mail' that it was important NOT to configure your client/fetcher to leave the messages on the POP server (pop.gmail.com).

I'm not really sure if it's permanent, but since I added
delete=True
to my getmailrc I'll mails I've recieved has been fetched. Before it was close to none.

Any thoughts on this?

Cheers,

Nic


Desktop :Athlon64       2.2 GHz
Laptop   :Toshiba R100    1GHz

Offline

#5 2007-05-28 21:09:05

bones
Member
From: Brisbane
Registered: 2006-03-24
Posts: 322
Website

Re: gmail + pop + fdm/getmail problem

I just set my system to fetch mail from multible gmail accounts with no problems. Did you also select on the gmail settings site to delete mail once it was delivered. Not sure what will happen if you select to achive it instead as I delete all mail and keep the ones I want achived on my computer. By the way I'm using kmail so it may be different with your mail client.


"When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return."

Offline

#6 2007-05-29 00:06:38

nicholai
Member
Registered: 2005-04-26
Posts: 51

Re: gmail + pop + fdm/getmail problem

Looks like my problem wasn't solved after all.

Bones: I would prefer to keep my mail on my gmail account as well since I use the web interface when I'm away from my linux boxes. I'll try and select Archive instead and see if that helps.

The problem is that I'm not able to fetch mail (with getmail or fdm) if the mails have arrived more than a sudden amount of time ago. Not really sure how long. Let me explain.

If I send myself an email from another mail account and run getmail immediately after, the mail gets fetched and all is well. Problem is when I want to fetch mail that as more than X minutes old, it simply claims there are no new mail even though I have several new mails in my inbox. Weird, eh?

One thing I noticed on my countless checks on my gmail settings page; Under the forwarding and pop tab I have:

1. Status: POP is enabled for all mail that has arrived since _current time_

_current time_ meaning it's always the time when I click the settings page. If I click the page an hour later it will be _current time_ + 1 hour. (Do I make myself clear at all or is it complete nonsense).

Well, are your gmail acting the same way? Otherwise it might explain the problem I have with fetching 'older' mail.

Cheers all,

Nic


Desktop :Athlon64       2.2 GHz
Laptop   :Toshiba R100    1GHz

Offline

Board footer

Powered by FluxBB