> > How exactly are you running fetchmail?
> > Have you set a fetchlimit, and what happens if it is exceeded?
> > How do you control when each of multiple mailboxes (assuming you have
> > more than 1) gets polled?
> > 
> > Volker

Okay. I've just done a little experimenting with fetchlimit. I added the
following line to /etc/sysconfig/fetchmailrc;

set logfile /var/log/fetchmail

I then modified the first user like this;

user 'user1' pass 'password1' is rob fetchlimit 3

# /etc/init.d/fetchmail restart ; tail -f /var/log/fetchmail

Stopping fetchmail:                                        [  OK  ]
Starting fetchmail:                                        [  OK  ]

fetchmail: starting fetchmail 6.2.0 daemon
fetchmail: 7 messages for mowgli at pop.clear.net.nz (19325 octets).
fetchmail: reading message [EMAIL PROTECTED]:1 of 7 (2654 octets)
fetchmail: SMTP error: 501 Bad address syntax
fetchmail:  not flushed
fetchmail: reading message [EMAIL PROTECTED]:2 of 7 (3220 octets)
fetchmail: SMTP error: 501 Bad address syntax
fetchmail:  not flushed
fetchmail: reading message [EMAIL PROTECTED]:3 of 7 (3345 octets)
fetchmail: SMTP error: 501 Bad address syntax
fetchmail:  not flushed
fetchmail: fetchlimit 3 reached; 4 messages left on server
pop.clear.net.nz account mowgli
fetchmail: Query status=13 (MAXFETCH)

I checked /var/log/maillog and found that the messages did indeed have
screwed up addresses and postfix was rejecting them. I logged into 
clearnet webmail and found that the first four messages were spam
received ages ago but never flushed. Fetchmail must have been ignoring
these for a while. I deleted them through webmail and fetchmail
proceeded to download the remaining messages.

I guess this is a trap for using fetchlimit. I'm going to write a script
to check the log periodically (cron) and email me whenever fetchmail is
not flushing messages.

Reply via email to