Turns out it was a problem with the gettimeofday() function on my OS install, has now been updated and Dovecot r26 runs fine. Thanks for all your help. Matt.