2. ขั้นตอนการติดตั้งและตั้งค่า mariadb , Postfix , Dovecot (Centos7)

จาก Wiki_EAI
รุ่นแก้ไขเมื่อ 12:55, 8 พฤษภาคม 2563 โดย Tanagan (คุย | มีส่วนร่วม) (Created page with "1 ติดตั้ง mariadb , Postfix , Dovecot และ Packet ที่จำเป็นกับ Server '''# yum --enablerepo=centosplus install postfix''' '''# yum...")
(ต่าง) ←รุ่นแก้ไขก่อนหน้า | รุ่นแก้ไขล่าสุด (ต่าง) | รุ่นแก้ไขถัดไป→ (ต่าง)
ไปยังการนำทาง ไปยังการค้นหา

1 ติดตั้ง mariadb , Postfix , Dovecot และ Packet ที่จำเป็นกับ Server

# yum --enablerepo=centosplus install postfix # yum install dovecot mariadb-server dovecot-mysql # systemctl enable dovecot

2 เนื่องจาก Postfix version 2.x.x นั้นไม่รองรับกับระบบ EAI จำเป็นต้องใช้ version 3.x.x ขึ้นไป โดยถอด postfix เดิมออก # yum remove postfix # yum remove ssmtp # yum remove sendmail

3 เพิ่ม Repo ใหม่ เพื่อให้สามารถติดตั้ง postfix version 3 ขึ้นไปได้ โดยสร้าง repo

  1. vi /etc/yum.repos.d/gf.repo

[gf] name=Ghettoforge packages that won't overwrite core distro packages. mirrorlist=http://mirrorlist.ghettoforge.org/el/7/gf/$basearch/mirrorlist enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-gf.el7 failovermethod=priority

[gf-plus] name=Ghettoforge packages that will overwrite core distro packages. mirrorlist=http://mirrorlist.ghettoforge.org/el/7/plus/$basearch/mirrorlist # Please read http://ghettoforge.org/index.php/Usage *before* enabling this repository! enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-gf.el7 failovermethod=priority