Debian exim/dovecot email server with Saltstack – Dovecot IMAP

I use Dovecot as my IMAP/IMAPS server – it has always worked very reliably for me.

srv/salt/dovecot.sls

First, this file needs to include sslcerts.sls to make sure that the certificates are installed. Dovecot starts as root so it doesn’t need any special groups to get access to the key.

Once the packages are installed there is a bit of configuration to set up:

  • Configure the system to use Maildir format;
  • Get rid of any configuration to use mbox format;
  • Ensure that SSL is turned on and that the ssl_cert and ssl_key values are set correctly;
  • Ensure that SSL isn’t turned off.
Continue reading

Debian exim/dovecot email server with Saltstack – Exim

srv/salt/exim.sls

This YAML file is responsible for installing and configuring exim. First thing is to install SASL to handle authentication – exim needs access to the passwords and SASL is one of the standard ways to do this.

As discussed previously I’ve chosen to install the SSL certificates centrally in /etc/ssl; I’ve set up a group ssl-cert to allow access to these. Exim also needs to run under the sasl group to get access to the authentication daemon.

Debian uses a complex configuration system for exim. This makes it easy to configure with Saltstack – we can just add our configuration to the default and Debian will put it all together for us. However it must be noted that there appears to be a bug in Saltstack at present – it should be able to tell Debian to update the configuration when a file changes but at present I’m getting infinite recursion so that bit is commented out for now.

Continue reading

Debian exim/dovecot email server with Saltstack – Introduction

I’ve needed to update my email server for a while. This time I wanted to do the installation with Saltstack:

  • Saltstack is fun
  • It means I have an easy-to-read document about what is on the server and how it is installed.

Tools like Saltstack are not just for when you’ve got lots of servers. Having a simple set of files that show exactly what has been changed from default and why is invaluable.

Ok – there are a few parts to this system.

  • exim4 handles the SMTP part – incoming and outgoing email;
  • SpamAssassin will do the SPAM filtering;
  • dovecot will handle reading email via IMAP

Plus we need various security bits and pieces, user accounts and so on.

I’ll be running SaltStack in masterless mode – there isn’t any point in running a dedicated Salt Master server.

Continue reading

Thorn Me’n’U2 update

I’ve changed the handlebars to a cheap copy of the Jones loop bar:

On-One Geoff Handlebar,

Definitely much more comfortable for me. Also there are lots of alternative places to put my hands:

  • Near the ends for an upright position
  • Crossbar near the stem
  • On the loop at the front for a lower position

The friction brake control won’t go on as its bracket is designed to slide on over the end of the bars. I’ll work out a way round that once I’ve decided exactly where it needs to go.

Still love the bike, and so do the kids!

Thorn Me’n’U2 tandem triplet review

I’ve had the Me’n’U2 for a few weeks now, so time for a review.

As I’ve mentioned before one key reason for buying the bike was Robin Thorn’s huge enthusiasm for it. Another key reason was the first rule of boat owning – you’ve got to like the look of the thing regardless of how practical it is.

Overall the bike does the job very well. The kids love it – they feel secure and enjoy riding it. At this time of year (late November in the UK) it is hard to get opportunities to get the kids outside and exercised; this bike makes it easier. It can also replace car travel to some extent.

Continue reading

Arkana tulip table repair

We’ve got an Arkana tulip table. Nice thing – very second hand and a bit battered but practical and nice to look at.

However there isn’t much structure in it – the skin is the only thing holding it together and that is just plastic – no fibreglass reinforcement. This obviously works – the table has lasted around 50 years – but in the summer the base cracked. When this happens it isn’t obvious – there is a loud noise but the table remains mostly stable and it was a while before we found the crack.

Hmmm
Continue reading

Oar repair

The oars supplied with the Wanderer (Custard) are 6′ long. Much too short for good rowing but easy to stow and thus fast to access. As described elsewhere fast access turns out to be the most important requirement for oars – for fendering off and close manoeuvering when things go wrong.

I have another set of oars supplied with the green boat (Owl). These are 6′ 6″ but I haven’t used them much:

  • They are too long for the low gunnels and high thwart of Owl – it is hard to get the blades out of the water.
  • The handle of one is damaged.

However they are a very good fit into Custard and the extra 6″ will help with rowing. So a bit of tidying up was in order.

Continue reading