I am new to setting up a mail server, and everywhere I look I get either outdated or really complex instructions on setting up a mail server.
Is there any simple methods on installing an IMAP mail server?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityYou can use Dovecot for mail server
Install the packages
sudo apt-get install dovecot-imapd dovecot-pop3d
Configure the protocol you need to be used by appending the protocol in the file /etc/dovecot/dovecot.conf
:
protocols = pop3 pop3s imap imaps
Choose the mailbox you would like to use. Dovecot supports maildir
and mbox
formats. Edit the file /etc/dovecot/dovecot.conf
and change the line
mail_location = maildir:~/Maildir # (for maildir)
or
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u # (for mbox)
Restart the service
sudo /etc/init.d/dovecot restart
Use telnet to check that dovecot is working properly.
telnet localhost imap
That's it.
PS. Also make sure your firewall is configured properly to accept connections on the appropriate ports.
dpkg-reconfigure dovecot-imap
doesn't work -- you'll have to do apt-get --purge remove dovecot-core dovecot-imapd dovecot-pop3d
to remove and start over.
mypostfixadmin
. So long that you lock it down, it's pretty nice and fancy to have.