สาเหตุ : service exim ไม่สามารถใช้งานได้ วิธีตรวจสอบปัญหา : ทดสอบ รับ-ส่ง Email ผ่าน Webmail WHM >>> account information >> list account >> เข้า Cpanel ลูกค้า >>> Add or remove Email >>> ดำเนินการสร้าง Account test แล้วทดสอบการ รับ-ส่ง วิธีแก้ปัญหาทีม TSทดสอบ รับ-ส่ง Email ผ่าน Webmail WHM >>> account information >> list account >> เข้า Cpanel ลูกค้า >>> Add or remove Email >>> ดำเนินการสร้าง Account test แล้วทดสอบการ รับ-ส่ง วิธีแก้ปัญหาทีม SYSNOC หรือ ITS/etc/init.d/exim restart
วิธีแก้ปัญหาทีม TS วิธีแก้ปัญหาทีม SYSNOC หรือ ITS
จาก /var/log/exim_mainlog
2016-07-09 14:53:59 1bLn5K-0001sc-55 ** |/usr/local/bin/php -c /etc/phpconf/managene/php.ini -n /home/managene/public_html/admin/pipe-post.php (test-mail-parser@tickets.netway.co.th)
ปัญหา: มี Error Exim panic message แจ้งมา ตัวอย่าง Error ตามด้านล่าง 2017-09-12 09:32:11 failed to expand condition "${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{0}{${if match {${readsocket{/var/run/dovecot/quota-status}{request=smtpd_access_policy2017-09-12 09:32:16 failed to expand condition "${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{0}{${if match {${readsocket{/var/run/dovecot/quota-status}{request=smtpd_access_policy2017-09-12 09:32:33 failed to expand condition "${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{0}{${if match {${readsocket{/var/run/dovecot/quota-status}{request=smtpd_access_policy2017-09-12 09:32:42 failed to expand condition "${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{0}{${if match {${readsocket{/var/run/dovecot/quota-status}{request=smtpd_access_policy แก้ปัญหา: รันคำสั่ง #/scripts/mailperm
ปัญหา ลูกค้าส่ง Email จาก O365 มาที่ Mail Server ของเรา(cPanel) โดยส่งเข้ามาทีละมาก ๆ ทีเดียวแล้วจะส่งมาไม่ได้ ตรวจสอบปัญหา ตรวจสอบ log บน exim_mainlog โดยเอา IP ที่ส่งเข้ามามาตรวจสอบ [root@netway42 ~]# grep 104.47.124.89 /var/log/* .... .... /var/log/exim_mainlog:2017-11-27 13:38:45 SMTP connection from [104.47.124.89]:27089 (TCP/IP connection count = 1)/var/log/exim_mainlog:2017-11-27 13:44:07 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089) syscall: Connection reset by peer/var/log/exim_mainlog:2017-11-27 13:44:07 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 13:44:07 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 13:44:07 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 13:44:07 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 13:44:07 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 13:44:07 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 13:44:07 unexpected disconnection while reading SMTP command from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:27089/var/log/exim_mainlog:2017-11-27 16:15:14 SMTP connection from [104.47.124.89]:63400 (TCP/IP connection count = 2)/var/log/exim_mainlog:2017-11-27 16:20:35 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400) syscall: Connection reset by peer/var/log/exim_mainlog:2017-11-27 16:20:35 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 16:20:35 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 16:20:35 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 16:20:35 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 16:20:35 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 16:20:35 SSL_write: (from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400) syscall: Broken pipe/var/log/exim_mainlog:2017-11-27 16:20:35 unexpected disconnection while reading SMTP command from mail-hk2apc01on0089.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com) [104.47.124.89]:63400 การแก้ไข 1.ไปที่ WHM »Service Configuration »Exim Configuration Manager 2. ไปที่ Access Listd Tab 3. คลิก Edit ที่ Trusted SMTP IP addresses จากนั้นนำ IP จาก Exchange Online Protection IP addresses มาใส่ แล้ว Save