Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
> It seems that no matter i use date +%Z or not the QMAIL still using - > my question is how to modify the qmail GMT ? I looked into this issue a while back because I found it a pain having all the headers written in GMT >From what I remember of the subject, I found that qmail was designed intentionally to log all the headers in GMT because this was specified in one of the RFC's. My solution was to use a patch I found at www.qmail.org I have been using this patch on all my systems to get the headers logged in localtime rather than GMT ftp://ftp.nlc.net.au/pub/unix/mail/qmail/qmail-date-localtime.patch > I hope I dont need to re-compile qmail or vpopmail. This patch does require that you recompile qmail. You dont have to recompile vpopmail. Michael
Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
> How about a locally injected message? > > What operating system are you using? If you are using Linux, then run this > command: Yes, Linux Redhat7. > strace -f /var/qmail/bin/sendmail @ < /dev/null 2>&1 | grep -E "time|Date" > > You should get output similar to this: > > time(NULL) = 1037179377 > write(4, "Date: 13 Nov 2002 09:22:57 -"..., 162) = 162 > This is what I got here. [root@peak-mobile new]# strace -f /var/qmail/bin/sendmail [EMAIL PROTECTED] < /dev/null 2>&1 | grep -E "time|Date" time(NULL) = 1037243921 write(4, "Date: 14 Nov 2002 03:18:41 -"..., 157) = 157 I realized that it's qmail time ( see from the message header always - but not correct receive time) how can I fix it ? thanks so mcuh!! Lucy > -- > David Phillips <[EMAIL PROTECTED]> > http://david.acz.org/ > > >
Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
Lucy writes: > BTW, why when I use sqwebmail, the receieve time is correct? only > when using vpopmail pop3 to email client, it's incorrect ? vpopmail > problem ? How about a locally injected message? What operating system are you using? If you are using Linux, then run this command: strace -f /var/qmail/bin/sendmail @ < /dev/null 2>&1 | grep -E "time|Date" You should get output similar to this: time(NULL) = 1037179377 write(4, "Date: 13 Nov 2002 09:22:57 -"..., 162) = 162 Show us the output from this command. The objective here is to determine what is being returned by the time(2) system call and see how it is being formatted. Feel free to replace @ with your own email address. -- David Phillips <[EMAIL PROTECTED]> http://david.acz.org/
Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
Thanks for reply. I have checked the date on the qmail server [root]# date Wed Nov 13 15:39:18 GMT+8 2002 And the server is in Beijing should be GMT+8 And also test again on the qmail, the results are below: Sent: 02-11-13 03:25pm ( this is right) Received: 02-11-14 07:31am (this is NOT correct) Received: (qmail 11350 invoked from network); 13 Nov 2002 23:31:10 - Received: from unknown (HELO MINTPeakLucy) (210.74.188.165) by 211.157.1.157 with SMTP; 13 Nov 2002 23:31:10 - Date: Wed, 13 Nov 2002 15:25:44 +0800 It seems that no matter i use date +%Z or not the QMAIL still using - my question is how to modify the qmail GMT ? BTW, why when I use sqwebmail, the receieve time is correct? only when using vpopmail pop3 to email client, it's incorrect ? vpopmail problem ? Thanks very much !!! I hope I dont need to re-compile qmail or vpopmail. L, - Original Message - From: "David Phillips" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 3:24 PM Subject: Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct > Lucy writes: > > Received: (qmail 8896 invoked from network); > > 13 Nov 2002 20:02:50 - > > Received: from unknown (HELO peakhl) (210.74.188.165) > > by 211.157.1.157 with SMTP; 13 Nov 2002 20:02:50 - > > [snip] > > > Date: Wed, 13 Nov 2002 12:02:59 +0800 > > > > It seems nothing wrong in this eml but in all email clients(clock is > > definitly correct) the received time is ahead of time. > > It looks like the time zone is set to ``-0800'' when it should be ``+0800''. > Running ``date +%z'' should confirm this. > > -- > David Phillips <[EMAIL PROTECTED]> > http://david.acz.org/ > > >
Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
Lucy writes: > Received: (qmail 8896 invoked from network); > 13 Nov 2002 20:02:50 - > Received: from unknown (HELO peakhl) (210.74.188.165) > by 211.157.1.157 with SMTP; 13 Nov 2002 20:02:50 - [snip] > Date: Wed, 13 Nov 2002 12:02:59 +0800 > > It seems nothing wrong in this eml but in all email clients(clock is > definitly correct) the received time is ahead of time. It looks like the time zone is set to ``-0800'' when it should be ``+0800''. Running ``date +%z'' should confirm this. -- David Phillips <[EMAIL PROTECTED]> http://david.acz.org/
Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
Oh forget to add the message details for that in correct receiving time Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 8896 invoked from network); 13 Nov 2002 20:02:50 - Received: from unknown (HELO peakhl) (210.74.188.165) by 211.157.1.157 with SMTP; 13 Nov 2002 20:02:50 - From: "Hong Li" <[EMAIL PROTECTED]> To: "Lucy" <[EMAIL PROTECTED]> Subject: FW: time on our mail server Date: Wed, 13 Nov 2002 12:02:59 +0800 Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 ___ It seems nothing wrong in this eml but in all email clients(clock is definitly correct) the received time is ahead of time. Why? Lucy - Original Message - From: "David Phillips" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 2:01 PM Subject: Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct > This is not a vpopmail issue and thus is off topic for this list. > > Lucy writes: > > I have a quesiton on vpopmail+qmail receive time problem, > > qmail smtp mail time is correct , but as I get messages > > that state received tomorrow. > > Make sure that the time and timezone is correct on the server running qmail. > It isn't qmail's fault if your clock is set incorrectly. Another > possibility is that your mail client is incorrectly displaying the times. > > Show us an example message with full headers that illustrates this problem, > along with the corresponding qmail log entries. > > -- > David Phillips <[EMAIL PROTECTED]> > http://david.acz.org/ > > >
Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
Hi there, First I need clearify that both our mail server clock and clients clock are same and corrrect ! Secend 1) if I use that qmail server to inject a email to other mail server, the smtp time is correct and the receiver can get corrrect both sending/receiving time ; 2) I can get correct sending/receiving time if I use webmail(sqwebmail) and it's installed on the same qmail server ( qmail + sqwebmail + vpopmail) 3) only this case the receiving time is not correct, I use pop3 ( email clients for ex outlook) that qmail server's email the receving time is ahead of a day, not correct. So I am wondering if vpopmail confused the time. and in the email itself (b4 vpop, the time is right i can see from the orignial emal file) Pls help on this Lucy - Original Message - From: "David Phillips" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 2:01 PM Subject: Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct > This is not a vpopmail issue and thus is off topic for this list. > > Lucy writes: > > I have a quesiton on vpopmail+qmail receive time problem, > > qmail smtp mail time is correct , but as I get messages > > that state received tomorrow. > > Make sure that the time and timezone is correct on the server running qmail. > It isn't qmail's fault if your clock is set incorrectly. Another > possibility is that your mail client is incorrectly displaying the times. > > Show us an example message with full headers that illustrates this problem, > along with the corresponding qmail log entries. > > -- > David Phillips <[EMAIL PROTECTED]> > http://david.acz.org/ > > > >
Re: [vchkpw] qustion on vpopmail + qmail pop mail time not correct
This is not a vpopmail issue and thus is off topic for this list. Lucy writes: > I have a quesiton on vpopmail+qmail receive time problem, > qmail smtp mail time is correct , but as I get messages > that state received tomorrow. Make sure that the time and timezone is correct on the server running qmail. It isn't qmail's fault if your clock is set incorrectly. Another possibility is that your mail client is incorrectly displaying the times. Show us an example message with full headers that illustrates this problem, along with the corresponding qmail log entries. -- David Phillips <[EMAIL PROTECTED]> http://david.acz.org/
[vchkpw] qustion on vpopmail + qmail pop mail time not correct
Hi there, I have a quesiton on vpopmail+qmail receive time problem, qmail smtp mail time is correct , but as I get messages that state received tomorrow. anybody can help this? thanks very much Lucy