1

Topic: wrong date format in mail.log

==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.2
- Linux/BSD distribution name and version: ubuntu-14.04-LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): iRedAdmin-Pro-LDAP-2.3.1
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro?Yes
- Related log if you're reporting an issue:
====
My server's date ( GMT+3)  is OK  ;
Europe/Istanbul  Tue Sep  6 21:00:00 2016 UT = Wed Sep  7 00:00:00 2016 +03 isdst=0 gmtoff=10800

But  when i  look at the mail.log  I see GMT+2 

How can i fix this problem ?

root@mail:/etc# ls -l localtime
-rw-r--r-- 1 root root 2126 Dec 31 14:03 localtime

root@mail:/etc# ls -l /var/spool/postfix/etc/localtime
-rw-r--r-- 1 root root 2126 Dec 31 14:04 /var/spool/postfix/etc/localtime

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: wrong date format in mail.log

*) Is /etc/localtime same as /var/spool/postfix/etc/localtime?
*) Is postfix running under chroot? (check /etc/postfix/master.cf) Is time correct if it's running without chroot?

3

Re: wrong date format in mail.log

1-) Yes /etc/localtime and  /var/spool/postfix/etc/localtime are the same

2-) " Is postfix running under chroot? (check /etc/postfix/master.cf) Is time correct if it's running without chroot?"

No postfix is not running under chroot.  the time is correct when i execute date command .
But the date in the mail.log is 1 hour ago .

4

Re: wrong date format in mail.log

No idea. sad

5

Re: wrong date format in mail.log

may be in case a clue, which program puts down into mail.log file?

ZhangHuangbin wrote:

No idea. sad

6

Re: wrong date format in mail.log

yavuz.maslak wrote:

which program puts down into mail.log file?

Each log line has the program name.

7

Re: wrong date format in mail.log

i added the screen

ZhangHuangbin wrote:
yavuz.maslak wrote:

which program puts down into mail.log file?

Each log line has the program name.

Post's attachments

postfixlog.PNG
postfixlog.PNG 21.97 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

8

Re: wrong date format in mail.log

"postfix/xxx" is the program which generates log.