Archive for the ‘CENTOS’ category

The mail server could not deliver mail to mymail@mydomain.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries

June 6th, 2017

I’m using CentOS with cPanel accidentally I got this error in my log.

I just try to check the following.

  1. make sure MX record is correct
  2. rDNS is working fine (optional)
  3. add mydomain.com into /etc/localdomain

and it working fine for me.

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.
Facebook Auto Publish Powered By : XYZScripts.com