Using IMAP with dovecot in Wikitech labs instance

While working with the VERP project, we thought of installing a dovecot IMAP environment and alter the local_delivery to a Maildir in $home/Maildir according to
* Set up and open IMAP in labs instance
* First install dovecot using the commands
sudo apt-get install dovecot-imapd dovecot-pop3d
and edit etc/dovecot/dovecot.conf: to add
protocols = imap imaps
Configure Mailboxes
mail_location = maildir:~/Maildir
and now, if you are using exim4 as your mailer
go to /etc/exim4/exim4.conf
and edit the local_delvier part to [2]:

driver = appendfile
directory = $home/Maildir

Now you have done with dovecot, and exim — time to open up the IMAP port 143
in terminal, give:
# sudo iptables -A INPUT -p tcp --dport 143 -j ACCEPT
and give reboot to reboot the system
now, to test things are working, give
# telnet localhost imap
if you see a connection refused, you will have to add the IMAP port (143) to the Wikitech-I labs Manage Security Groups.
now, again reboot, if necessary -- and do # telnet localhost imap
and you will recieve the telnet shell šŸ™‚ Horray
* References:

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s