Skip to content

Commit

Permalink
admin/errors: Document time syncing at server startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Sep 19, 2024
1 parent 7823b5a commit ca6a27f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/core/admin/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ subscribing/unsubscribing to folders in the public namespace.
## Time Moved Backwards Error

Dovecot isn't very forgiving if your system's time moves backwards.
There are usually two possibilities why it's moving backwards:
There are usually three possibilities why it's moving backwards:

1. You're running `ntpdate` periodically. This isn't a good idea.

2. You're using some kind of a virtual server and you haven't configured
it right (or it's buggy).

3. Dovecot is started before time is synchronized at server startup.

Moving time backwards might cause various problems (see below).

### Time Synchronization
Expand Down Expand Up @@ -152,6 +154,12 @@ problem, fix your init scripts to run ntpd/ntpdate first, before
starting Dovecot. Also, seriously consider running ntp-wait before
starting Dovecot.

### Server Startup Time Synchronization

With systemd add `time-sync.target` to the `After` setting. This isn't
enough though, because it only waits for time-sync to start, not finish.
To do that, enable also `systemd-time-wait-sync.service`.

### What about Daylight Saving/Summer Time?

On Unix-like systems, time is stored internally as the number of seconds
Expand Down

0 comments on commit ca6a27f

Please sign in to comment.