[Dovecot] fetchmail on demand

Graeme Vetterlein graeme at vetterlein.com
Sat May 31 19:46:38 EEST 2008


I hoping this is an RTFM ... and somebody can point me at the correct 
'FM' :-)

I've just spent a while setting my new Debian , allways-on box in what I 
suspect is a generally useful configuration.

I have fetchmail(1) collect mail from many mailboxes via pop3.

I store these mails in different mboxs according to rules in procmail(1)

I then offer these out to the household via imap in dovecot(1) .


I have fetchmail(1) set to poll the ISPs every 5 minutes, this seems to 
work fine, but there are two issues:

    1: The constant polling keeps the disk spinning for no good reason 
(most of the time)
    2: If I check my mail via a mail reader using imap to the local 
mboxes ...there could be mail sitting on the ISP servers I don't see 
(for 5 mins)

Now what would be much nicer, would simply be to have dovecot(1)  issue 
the fetchmail(1) command whenever it it got an imap request.
I general what I guess I would like is:

    "When a request comes in (via imap) fork off a command who's name is 
given in the conf file.  ... imap_pre_cmd="xxx"

--

Graeme



More information about the dovecot mailing list