Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin/errors: Document time syncing at server startup. #1032

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading