[Dovecot] INTERNALDATE call, timezone randomly changes

Timo Sirainen tss at iki.fi
Sun Nov 30 04:32:47 EET 2008

On Wed, 2008-11-26 at 12:25 +0000, Guy wrote:
> I've run into an odd little problem. We use SquirrelMail as the basis
> for our webmail. Recently I've had a user complaining that the
> "Received" time on mail in the Sent folder has changed between logins.
> The change is always been by +1 hours or -5 hours. While checking, our
> developer had a time changed by +2 hours. On refresh it changed back.
> He poked through the code and it looks like SquirrelMail gets the
> received date via an IMAP command:
> Content-Type Subject Date)])

Could you enable e.g. rawlog and show me logs of two different
INTERNALDATE replies for the same message?

> I'm running dovecot 1.1.6, and I'm wondering how that function gets
> the date and time? If I can isolate the source of the timezone I can
> try and correct it. The server time shown by "date" is correct and
> /etc/localtime is /usr/share/zoneinfo/Europe/London (which is correct
> - I've also se the timezone in /etc/conf.d/clock is set to
> "Europe/London" now), so I'm wondering where else the information
> could be coming from?

dovecot -n output could be helpful. Anyway assuming you're using maildir
the INTERNALDATE is looked up from the file's mtime and then that time
is converted to the server's local timezone.

The only things I can think of that could cause timezone to change
unexpectedly is chrooting or setting TZ environment (before running
dovecot or "tz" field returned from userdb).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081130/c233e541/attachment.bin 

More information about the dovecot mailing list