Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running a postfix mail server that is handling the mail for several domains. The server is running in a chroot environment. All is well with the handling of mail, etc. However, i am having trouble getting the timestamps to correctly show on the received email. I am using courier imapd ssl to deliever the mail to the clients. Upon receiving mail, the timestamp is off by -1 hour. I have copied the correct zonefile over to localtime within the chroot environment. I believe the difference of one hour is the difference between EST and EDT (day light savings). Has anyone had any trouble like this? If so, what needs to be done for the correct timestamp to be displayed?
I might be wrong but Postfix might act like that because it doesnt know what timezone it is in. Take a look at your /etc/localtime. Fix it if necessary. Them copy /usr/share/zoneinfo/country/state to /var/spool/postfix/etc/ and run: postfix check, then
postfix reload. I hope this is the problem solution.
Sorry i didnt paid more attention when i initially read the message. It looks to me now that is a courier imapd problem. Note that courier has two timestamps. The first timestamp is the time the message was delivered to the mailbox; and the second timestamp is taken from the Date: header. You would prolly need to parse the mail message, read the first date header and then re-writes it using utime(). This is only an assumption. I am not 100% sure this may be your problem.
Based on above it might be that courier-imapd daemon is somehow using EST (-5) instead of postfix's EDT (-4).
Regards
Andy
Last edited by digitalnerds; 05-15-2007 at 12:09 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.