Archive for May, 2017

add time zone in centos 7 and time greater than local time 1 hour

May 17th, 2017

When I use CentOS 7 and change localtime by command:

#timedatectl list-timezones
#timedatectl set-timezone Asia/Phnom_Penh
and the time show as below:
[root@linux ~]# timedatectl
Local time: Wed 2017-05-17 11:25:12 +07
Universal time: Wed 2017-05-17 04:25:12 UTC
RTC time: Wed 2017-05-17 04:25:12
Time zone: Asia/Phnom_Penh (+07, +0700)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a

but the real time in local country is Wed 2017-05-17 10:25:12 +07
I was found that I did not install chrony service.

# yum install -y chrony
<div class="color1">#systemctl start chronyd</div>
<div class="color1">#systemctl  chronyd</div>
<div class="color1"> 
after that I get the real time fit system and local country time as below command
 

</div>
<div class="color1">[root@linux ~]# timedatectl
Local time: Wed 2017-05-17 11:25:12 +07
Universal time: Wed 2017-05-17 04:25:12 UTC
RTC time: Wed 2017-05-17 04:25:12
Time zone: Asia/Phnom_Penh (+07, +0700)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a</div>
<div class="color1"> 
I hope this would share for you all.

Email Client (outlook) Could not access to IMAP or POP3 (CentOS7 with Virtualmin)

May 1st, 2017

I was found the problem when I installed CentOS 7.x 64bits with Virtualmin ( please search wiki for keywork virtualmin for more detail)

Error Found:

I was check the log on server with email log I found below error:

Apr 27 06:16:20 box185 dovecot: imap-login: Login: user=<piseth.mydomain.com>, method=PLAIN, rip=xx.xxx.xx.xx, lip=yy.yyy.yyy.yyy, mpid=5259, TLS, session=<ZTcbOB5OtQAxnC8O>

Apr 27 06:16:20 box185 dovecot: imap: Error: user piseth.mydomain.com: Mail access for users with UID 501 not permitted (see first_valid_uid in config file, uid from userdb lookup).

Apr 27 06:16:20 box185 dovecot: imap: Error: Invalid user settings. Refer to server log for more information.

 Solution:

I was logged in to root account of virtualmin and Click Webmin à Servers à Dovecot IMAP/POP3 Server à User Login and Options at option call Minimum valid UID change from 1000 to Default.

Note:

  • I think CentOS 6.x with Virtualmin have no problem.
  • this is my solution but you can find other solution better than this.

 

 

Facebook Auto Publish Powered By : XYZScripts.com