LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-15-2007, 05:37 AM   #1
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
Postfix Chroot Time


Hello,

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?

Thanks!
 
Old 05-15-2007, 10:07 AM   #2
digitalnerds
Member
 
Registered: May 2007
Distribution: Debian
Posts: 103

Rep: Reputation: 15
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.

Regards
 
Old 05-15-2007, 10:23 AM   #3
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Original Poster
Rep: Reputation: 35
I really appreciate your reply, and i am not trying to be rude, but reread the post.
 
Old 05-15-2007, 11:56 AM   #4
digitalnerds
Member
 
Registered: May 2007
Distribution: Debian
Posts: 103

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Me Please! I'm receiving mail from Postfix with a wrong time... DnDonna Linux - Newbie 1 08-05-2008 12:37 PM
MailScanner/postfix chroot waelaltaqi Linux - Software 0 02-27-2007 09:15 AM
chroot postfix howto? hank43 Linux - Software 1 12-27-2006 07:47 AM
run postfix in a chroot environment cccc Debian 4 09-17-2006 07:12 PM
Postfix smtp chroot problem FlyingMoose Debian 1 02-08-2004 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration