2023年3月28日 星期二

[研究]Exim 4.96 Free Mail Server 免費郵件伺服器安裝 (Ubuntu 22.04.2 LTS)

[研究]Exim 4.96 Free Mail Server 免費郵件伺服器安裝 (Ubuntu 22.04.2 LTS)

2023-03-28

Exim Internet Mailer 官方網站
https://www.exim.org/

根據這裡資訊,exim 是目前排名第一佔有率的 Mail Server,勝過 Postfix 和 sendmail。

Mail (MX) Server Survey February 1st, 2023
https://secure1.securityspace.com/s_survey/data/man.202301/mxsurvey.html

安裝情況
user1@ubuntu22042:~$ sudo apt-get update -y (非必須,敝人省略)
user1@ubuntu22042:~$ sudo apt-get install exim4 -y [sudo] password for user1: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: bsd-mailx exim4-base exim4-config exim4-daemon-heavy libevent-2.1-7 libgnutls-dane0 liblockfile-bin liblockfile1 libmysqlclient21 libpq5 libunbound8 mysql-common Suggested packages: exim4-doc-html | exim4-doc-info eximon4 spf-tools-perl swaks The following NEW packages will be installed: bsd-mailx exim4 exim4-base exim4-config exim4-daemon-heavy libevent-2.1-7 libgnutls-dane0 liblockfile-bin liblockfile1 libmysqlclient21 libpq5 libunbound8 mysql-common 0 upgraded, 13 newly installed, 0 to remove and 1 not upgraded. Need to get 3976 kB of archives. After this operation, 13.7 MB of additional disk space will be used. Get:1 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 exim4-config all 4.95-4ubuntu2.2 [252 kB] Get:2 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 exim4-base amd64 4.95-4ubuntu2.2 [947 kB] Get:3 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 libevent-2.1-7 amd64 2.1.12-stable-1build3 [148 kB] Get:4 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libunbound8 amd64 1.13.1-1ubuntu5.3 [395 kB] Get:5 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgnutls-dane0 amd64 3.7.3-4ubuntu1.2 [22.6 kB] Get:6 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 mysql-common all 5.8+1.0.8 [7212 B] Get:7 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libmysqlclient21 amd64 8.0.32-0ubuntu0.22.04.2 [1299 kB] Get:8 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpq5 amd64 14.7-0ubuntu0.22.04.1 [141 kB] Get:9 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 exim4-daemon-heavy amd64 4.95-4ubuntu2.2 [668 kB] Get:10 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 liblockfile-bin amd64 1.17-1build2 [11.7 kB] Get:11 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 liblockfile1 amd64 1.17-1build2 [7058 B] Get:12 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 bsd-mailx amd64 8.1.2-0.20180807cvs-2build2 [69.6 kB] Get:13 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 exim4 all 4.95-4ubuntu2.2 [7582 B] Fetched 3976 kB in 1s (4176 kB/s) Preconfiguring packages ... Selecting previously unselected package exim4-config. (Reading database ... 176153 files and directories currently installed.) Preparing to unpack .../00-exim4-config_4.95-4ubuntu2.2_all.deb ... Unpacking exim4-config (4.95-4ubuntu2.2) ... Selecting previously unselected package exim4-base. Preparing to unpack .../01-exim4-base_4.95-4ubuntu2.2_amd64.deb ... Unpacking exim4-base (4.95-4ubuntu2.2) ... Selecting previously unselected package libevent-2.1-7:amd64. Preparing to unpack .../02-libevent-2.1-7_2.1.12-stable-1build3_amd64.deb ... Unpacking libevent-2.1-7:amd64 (2.1.12-stable-1build3) ... Selecting previously unselected package libunbound8:amd64. Preparing to unpack .../03-libunbound8_1.13.1-1ubuntu5.3_amd64.deb ... Unpacking libunbound8:amd64 (1.13.1-1ubuntu5.3) ... Selecting previously unselected package libgnutls-dane0:amd64. Preparing to unpack .../04-libgnutls-dane0_3.7.3-4ubuntu1.2_amd64.deb ... Unpacking libgnutls-dane0:amd64 (3.7.3-4ubuntu1.2) ... Selecting previously unselected package mysql-common. Preparing to unpack .../05-mysql-common_5.8+1.0.8_all.deb ... Unpacking mysql-common (5.8+1.0.8) ... Selecting previously unselected package libmysqlclient21:amd64. Preparing to unpack .../06-libmysqlclient21_8.0.32-0ubuntu0.22.04.2_amd64.deb ... Unpacking libmysqlclient21:amd64 (8.0.32-0ubuntu0.22.04.2) ... Selecting previously unselected package libpq5:amd64. Preparing to unpack .../07-libpq5_14.7-0ubuntu0.22.04.1_amd64.deb ... Unpacking libpq5:amd64 (14.7-0ubuntu0.22.04.1) ... Selecting previously unselected package exim4-daemon-heavy. Preparing to unpack .../08-exim4-daemon-heavy_4.95-4ubuntu2.2_amd64.deb ... Unpacking exim4-daemon-heavy (4.95-4ubuntu2.2) ... Selecting previously unselected package liblockfile-bin. Preparing to unpack .../09-liblockfile-bin_1.17-1build2_amd64.deb ... Unpacking liblockfile-bin (1.17-1build2) ... Selecting previously unselected package liblockfile1:amd64. Preparing to unpack .../10-liblockfile1_1.17-1build2_amd64.deb ... Unpacking liblockfile1:amd64 (1.17-1build2) ... Selecting previously unselected package bsd-mailx. Preparing to unpack .../11-bsd-mailx_8.1.2-0.20180807cvs-2build2_amd64.deb ... Unpacking bsd-mailx (8.1.2-0.20180807cvs-2build2) ... Selecting previously unselected package exim4. Preparing to unpack .../12-exim4_4.95-4ubuntu2.2_all.deb ... Unpacking exim4 (4.95-4ubuntu2.2) ... Setting up mysql-common (5.8+1.0.8) ... update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Setting up libmysqlclient21:amd64 (8.0.32-0ubuntu0.22.04.2) ... Setting up liblockfile-bin (1.17-1build2) ... Setting up libpq5:amd64 (14.7-0ubuntu0.22.04.1) ... Setting up libevent-2.1-7:amd64 (2.1.12-stable-1build3) ... Setting up exim4-config (4.95-4ubuntu2.2) ... Adding system-user for exim (v4) Setting up liblockfile1:amd64 (1.17-1build2) ... Setting up exim4-base (4.95-4ubuntu2.2) ... exim: DB upgrade, deleting hints-db Created symlink /etc/systemd/system/timers.target.wants/exim4-base.timer → /lib/systemd/system/exim4-base.timer. exim4-base.service is a disabled or a static unit, not starting it. Setting up libunbound8:amd64 (1.13.1-1ubuntu5.3) ... Setting up libgnutls-dane0:amd64 (3.7.3-4ubuntu1.2) ... Setting up exim4-daemon-heavy (4.95-4ubuntu2.2) ... Setting up exim4 (4.95-4ubuntu2.2) ... Setting up bsd-mailx (8.1.2-0.20180807cvs-2build2) ... update-alternatives: using /usr/bin/bsd-mailx to provide /usr/bin/mailx (mailx) in auto mode Processing triggers for man-db (2.10.2-1) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ... user1@ubuntu22042:~$ sudo dpkg-reconfigure exim4-config user1@ubuntu22042:~$ sudo service exim4 restart user1@ubuntu22042:~$ sudo service exim4 status ● exim4.service - LSB: exim Mail Transport Agent Loaded: loaded (/etc/init.d/exim4; generated) Active: active (running) since Thu 2023-03-09 09:12:11 CST; 11s ago Docs: man:systemd-sysv-generator(8) Process: 4114 ExecStart=/etc/init.d/exim4 start (code=exited, status=0/SUC> Tasks: 1 (limit: 4573) Memory: 10.9M CPU: 331ms CGroup: /system.slice/exim4.service └─4364 /usr/sbin/exim4 -bd -q30m 三 09 09:12:11 ubuntu22042 systemd[1]: Starting LSB: exim Mail Transport Age> 三 09 09:12:11 ubuntu22042 exim4[4114]: * Starting MTA 三 09 09:12:11 ubuntu22042 exim4[4114]: ...done. 三 09 09:12:11 ubuntu22042 systemd[1]: Started LSB: exim Mail Transport Agen> user1@ubuntu22042:~$ sudo systemctl enable exim4 exim4.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable exim4 user1@ubuntu22042:~$



其中會有設定畫面
sudo dpkg-reconfigure exim4-config  









********************************************************************************

(完)

沒有留言:

張貼留言