An IMAP email poller written in go to send emails into a Rabbit MQ message queue.
When started, email poller sets the IMAP client on an Idle stance (IMAP Protocol feature), waiting for notifications. When the mailbox monitoring receives new incoming messages, it serializes them into raw datas and publishes them to a rabbit MQ message queue.
The Poller is based on this go package IMAP client.
- First, you need to have two configurated servers (both SMTP and IMAP). I would suggest you Postfix and dovecot which are the most common used servers for this kind of setup.
- Then get the package:
go get github.com/emgenio/email-poller
- Finally run the command:
email-poller
email-poller -h
Usage of email-poller:
-config="./config.yaml": path to the configuration file.
MIT