Mailserver with Postfix/Dovecot

15 posts
by wtrdk » Tue Jun 26, 2012 6:41 am
Hi all,

I'd like to set up a mailserver for personal use. I've done this before on Ubuntu server, so I have a little experience.
When I want to install Postfix not all packages are available. When I look at sources.list I only see one repository. Are there any additional repositories I can use for Debian Wheezy which contain Postfix/Dovecot?
Thanks in advance!
Posts: 2
Joined: Tue Jun 26, 2012 6:29 am
by symes » Tue Jun 26, 2012 7:36 am
I want to run a mail server as well, haven't had enough time with my pi to sort it yet, having yet to find a complete install set.

I found a post in which a pi was running Citadel, but the repository is missing a couple of files and won't install completely - just don't have the time now to find them or install alternatives...

I think this application (mail server with webmail access) is an ideal subject for a pi so I hope it can be sorted soon.
Posts: 23
Joined: Sat Aug 27, 2011 7:17 am
by Goss1982 » Mon Jul 23, 2012 6:01 pm
Hi guys

My friend and I, managed to get an email server working on Debian using the following setup guides;
Bothh of these worked perfectly, unfortunately having just moved to Raspbian the dovecot config setup has changed and we are currently having issues.
If you are on the original debian image, I suggest the above. If you on Raspbian, any help would be required sorting the SSL config out!!
Posts: 13
Joined: Mon Jul 16, 2012 4:52 pm
by dove » Sat Jul 28, 2012 8:30 pm
I just started with the dovecut based solution on the Debian 6 image.
The installation is not finished yet but I'll post when I make progress.
Posts: 3
Joined: Sat Jul 28, 2012 8:26 pm
by Goss1982 » Fri Aug 17, 2012 5:18 pm
Anyone had any joy with dovecot. With the old debian image it ran version 1.x without too much bother. Since moving to the rapbian image dovecot 2.x installs instead and can't get the thing to authenticate at all let alone with SSL.

If anyone has this working, it would be great to hear.

Have managed a botch togther using courier, but again no ssl for some reason. Suspect a postfix config issue but cant see it???
Posts: 13
Joined: Mon Jul 16, 2012 4:52 pm
by dove » Fri Aug 24, 2012 9:12 am
No joy yet. That's not dovecots fault. The HD I want to use has not been delivered yet.
Posts: 3
Joined: Sat Jul 28, 2012 8:26 pm
by Lirex » Fri Aug 24, 2012 7:12 pm
my mailserver with postfix, dovecot, roundcube and fetchmail runs perfectly on my raspberry pi.
only managesieve fails momentarily. :roll: the system is raspbian.
Posts: 16
Joined: Sat Jul 14, 2012 2:18 pm
by Elect » Sat Aug 25, 2012 8:52 am
Postfix is easily installable, take this as a starter ... pberry-pi/
Posts: 11
Joined: Tue Aug 07, 2012 7:48 am
Location: Netherlands
by nicknml » Mon Aug 27, 2012 2:06 am
I found this guide useful in spite of it being for CentOS:
Posts: 192
Joined: Thu Mar 15, 2012 8:44 pm
by dove » Sat Sep 01, 2012 7:23 pm
So finally my recipe:
I set up the dovecot in Debian 6.0 by executing the following three lines:

sudo bash
apt-get install dovecot-imapd dovecot-pop3d
echo "mail_location = maildir:/home/%u/Maildir" > /etc/dovecot/conf.d/30-mailLoc.conf

Well, I needed more lines to find out that what I needed were those.

I hardened security slightly by setting up a new ssh-key:
sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server
and changing pis password.

For a quick test I can recommend the small example at the end of:
dovecot -n prints the actual configuration.

Don't worry about activating encrypted connections. By default both SSL and non SSL versions are activated.

Hope this helps!
Posts: 3
Joined: Sat Jul 28, 2012 8:26 pm
by nicknml » Mon Sep 17, 2012 9:35 pm
Is there an easy way to get sasl to work? I've tried to get it to work, but no luck. Are there any special packages that need to be installed?
Posts: 192
Joined: Thu Mar 15, 2012 8:44 pm
by nicknml » Tue Sep 18, 2012 10:57 am
I got it working, turns out it was a stupid simple mistake that I was making.
Posts: 192
Joined: Thu Mar 15, 2012 8:44 pm
by gondman » Mon Apr 22, 2013 9:03 am
@Lirex or @All:

I run Postfix Dovecot and Fetchmail on Ubuntu. I wanted to install it on a PI but i have some problems. On Ubuntu i installed the package "dovecot-postfix" which integrated dovecot sasl in postfix. On the pi these package are not available. Do you configured sasl for Dovecot and Postfix manually? How does it works?
Posts: 8
Joined: Sun Dec 30, 2012 10:05 am
by linuxcampaign » Mon May 27, 2013 1:23 pm
This tutorial should help setting up an IMAP mail server with dovecot, postfix and fetchmail on Raspberry Pi:
Posts: 2
Joined: Fri May 24, 2013 10:27 pm
by dylantje » Mon Aug 12, 2013 5:14 pm

Sorry, for the off topic

Is there anyone who has a web interface for Postfix.

There are several, but I can not get working.

I hope someone can help me. Further

Thank you.

Posts: 82
Joined: Sun Mar 03, 2013 9:51 pm