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

Peter Chiochetti pch at myzel.net
Sat Oct 18 22:32:12 UTC 2014


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…

-- 
peter


More information about the dovecot mailing list