Dear Members,
I have setup a small mail server for my office on ubuntu server "Hardy" running on vmware.
It runs postfix +Dovecot +getmail + squirremail.
Every thing works fine except dovecot which crashes because of "Time moved backwards error"
To overcome it I have put a restart in CRON every 5 min , but I keep getting this message
Cron someuse@localhost /etc/init.d/dovecot restart >/dev/null start-stop-daemon: open pidfile /var/run/dovecot/master.pid: Permission denied (Permission denied)
How can I overcome this dovecot problem , I googled but could not find a proper solution
With regards Deepak
Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/
On Wed, Jul 22, 2009 at 12:31:20PM +0530, Deepak Kashyap wrote:
Dear Members,
Please set your line length to < 80 characters (72/76 recommended).
I have setup a small mail server for my office on ubuntu server "Hardy" running on vmware.
It runs postfix +Dovecot +getmail + squirremail.
Every thing works fine except dovecot which crashes because of "Time moved backwards error"
This is a known issue with vmware. Please read the VMWare bugs/configuration documentation.
To overcome it I have put a restart in CRON every 5 min , but I keep getting this message
Cron someuse@localhost /etc/init.d/dovecot restart >/dev/null start-stop-daemon: open pidfile /var/run/dovecot/master.pid: Permission denied (Permission denied)
You would need to restart Dovecot as root. Not as a non-root user.
How can I overcome this dovecot problem , I googled but could not find a proper solution
Fix the time issue. I recommend moving off vmware to Xen or something.
Devdas Bhagat
On Wednesday 22 Jul 2009, Deepak Kashyap wrote:
I have setup a small mail server for my office on ubuntu server "Hardy" running on vmware.
It runs postfix +Dovecot +getmail + squirremail.
Every thing works fine except dovecot which crashes because of "Time moved backwards error"
To overcome it I have put a restart in CRON every 5 min , but I keep getting this message
Which method a) script in /etc/cron.d/ or an user crontab file?
Cron someuse@localhost /etc/init.d/dovecot restart >/dev/null start-stop-daemon: open pidfile /var/run/dovecot/master.pid: Permission denied (Permission denied)
You need to run the script as "root" user
How can I overcome this dovecot problem , I googled but could not find a proper solution
As you have found out, dovecot is very sensitive to time drift. You need to install the NTP package and point the daemon to synchronize with a reliable time server from the 'Net. The default set provided by your distro should be good enough.
Make sure that the ntp daemon is active. You can then have this host as the master for other hosts in your local network. I would recommend that you install and activate the NTP package for every host in your network.
HTH -- Arun Khan