Fwd: Re: Wiki advice on running getmail on INBOX access - how does that work?

c128 mail c128.mail at gmail.com
Sat Oct 18 22:46:33 UTC 2014

Thanks - not so off-topic at all, just looking for a good solution 
really to move away from using crontab to pull every 2 minutes.

I'm currently using getmail to pull from about 10 accounts - haven't 
used fetchmail for quite some time, but that's definitely something to 
look into.

Semi-related...I know there's also this:


...which does have a getmail script.

I'm sure it's fine, but I'm semi-put off by the fact that it's not a 
dovecot-distributed plugin, so I wonder how it fares with upgrades etc.

Still kind of wondering whether anyone has the incrontab approach 
working on a system though...

On 18/10/14 23:32, Peter Chiochetti wrote:
> Maybe off-topic, still: (If your remote server is imap,) why not use
> fetchmail?
> Here's a mangled/working /etc/fetchmailrc for an SSL imap account:
>> poll smtp.provider.net protocol IMAP port 993
>>    user 'somone at somewhere.com' is 'someone' here
>>    password 'MyPass123'
>>    folder 'INBOX'
>>    fetchall
>>    idle
>>    ssl
>> mda "HOME=/home/%T /usr/bin/sudo -u %T /usr/lib/dovecot/deliver"
>> ## cf. /etc/sudoers.d/fetchmail-deliver
>> #fetchmail ALL=(ALL) NOPASSWD:/usr/lib/dovecot/deliver
> This uses imap idle over there and fetches new mail, as it arrives.
> Local users will be notified of new mail without looking explicitly…

More information about the dovecot mailing list