I'd booked a few days off work for a trip to Germany that Mian was planning, but then he crashed and couldn't afford to go. I've made a few attempts at getting to Scotland in the past, each scuppered by other plans being made, and I've been hankering to have a go at a trip on my own, so it seemed sensible to take the five days to get to John O'Groats and back.

A quick fiddle with Furkot suggested that I had something like 1700 miles to cover in five days, which I rounded to 300 miles per day almost immediately before deciding that 300 miles was a reasonable day's riding. My rear tyre was awfully squared off so the obvious solution seemed to be blat it up the M1 and M6 past all the lovely places I've already seen, then get a new tyre fitted at or near the border. And I might as well do that after work on the Thursday (I'd booked the Friday, Monday and Tuesday off).


So I booked the bike in for a new tyre at a Triumph shop in Carlisle on Friday morning and set about finding somewhere cheap and not-too-bad to stay. I ended up booking at the Travelodge at Kendal which wasn't really success.

Thursday - London to Kendal

Well, this was the easy bit. I've long had a strong aversion to motorways on the grounds that I'm riding a motorbike and not driving a lorry, but a couple of trips (most notably leaving work one evening for Harwich and being in Cologne by about 11 the next day) have convinced me to give them a go.

So I worked from home, left at half four, jumped on the M1 and then the M6 and, aside from a brief error onto the M42 and A5, just made progress and dispatched with 250 miles in quite pleasant weather ahead of most of the traffic without once getting distracted by all the fantastic places I was zipping past.


Friday - Kendal to Fort William

Breakfast was at Tebay services (the farm shop one) where I also bought the bits required to fashion a battery charger for my camera since I'd neither charged the camera nor brought a working charger for it. I paused again at Carlisle to get a new tyre and fawn over the new Tigers, before cracking on up through Gretna Green to Glasgow

I'd noticed by now that I'd forgotten to pack a number of things - I had no fuel bottle for my stove, no chain lube at all and while I'd brought a pot to cook in I had no cup to drink out of and no fork or spoon to eat with, so I paused in Glasgow a little longer than I'd intended to.

Heading out of Glasgow past Dumbarton, up alongside Loch Lomond and over Glen Coe was a fantastic suggestion of what was to come from Scotland:


That last photo's from when I stopped because the temperature gague had been flashing at me in that way that suggested that something's gone awfully wrong. It's a weird place for an engine to overheat - a fast, empty road in a country not really known for its high temperatures. I briefly realised I'd never actually fixed the fan after it broke in Germany last year, and then actually had a look:


That's not really supposed to do that. A handy local stopped as I was wondering what on earth to bodge that together with - I think he was on an air-cooled BMW but I'll forgive him.

He said that the petrol station on the way into Glen Coe was about 5 miles away and stocked "basically everything". I somewhat pointlessly filled the coolant system up out of my camelbak (another good reason to only ever have water in there) and cracked on past some more lovely scenery to fix it.

During the application of Magic Network Rail Tape (I think that's its technical name) and some jubilee clips I heard the familiar sound of an approaching BMW flat twin. Fortunately, this was a water-cooled one so the rider couldn't gloat, but he did advise me that the ferry I was hoping to catch first thing in the morning from Mallaig (about an hour and a half away still) to Skye was likely full and that I might end up waiting for hours if I turned up without a crossing booked.

He left on his way once I'd persuaded him that I thought the thing was fixed - I decided I'd see how far I could get towards Mallaig and book the ferry when I was reasonably convinced I'd be able to get onto it. After several scares that were just reminders of how carefully this engine needs its coolant bleeding, as I reached Fort William I decided I'd definitely be able to make the ferry in the morning and I ought to book a ticket.

The earliest available crossing was at 16:20, so I found a campsite nearby instead.


Saturday - Fort William to Thurso

I woke up in the morning and reasoned that the current bodge had been 'fine' for the couple of hours it took to get to the campsite and it didn't really look like it had leaked overnight so it was probably fixed, and headed across to Applecross.

Regardless of how much better it might have been to go across Skye (and, really, the only draw for me had been the ferry) I didn't feel I'd missed much by just cracking on down the main road.

The Applecross road is one that I've heard much mention of but never really looked into - I didn't really know what to expect. The road to the beginning (in Tornapress) is delightful. There's a singletrack railway alongside it with a lovely lake the other side, and the odd tunnel.

But delightful as that is, the Applecross pass is just a wonderful mountain pass. Almost entirely singletrack with the odd passing place and not a lot of crash barrier, generally poorly surfaced and set in some wonderfully distracting scenery:

Applecross itself is a nice seaside village, providing both a good car park in which to deal with the failure of last night's bodge and a nice community-owned petrol pump:

Since I'd just rebodged the hose again (and the hole was bigger this time) I thought it would be best to head straight for a town to get some better supplies for this. It also seemed sensible to head fairly directly for the campsite (at Thurso) with a view to getting there early enough to effect a proper repair and then leave it overnight for any glue to set.

This was annoying - in Applecross I was about halfway up the West coast of Scotland, and Thurso is essentially the East end of the North coast. The bit of Scotland that I really wanted to see was the North-East corner, and here I was planning to skirt right round it.

I sighed and thought I'd just take the most major road I could find to the next town that was remotely on the way

Ah well, I'll go back over the Applecross pass if I must :)

I pulled into a Tesco in Dingwall in order to top up on Cup-a-Soup sachets, but as I parked up I heard the familiar sound of spraying water and looked down to see my front tyre getting another soaking out of the now slightly-displaced Applecross bodge. I headed into town and found a hardware shop.

The original bodge had been Network Rail Magic Tape and jubilee clips, to which I later added duct tape. The second had been thicker self-amalgamating tape and duct tape (and jubilee clips) but this time I sought advice from 'Papa Greenbury' who suggested a glue to really fill the gaps. I Uhu-glued some duct tape in place, then added some circlips and thought I'd better leave that to set so went off in search of a Wispa.

By now, this had gone from being a fairly entertaining problem that's just adding some jeopardy and interest to an otherwise run-of-the-mill trip to something a bit annoying. I was stopping frequently to top up the water and couldn't really claim to believe my own lie that all I was doing was replacing air that had bled out. Also, all that glorious countryside was just over to my left as I 'progressed' up a main road.

There's basically no photos from the next five hours - I just smashed it up the A9 trying to get to Thurso before it all blew up.

As I pulled into Brora (about 50 miles short of Thurso) the overheating light came on again and I coasted into a petrol station. Here I noticed that the radiator was cold, so the system was empty again; I set about filling it up and told myself that if I properly bled it as well, then I'd probably get most of the way to Thurso on that.

While I was doing that, a man on a Fireblade pulled up into the petrol station and asked if I needed a hand. This had happened a lot by now, and it's really nice to have all these offers of help. But it's also a bit annoying how few people (myself included) happen to carry around with them all the tools to repair a steel coolant pipe.

I tried to dismiss this offer, too - "yeah, there's a hole in a steel coolant pipe, I'm just topping it up and I'll be fine" but he wasn't so easily dissuaded - "you wont get anywhere on that. My house is 11 miles up the road, and I'm sure my son will be able to sort that out".

It seemed a daft offer to refuse, so I headed up there. A few hours later I'd been introduced to three or four generations of the family, all of whom had multiple bikes in various places and, perhaps more importantly, had had a nice plate welded up over the hole in the seriously-quite-degraded pipe. It was absolutely amazing - I cut short an MX session when they were called back from the track, then six people basically spent their evening fixing this complete stranger's bike.

I left at about eight, just after dusk and thought I'd crack on up to Thurso - I still had 60-odd miles to cover. At the first bit of unlit road I flipped to full-beam and everything went dark... So I've got an electrical issue whereby when I use the full-beam circuit something shorts to ground and blows the fuse, taking out the dipped beam, too. Also, presumably in an effort to protect me from myself, the bike won't start with non-working headlights (this seems more sensible now I've written it down).

I got to Thurso very late and tired and also *incredibly* low on fuel - I'd forgotten to actually fill up when the nice man took me off for some welding. Luckily the petrol station on the way into Thurso was still open (just!) since according to the range countdown on the bike I only had fuel for about an extra mile beyond the campsite.


Sunday - Thurso to Dundee, via Aberdeen

I slept incredibly well that night. Perhaps partly because of how tiring Saturday had been, and largely because I forgot to set an alarm and woke with a bit of a start a little after 9. I headed into town for a quick look around, and then on to Dunnet Head (the british mainland's most northerly point) for breakfast.

That box ticked I headed for John O'Groats. I've been to Land's End a few times and it's brilliantly tragic and anticlimactic. I expected the same from John O'Groats.

What I got was the finish line to the "Ride Across Britain" and a bunch of closed shops.

which, in a way, was even better than I was expecting.

I'd arranged to meet Alan in Aberdeen on the way down. I can't remember quite how long ago he moved there but I've been saying I'll come and visit ever since, and he's moving to Australia at the end of the month so it was about time I actually did that. On the way to Aberdeen I called in and delivered a crate of energy drink and a pile of cake to the family of welders - they'd said that was most appropriate!

And then on down towards Inverness. This is a lovely part of the world for a Triumph owner; all the oil refining means that the smell of hot engine oil that so often means another problem is actually just part of the scenery.

On the way I passed a sign for "Nigg", which I followed rather optimistically hoping for a sign to something that's both appropriate and funny. Obviously that didn't happen, but I did find a cheeky ferry:

At this point I was still regarding the welded-up pipe as just the latest incarnation of the bodge, and I was a bit confident that if it all goes wrong Alan's probably got something I can use to fix it. Since there's a large bit of seawater in the way of my doing anything else I headed down and across to Inverness and then out along the fast-but-dull main road to Aberdeen.

I was still running a couple of hours behind because of the relaxing sleep in, and my plan required I get at least as far south as Dundee for the night. I got to Alan's still with a not-leaking bike, and found that Aberdeen is almost exactly as unremarkably not-bad on first impression as everyone says. I left rather late after dark and headed straight down to a campsite just past Dundee.


Monday - Dundee to Whitby

With the whole of Sunday having gone without a coolant leak this was the first day that could just go as planned, but I'd also not actually planned this far ahead. Whitby seemed a good aim for the night (being about half way home) and Edinburgh, Kielder and the North York Moors are all on the way there.

So, I headed down through Edinburgh past the Forth Bridge and to the difficult-to-photograph-from-a-bike castle.

I Edinburgh I met a courier at a petrol station who recommended the A68 South-East as something "fun, with corners and no cameras" which was broadly accurate. I followed that down to Jedburgh where I turned West so I'd cross the border straight into Kielder National Park.

On the way I passed what turned out to be a Waterloo Momument.

Apparently you can't drive there, and instead have to park up and walk which I didn't bother with. I did, however, find a train station up an unpaved road:

Now that the bike wasn't leaking it all got a bit consistent - I just carried on riding over the border, through Kielder, past a funny-named town and over the Tyne at Newcastle.

I hadn't realised how suburban the Angel of the North was - I expected it to be on the way to Newcastle from the south, but it's a bit of a way into it. And while there's a handy layby for taking photos of it from the northern carriageway, anyone heading south must take photos as they go.

It had to happen eventually on a Scotland trip, and as I rolled in to Whitby it started raining.

Annoyingly this is the first time I managed to get to a campsite early enough that I could spend the evening sitting around and relaxing rather than just sticking up a tent and going to bed, so I sat in my tent and hid from the rain for a bit.


Tuesday - Whitby to London

The morning wasn't a lot better. As I left Whitby the rain paused and it just felt like it was going to rain soon. But I spent long enough deviating round York and going over the Humber bridge for the rain to catch up.

On the way out of Hull, I saw a three-digit motorway which I thought I may as well go on for the novelty, where the much-predicted finally happened and I dropped the camera...

It was fine and working, but missing a bit of the case so no-longer waterproof. Given the weather, I didn't really take any more photos on the otherwise quite plain-sailing rest of the ride home.


So, all up that's about 1500 miles in five days which is quite doable but perhaps not something I'd inflict on anybody else; lunches were in petrol stations and with the mechanical problems there was no time to do anything besides riding the thing.

I definitely missed out a bunch of things that would've been really good - distilleries, the whole north-west corner, any form of interaction with the locals besides buying their petrol, the islands - and it was at least a little more stressful than I'd have liked. I've definitely got to get back, but with ten days or so...


Even more pictures are here and the Viewranger tracks are a bit split-up:

Work to Kendal
Kendal to Fort William
Fort William to Thurso
Thurso to Aberdeen and Aberdeen to Dundee
Dundee to Whitby
Whitby to Home

Riding in Southern Ireland

France has some wonderful scenery but an awful lot of French people. Belgians are much happier to speak English, but have very straight roads and not many hills. Ireland, apparently, has some fantastic scenery and is full of people who speak a pretty recognisable form of English. And they use holiday money, too!

So, I planned a trip to Ireland. Right at the bottom of this post is some handy notes if you're thinking of doing the same.

After most of the people initially coming along either got jobs or lost jobs and so pulled out, three of us made it to the pre-ferry meeting point at a cafe in Pembroke, but only two of us made it as far as the ferry:


And one of us had developed a crude form of active suspension:

Having got off the ferry in the early evening we headed for Cashel for the night. The next morning we wandered into town to plan our riding for the day, and stumbled across a ride-out.

We were invited on it, but then they left early (!) so we ended up chasing them and meeting at their half-way point. We rode back to Cashel with them, though, and arrived at about lunch time. We weren't due in Cork until that evening and Tipperary was not actually a long way away, so we decided to go through it on the way. It's not an especially pleasant town, but no Raries were being tipped.

Cork hostel was a little cosy for the bikes, perhaps, and being asked "you did lock them up, didn't you?" wasn't the most confidence-inspiring greeting, but being a proper town offered some time to faff about getting some fork oil, filling a topbox with lunches, and being bemused by the way the Irish advertise their crisps

The full extent of the planning I'd done in the UK was as far as staying in the An Oige hostel in Black Valley on Sunday night, and then riding the ring of Kerry on the Sunday. The Black Valley is off to the West of Killarney National Park and apparently so-called because they didn't get a telephone line until the 21st Century.


You're supposed to do the ring anti-clockwise because of the shape of some of the corners, so I'd advise doing it clockwise so as to not get stuck behind coaches. We started in Killarney and headed South through the National Park.

The turn-off for the Black Valley is somewhere near Ladies View, apparently so named for having a view that impressed Queen Victoria's Ladies in Waiting. We stopped to consult the map and take some photos.

The road goes down from the comparatively unremarkable Moll's Gap. It's also got the sort of surface that helps justify buying a road bike that thinks it's an adventure bike. It doesn't, apparently, make recent adoptees of sportsbikes happy. Rest stops make for some dramatic photos, though:

The road is a lot longer than I was expecting - 8 miles, and not one to do at speed - and the largely absent mains electricity in the area meant it was quite dark when we arrived. It was also hailing.

We got up the next morning to another hailstorm, but by the time we left it was a lovely day. We elected to go back up to Moll's Gap the way we came in, partly because that was the only feasible route and partly because we both thought we ought to have a go at enjoying that road.

We stopped at Moll's Gap when I remembered that motorbikes need petrol to operate, and recalled being warned that petrol stations in rural Ireland can be few and far between (hence the jerry can on my back seat). While I looked for a petrol station, Roni got to discover what a comfortable bike feels like.

After a false-positive we found Derreendarragh (I think that's spelled correctly, but honestly it's hard to tell), which was down probably the straightest road for a few hundred miles.

Puzzlingly, it'd dried out for the return journey. We followed the Ring of Kerry to Kenmare (where we'd joined it yesterday) and from there picked up the Wild Atlantic Way, another fantastic signposted route, this one all the way along the Atlantic coast.

At Sneem we came across a layby that basically forced us to stop for a break

Down a few Tracker bars and even more Hob Nobs, we decided on Dingle for lunch and rode on, looking at even more fantastic scenery, some of which we were fairly categorically not allowed in

There is supposed to be a photo of Fungie here, but we didn't see him. We *did* have some cake, though.

Podcasts topped up (basically every building in Ireland has free Wifi), we headed for the westernmost hostel in Europe.

Behind that tree behind the bikes is the westernmost point on Ireland. In hindsight, we could have parked a bit better.

The next morning we finally got some of the weather I was promised I'd get if I went to Ireland in March

We went back to Dingle, and then out over the Connor Pass. It's Ireland's highest pass, and were it not raining and foggy I'm sure we'd have had some glorious views. Were it not so crazy windy Roni might have enjoyed it, too.

Going down the other side was hugely less windy, with odd glimpses of the beautiful countryside under all that fog

This being a day of solid rain, I didn't take a great deal of photos. We stayed that night in a hotel in Ennis. While we were having breakfast we were accosted by the owner who, as had become something of a theme of our trip, recommended us places to ride.

The Wild Atlantic Way is fantastic, but because it hugs coast it takes a long time to get anywhere. Having spent two days now following it quite rigidly, we decided to skip a bit and head for Connemara where we'd pick it up again.

Strapping what gear was still wet to the outside of our bikes and luggage, we set out into more surprisingly glorious sunshine.

Ireland's chock full of really interesting neolithic bits and bobs, and we'd ridden past loads of it. So we stopped at Poulnabrone Dolmen, a portal tomb, which also featured what Roni continues to maintain was the best half-mile stretch of road of the entire trip, and I'm not sure he's yet forgiven my turning off it to go and look at a pile of rocks.

That rock formation's was built before the pyramids at Giza were even planned. It predates basically all unifications, even China's. Then it collapsed in 1985 and was rebuilt.

Anyway, we zipped through Galway and into Connemara. Even after all the beautiful countryside we'd spend the past few days in, this was astonishingly pretty.

So much so, in fact, that I didn't take an awful lot of photos of it.

We ended the day in Cong, and spent the next day heading for Dublin. Ireland's interior is pretty dull compared to the coast, unfortunately, and quite frequently does a rather good impression of the Netherlands:

Impressively, I still spotted the rarest of road users, the Lost Roni:

And, later, the SV finally had something of a problem when the indicators kept not-working. That we'd stopped for me to get some engine oil to feed the Tiger's cravings, and we then had to push start it to leave, is something I shall gloss over.

We didn't really have much time in Dublin, but there was a CBR250 at the ferry:

Back when I started planning this trip I realised that one lovely thing about Ireland is that to get to it you have to go through Wales, and it's very hard to have a boring time travelling through Wales. Since our last (and, at this point, next) hostel was at Much Wenlock, in England, we were going to have a pretty good go at it.

Coming out of Holyhead on the Roman-straight A5 you can see the fun that is to come on the horizon:

Before all that fun and games, though, I have been near the station with the longest name on the UK rail network many times before, but I've never actually got around to going into the town. In keeping with the general trend of British geographical landmarks, it's a bit of an anti climax:

Here we realised that we were due to get to the hostel about half an hour before it closed, and we'd yet to have any dinner, pick anything up for it or even get any petrol. Time for an uncomfortably quick crossing of Snowdonia!

... and then my camera's battery died.

Some handy notes:

  • The Ring of Kerry and the Wild Atlantic Way are both well signposted and gorgeous. You could spend several days on them without needing to do any other planning. Away from them it's still tricky to go far wrong.
  • WiFi is everywhere - I downloaded a map update in a petrol station.
  • Petrol stations could be more abundant in the countryside, but they're not *that* scarce. They do often close early-evening, though.
  • Ride-outs leave on time (or early!)
  • An Oige isn't a coherent unit like the YHA, but more a program which hostels may join. You will find all the hostels on or similar, and that might be easier than going through An Oige. If you book through An Oige's site, what you actually do is pay a deposit and cause someone in their office to ring the hostel and book for you.
  • There's little motorcycle parking in Dublin and what there is is quite expensive (NCP style). Considerate parking on the pavement is apparently completely tolerated, and it's what the locals do.
  • If the (Rosslare) ferry's not particularly busy they don't turn the kitchen on so you can't eat on it.
  • Speed cameras are craftily hidden. They're also not DVLA compatible so this is not of real consequence.
  • Lots of the roads are poorly (or not-very-recently) surfaced. Apparently punctures are common, but we didn't have any.

And there's yet more photos here.

Keeping a ride together – The Cornerman System

The cornerman system works pretty well for larger groups, and those with some slow and some fast riders; it encourages overtaking. Most forums try to explain it but make it sound far more complex than it is.

In short, there is a 'leader' and a 'tailgunner', and everyone should be able to recognise the front of the tailgunner and the back of the leader.

The leader goes at the front of the ride and knows where he's going, the tailgunner stays at the back - nobody overtakes the leader, and the tailgunner overtakes nobody.

Whenever the ride does anything other than go straight on, the rider immediately behind the leader stops and marks the corner - they are now 'a cornerman'. If the leader thinks a marker's needed somewhere then he'll point there, and the next rider should stop and mark whatever's been pointed at.

Riders approaching the corner will see this rider and know to turn, or at least that they need to do something other than just carry on riding straight on. It is quite important that the cornerman positions themselves such that they are obvious to oncoming riders (not hidden behind a sign, or already round the corner), and also such that it is obvious what the oncoming rider must do - which turning, roundabout exit or lane they should be taking.

As the tailgunner approaches the corner, the cornerman gets back on their bike and rejoins the ride - pulling in before the tailgunner, but after the previous rider has taken the corner.

And that's basically all there is to it. During the ride the faster riders will naturaly find themselves overtaking lots, and therefore at the front a lot, and so marking corners. Slower riders will sit in the middle with a steady stream of corner markers guiding them, and faster riders overtaking them to mark more corners.

Metal Mule pannier frames and a Fuel exhaust on a Tiger 800

The exhaust pipe on the Tiger is ginormous so almost all luggage options require assymetric panniers which look daft. Metal Mule, however, sell a set of their hard-bastard frames in a symmetrical form, for use with with a new narrower silencer (a rebranded Scorpion).

That silencer costs £250 and, since the only reason for it is the narrowness, I thought I'd try a cheaper one. I tend to default to Fuel for cheap exhaust pipes, and their narrower silencer for the tiger is only £150.

But neither Fuel nor Metal Mule will say for sure that the pipe will fit (Metal Mule are nice enough to not insist on my buying their Scorpion, though, and suggest that "it really should, but we can't guarantee it").

Turns out it does!

tiger 800 metal mule rack

The rack does actually foul the linkpipe, though, but I've drilled a sidestand puck to space it out a bit:

tiger 800 metal mule rack fuel exhaust gap

and the gap I was concerned about (between the frame and silencer) is fine:

metal mule rack frame fuel exhaust gap

Keeping a ride together – follow the leader

Everyone loves the cornerman system, which is explained both in great depth and with much convolution on most motorbike forums. But I quite like playing follow the leader, and much as it's probably how you ride anyway, sometimes people ask how a ride is going to work. Here's what I call 'follow the leader':

* You set off in a line, and maintain that order. No overtaking each other.

* As you're going along, you keep an eye in your wing mirror for the guy behind you, if he disappears for a while you stop and wait, eventually going back if the guy in front of you comes back for you (he having waited a while).

* If you get to a corner and you don't know where to go you stop. Eventually the guys in front will be back.

Postfixadmin Installer for Wheezy

Debian Wheezy ships with Dovecot 2.x which has a different config layout to the 1.x verion in Lenny and Squeeze. In response, I've created a wheezy branch of postfixadmin-installer (there's an issue for it, too) which configures Dovecot 2.x and it's actually been a really easy switch.

In much the same way as the current version generally does away with the heavily commented documentation masquerading as a config file, this one simply moves /etc/dovecot out of the way and writes two files into it - dovecot.conf and dovecot-sql.conf (which are the same as for 1.x). This causes a pretty hilarious reduction in filesize, too:

root@pfa:~# find /etc/dovecot/ -type f -exec cat {} \; | wc -l
root@pfa:~# find /etc/dovecot_2013-01-29/ -type f -exec cat {} \; | wc -l

Anyway, with some incredibly limited testing, and assuming you have already installed dovecot, this seems to work. If you want to test it (please!), enable Wheezy backports in Squeeze and then:

apt-get install libwww-perl mysql-server postfix
apt-get -t squeeze-backports install dovecot-common dovecot-imapd dovecot-pop3d
wget --no-check-certificate
perl ./postfixadmin-installer

And, finally, here's that working config I'm using, in case that's what you're after:

protocols = imap pop3
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/var/vmail/%d/%n
mail_privileged_group = vmail
# This should match that of the owner of the /var/lib/vmail hierarchy, and
# be the same as the one postfix uses.
first_valid_uid = 999
# Allow people to use plaintext auth even when TLS/SSL is available (you
# might not want this but it is handy when testing):
disable_plaintext_auth = no
# Uncomment this to get nice and verbose messages about authentication
# problems:
# auth_debug=yes

ssl = no

protocol imap {

protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv

# 'plain' here doesn't override the disble_plaintext_auth_default of 'yes'.
# you should add any other auth mechanisms you want
#auth_mechanisms = plain
userdb {
  driver = sql
  args = /etc/dovecot/dovecot-sql.conf
passdb {
  driver = sql
  args = /etc/dovecot/dovecot-sql.conf

service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0660
    # yes, 'postfix' (or the user that owns the above socket file), not vmail
    user = postfix
    group = postfix


connect = host=localhost dbname=vmail user=vmail password=1lgI2ehK6aEqytjkeDFT4Z7Pq
driver = mysql
default_pass_scheme = MD5-CRYPT
password_query = SELECT username AS user,password FROM mailbox WHERE username = '%u' AND active='1'
user_query = SELECT maildir, 999 AS uid, 122 AS gid FROM mailbox WHERE username = '%u' AND active='1'

Tidying up postfixadmin installer

I've *finally* merged about a billion changes into master in postfixadmin installer, chief amongst them is that most of the boring output now goes to a logfile, the vacation plugin might work after install and it the setup password is randomised. This is all procrastination in order to avoid working out how to configure Dovecot on Wheezy.

It's still a big pile of poor hacks rather than a 'proper' script, but if you just don't look at the source you'll be fine!


I've just spent a few days using up spare holiday, which means I've been making things for work that work doesn't want but I do. This time it's sitecreator, a tool for configuring websites and all their dependencies (Unix users, databases, ssh keys, DNS records etc.) on servers.

Since there's so many possible things for the site to rely upon, and I'm not *that* fond of reinventing the wheel, all it really does is generate passwords and call scripts. There's a configuration file that tells it how many passwords to generate, how to work out what the username should be and perhaps to generate a couple of other things (like database names) if needed. Another bit of the config then explains which scripts to call and with which arguments (including these recently-generated passwords and usernames), and at the end it tells you what it thinks it did. I've written a few scripts for it already (mirroring what I want to do with it).

For example, here's a relatively simple config file with some explanation of what's going on, and some output with that configuration:

avi@amazing:~$ sitecreator
        username: example
        password: gN?@c6$Y7}Y{yg
        database: example

        username: example
        password: r;x6kEgO!

MySQL dev:
        username: example_dev
        password: vA!)9WIMo&by}'
        database: example


And there's at least another example config file in etc/config/. Anyway, hopefully this'll be useful to somebody else who isn't quite into automation enough to have already done this (or to have started using puppet or similar), but does have enough users or systems to configure that some automation would be good.

Oh, it's not very tested yet, and I've still not come up with a sane thing to do with the output from the scripts :)

Network Manager disabling Virt-manager’s bridge

This doesn't work, and it's filed as bug 1099949 in Ubuntu. So we'll see how that goes.

As of about six hours ago, I've had this regularly popping up in my syslog:

Jan 13 20:13:54 amazing NetworkManager[1347]:  (virbr0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]

virbr0 is the bridge created by virt-manager for its VMs to communicate on and, franky, NetworkManager has no business doing anything to it, let alone disconnecting it (especially when it doesn't know why it's doing it).

Fortunately, NetworkManager has an unmanaged-devices option that you can put in the irritatingly-capitalised file at /etc/NetworkManager/NetworkManager.conf. It belongs in the keyfile section (so you need to make sure keyfile is listed under plugins:




Annoyingly, there doesn't appear to be a 'managed-devices' configuration, and virbr0's mac address changes from time to time. So far, sticking this at the end of /etc/rc.local to get the mac address of virbr0 and replace the old one in that file seems to be working:

#! /bin/bash

echo -n "Before  : "
egrep '^unmanaged-devices' /etc/NetworkManager/NetworkManager.conf
mac=$(ifconfig virbr0 | grep HWaddr | awk '{print $NF}');
echo "New mac : $mac";
perl -pi -e "s/^unmanaged-devices.+/unmanaged-devices=mac:$mac/" /etc/NetworkManager/NetworkManager.conf
echo -n "After   : "
egrep '^unmanaged-devices' /etc/NetworkManager/NetworkManager.conf

Half an hour in, I've still got network connectivity on my VMs! :)