1. 程式人生 > >阿里雲CentOS Linux6.5伺服器上用postfix +dovecot搭建郵件伺服器--親測好用

阿里雲CentOS Linux6.5伺服器上用postfix +dovecot搭建郵件伺服器--親測好用

注:本文的郵件伺服器只用於傳送郵件,也就是STMP伺服器。

企業域名1082.cn

郵件伺服器 mail.1082.cn

Mail伺服器名: mail.1082.cn

IP120.24.70.237

一、準備工作

1. 為郵件伺服器新增DNS解析

雖然不加DNS解析也能把郵件發出去,但會被大多數郵件伺服器當作垃圾郵件。根據我們的實際經驗,需要新增三條DNS解析記錄:A記錄、MX記錄、TXT記錄。比如域名1082.cn,對應的DNS記錄如下:

2. 準備存放郵件的硬碟空間

如果用的是阿里雲入門級Linux伺服器,有一塊20G的資料盤未掛載,需要格式化並掛載(假設這裡掛載的目錄是/data),具體操作步驟見之前的博文

阿里云云伺服器硬碟分割槽及掛載

3.  準備安裝Postfix sasl2 dovecot安裝

[[email protected] ~]# yum install postfix cyrus-sasl* dovecot

先檢測dovecot軟體包是否已經安裝  rpm-qa dovecot

二、配置postfix

postfixCentOS預設安裝的郵件伺服器軟體。以下配置示例假設要配置的域名是1082.cn,郵件伺服器主機名是mail.1082.cn

1. 開啟postfix的配置檔案

vi /etc/postfix/main.cf

2. :75 游標移至第75行,修改myhostname

myhostname = mail.1082.cn

3. :83 游標移至第83行,修改mydomain

mydomain = 1082.cn

4. :99 游標移至第99行,修改myorigin

myorigin = $mydomain

5. :116游標移至第116行,修改inet_interfaces

inet_interfaces = all

6. :119游標移至第119行,修改inet_protocols

inet_protocols = ipv4

7. :164游標移至第164行,新增$mydomain

mydestination = $myhostname,localhost.$mydomain, localhost, $mydomain

8. :251游標移至第251行,修改mynetworks

mynetworks_style = subnet  //指定全網IP,這兩個引數設定非常重要(下面)

9. :264游標移至第264行,修改mynetworks

mynetworks = 127.0.0.0/8  0.0.0.0/0 #表示全部網路地址可以訪問郵件

10. :419 游標移至第419行,設定home_mailbox

home_mailbox = Maildir/  

//如果採用系統帳號作為郵件使用者名稱,該目錄為帳號下的目錄最後面新增(sasl加密演算法支援)

11. :425 游標移至第425行,設定mail_spool_directory/data是之前掛載的資料盤,mail目錄需要通過mkdir命令建立

mail_spool_directory = /data/mail

12. 重啟postfix使設定生效

service postfix restart

三、用telnet測試郵件伺服器是否正常

1. 在郵件伺服器上安裝telnet

yum install telnet

2. 連線伺服器SMTP

telnet 127.0.0.1 25

3. 填寫發件人

MAIL FROM:<[email protected]>

回車

4. 填寫收件人

RCPT TO:[email protected]

回車

5. 撰寫郵件內容

5.1 開始寫郵件內容

DATA                  

回車

5.2 輸入標題

Subject: test message

回車

5.3 輸入內容,並以.號結束

test body

.

如果顯示下面的資訊,說明郵件進入傳送佇列

250 2.0.0 Ok: queued as 88D6D32A94

四、授權其他伺服器通過該郵件伺服器傳送郵件

未授權的情況下,如果在其他伺服器telnet這臺伺服器,在輸入收件人之後會出現Relay access denied錯誤

RCPT TO:[email protected]

554 5.7.1 <[email protected]>:Relay access denied

解決方法:

vi /etc/postfix/main.cf:264將游標移至第264行,在mynetworks的值之後加這臺的伺服器IP地址,比如:

mynetworks = 127.0.0.0/8 58.33.14.124  0.0.0.0/0

0.0.0.0/0  表示全部網路 service postfix restart之後,問題解決。

五、其他問題

收到上面telnet發出的郵件時,你會發現收件人資訊顯示的是undisclosedrecipients,解決方法是在DATA命令之後,輸入Subject之前,分別輸入:

FROM:[email protected]

TO:[email protected]

六、參考資料:

六   dovecot 部分安裝

1. 開啟postfix的配置檔案

vi /etc/postfix/main.cf

在檔案最後增加以下內容

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =permit_sasl_authenticated,reject_unauth_destination,permit_mynetworks

smtpd_client_restrictions =permit_sasl_authenticated

2. 從命令列選擇可用的 MTA

 [[email protected] ~]# alternatives --config mta

3. 修改系統帳號驗證

 [[email protected] ~]# vi /etc/sysconfig/saslauthd

SOCKETDIR=/var/run/saslauthd

MECH=shadow                //採用系統帳號驗證

4. 修改或者新增 [[email protected] ~]#vi /etc/sasl2/smtpd.conf

pwcheck_method: saslauthd

mech_list: plain login

log_level:3

5. [[email protected] ~]# vi /etc/dovecot/dovecot.conf    修改或者新增

protocols = imap pop3

listen = *

6. Dovecot 配置 dovecot.conf 檔案配置郵件接收的儲存位置,要和postfix配置目錄一致

/etc/dovecot/conf.d/10-mail.conf 去掉下面一行註釋

mail_location = maildir:~/Maildir

7.  重新啟動程式

[[email protected] ~]# /etc/init.d/postfix restart

[[email protected] ~]# /etc/init.d/dovecot restart

[[email protected] ~]# /etc/init.d/saslauthdrestart

8.  設定開機自動啟動

[[email protected] ~]#chkconfig –level 345 postfixon

[[email protected] ~]#chkconfig –level 345 dovecoton

[[email protected] ~]#chkconfig –level 345saslauthd on

9. 新增系統郵件帳號

(1)先新建系統帳號

[[email protected] ~]# useradd  -s /sbin/nologin -m  wangsl

[[email protected] ~]# passwd   test //密碼 test

郵件存放目錄

/home/pay/Maildir

(2)新增郵箱賬號

[[email protected] ~]# /usr/sbin/testsaslauthd  -u test  -p test

上面這步所使用的使用者名稱和密碼,系統中必須有該使用者和對應的密碼,否則會報錯

返回:ok,successd,執行成功。

10. 系統本機測試 110 埠郵件接收情況

[[email protected] root]# telnet localhost 110

Trying 127.0.0.1...

Connected to smtp.test.com (127.0.0.1).

Escape character is '^]'.

+OK Dovecot ready.

user test

+OK

pass test

+OK Logged in.

list

+OK 1 messages:

retr 1

dele 1

1 481

下面命令可以測試傳送郵件

mail -s 'Postfix mail test'[email protected]< /etc/hosts

有時候出現郵件目錄錯誤,是配置郵件接收目錄不正確

[[email protected] ~]# su - oracle

[[email protected] ~]$ mkdir -p/u01/oracle/mail/.imap/INBOX

[[email protected] ~]$ exit

11.  foxmail 測試

新增賬號:pop3 stmp 都需要設定為域名地址(mail.szniuwang.com)

最後就可以通過outlook,foxmail等客戶端測試郵件伺服器了。

Foxmail 深圳IMAP接收方式

Foxmail 設定pop3 郵件接收方式

Outlook 2007 客戶端設定

完全正常後刪除測試郵箱,以免存在系統漏洞。

#userdel –r test

userdel –f test

postconf –d message_size_limit 顯示預設郵件大小

出現傳送郵件 Relay access denied 錯誤需要 outlook設定正常才可以的 

 '[email protected]',時間為 2014/10/27 11:41

            554 5.7.1 <[email protected]>:Relay access denied

修改郵件附件傳送大小限制

/etc/postfix/main.cf

message_size_limit = 20480000

常見問題1     testsaslauthd出現0: NO "authentication failed"錯誤提示的解決辦法

在停止sendmail服務: service sendmail stop  或者:   /etc/rc.d/init.d/sendmail stop  後解除安裝掉sendmail:  rpm -e sendmail

後安裝了postfix    yum -y installpostfix。

配置好main.cf

安裝 cyrus-sasl 軟體包: yum -y install cyrus-sasl*

安裝SMTP認證元件:yum install -y dovecot saslauthd*

執行saslauth

saslauthd -v

#如果顯示類似authenticationmechanisms:getpwent pam shadow則可顯示saslauthd支援的認證機制

編輯/etc/sysconfig/saslauthd檔案,

vim /etc/sysconfig/saslauthd

#確認其為MECH=pam

啟動saslauthd    service saslauthdstart

執行:

/usr/sbin/testsaslauthd –u user –p‘password’

這時總是出錯:0: NO "authentication failed"

該怎麼辦呢?

其實很簡單:vi /etc/sysconfig/saslauthd

#MECH=pam

改成:

MECH=shadow

FLAGS=

然後重啟saslauthd: service saslauthd restart

再來測試 /usr/sbin/testsaslauthd –u myuserid –p ‘mypassword’  //這裡的賬號和密碼要換成你的linux 的使用者名稱和密碼

0: OK "Success."

終於成功了。

軟體包下載

#yumdownloader samba

完整篇

注:本文的郵件伺服器只用於傳送郵件,也就是STMP伺服器。

企業域名1082.cn

郵件伺服器 mail.1082.cn

Mail伺服器名: mail.1082.cn

IP120.24.70.237

一、準備工作

1. 為郵件伺服器新增DNS解析

雖然不加DNS解析也能把郵件發出去,但會被大多數郵件伺服器當作垃圾郵件。根據我們的實際經驗,需要新增三條DNS解析記錄:A記錄、MX記錄、TXT記錄。比如域名1082.cn,對應的DNS記錄如下:

2. 準備存放郵件的硬碟空間

如果用的是阿里雲入門級Linux伺服器,有一塊20G的資料盤未掛載,需要格式化並掛載(假設這裡掛載的目錄是/data),具體操作步驟見之前的博文阿里云云伺服器硬碟分割槽及掛載

3.  準備安裝Postfix sasl2 dovecot安裝

[[email protected] ~]# yum install postfix cyrus-sasl* dovecot

先檢測dovecot軟體包是否已經安裝  rpm-qa dovecot

二、配置postfix

postfixCentOS預設安裝的郵件伺服器軟體。以下配置示例假設要配置的域名是1082.cn,郵件伺服器主機名是mail.1082.cn

1. 開啟postfix的配置檔案

vi /etc/postfix/main.cf

2. :75 游標移至第75行,修改myhostname

myhostname = mail.1082.cn

3. :83 游標移至第83行,修改mydomain

mydomain = 1082.cn

4. :99 游標移至第99行,修改myorigin

myorigin = $mydomain

5. :116游標移至第116行,修改inet_interfaces

inet_interfaces = all

6. :119游標移至第119行,修改inet_protocols

inet_protocols = ipv4

7. :164游標移至第164行,新增$mydomain

mydestination = $myhostname,localhost.$mydomain, localhost, $mydomain

8. :251游標移至第251行,修改mynetworks

mynetworks_style = subnet  //指定全網IP,這兩個引數設定非常重要(下面)

9. :264游標移至第264行,修改mynetworks

mynetworks = 127.0.0.0/8  0.0.0.0/0 #表示全部網路地址可以訪問郵件

10. :419 游標移至第419行,設定home_mailbox

home_mailbox = Maildir/  

//如果採用系統帳號作為郵件使用者名稱,該目錄為帳號下的目錄最後面新增(sasl加密演算法支援)

11. :425 游標移至第425行,設定mail_spool_directory/data是之前掛載的資料盤,mail目錄需要通過mkdir命令建立

mail_spool_directory = /data/mail

12. 重啟postfix使設定生效

service postfix restart

三、用telnet測試郵件伺服器是否正常

1. 在郵件伺服器上安裝telnet

yum install telnet

2. 連線伺服器SMTP

telnet 127.0.0.1 25

3. 填寫發件人

MAIL FROM:<[email protected]>

回車

4. 填寫收件人

RCPT TO:[email protected]

回車

5. 撰寫郵件內容

5.1 開始寫郵件內容

DATA                  

回車

5.2 輸入標題

Subject: test message

回車

5.3 輸入內容,並以.號結束

test body

.

如果顯示下面的資訊,說明郵件進入傳送佇列

250 2.0.0 Ok: queued as 88D6D32A94

四、授權其他伺服器通過該郵件伺服器傳送郵件

未授權的情況下,如果在其他伺服器telnet這臺伺服器,在輸入收件人之後會出現Relay access denied錯誤

RCPT TO:[email protected]

554 5.7.1 <[email protected]>:Relay access denied

解決方法:

vi /etc/postfix/main.cf:264將游標移至第264行,在mynetworks的值之後加這臺的伺服器IP地址,比如:

mynetworks = 127.0.0.0/8 58.33.14.124  0.0.0.0/0

0.0.0.0/0  表示全部網路 service postfix restart之後,問題解決。

五、其他問題

收到上面telnet發出的郵件時,你會發現收件人資訊顯示的是undisclosedrecipients,解決方法是在DATA命令之後,輸入Subject之前,分別輸入:

FROM:[email protected]

TO:[email protected]

六、參考資料:

六   dovecot 部分安裝

1. 開啟postfix的配置檔案

vi /etc/postfix/main.cf

在檔案最後增加以下內容

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =permit_sasl_authenticated,reject_unauth_destination,permit_mynetworks

smtpd_client_restrictions =permit_sasl_authenticated

2. 從命令列選擇可用的 MTA

 [[email protected] ~]# alternatives --config mta

3. 修改系統帳號驗證

 [[email protected] ~]# vi /etc/sysconfig/saslauthd

SOCKETDIR=/var/run/saslauthd

MECH=shadow                //採用系統帳號驗證

4. 修改或者新增 [[email protected] ~]#vi /etc/sasl2/smtpd.conf

pwcheck_method: saslauthd

mech_list: plain login

log_level:3

5. [[email protected] ~]# vi /etc/dovecot/dovecot.conf    修改或者新增

protocols = imap pop3

listen = *

6. Dovecot 配置 dovecot.conf 檔案配置郵件接收的儲存位置,要和postfix配置目錄一致

/etc/dovecot/conf.d/10-mail.conf 去掉下面一行註釋

mail_location = maildir:~/Maildir

7.  重新啟動程式

[[email protected] ~]# /etc/init.d/postfix restart

[[email protected] ~]# /etc/init.d/dovecot restart

[[email protected] ~]# /etc/init.d/saslauthdrestart

8.  設定開機自動啟動

[[email protected] ~]#chkconfig –level 345 postfixon

[roo[email protected] ~]#chkconfig –level 345 dovecoton

[[email protected] ~]#chkconfig –level 345saslauthd on

9. 新增系統郵件帳號

(1)先新建系統帳號

[[email protected] ~]# useradd  -s /sbin/nologin -m  wangsl

[[email protected] ~]# passwd   test //密碼 test

郵件存放目錄

/home/pay/Maildir

(2)新增郵箱賬號

[[email protected] ~]# /usr/sbin/testsaslauthd  -u test  -p test

上面這步所使用的使用者名稱和密碼,系統中必須有該使用者和對應的密碼,否則會報錯

返回:ok,successd,執行成功。

10. 系統本機測試 110 埠郵件接收情況

[[email protected] root]# telnet localhost 110

Trying 127.0.0.1...

Connected to smtp.test.com (127.0.0.1).

Escape character is '^]'.

+OK Dovecot ready.

user test

+OK

pass test

+OK Logged in.

list

+OK 1 messages:

retr 1

dele 1

1 481

下面命令可以測試傳送郵件

mail -s 'Postfix mail test'[email protected]< /etc/hosts

有時候出現郵件目錄錯誤,是配置郵件接收目錄不正確

[[email protected] ~]# su - oracle

[[email protected] ~]$ mkdir -p/u01/oracle/mail/.imap/INBOX

[[email protected] ~]$ exit

11.  foxmail 測試

新增賬號:pop3 stmp 都需要設定為域名地址(mail.szniuwang.com)

最後就可以通過outlook,foxmail等客戶端測試郵件伺服器了。

Foxmail 深圳IMAP接收方式

Foxmail 設定pop3 郵件接收方式

Outlook 2007 客戶端設定

完全正常後刪除測試郵箱,以免存在系統漏洞。

#userdel –r test

userdel –f test

postconf –d message_size_limit 顯示預設郵件大小

出現傳送郵件 Relay access denied 錯誤需要 outlook設定正常才可以的 

 '[email protected]',時間為 2014/10/27 11:41

            554 5.7.1 <[email protected]>:Relay access denied

修改郵件附件傳送大小限制

/etc/postfix/main.cf

message_size_limit = 20480000

常見問題1     testsaslauthd出現0: NO "authentication failed"錯誤提示的解決辦法

在停止sendmail服務: service sendmail stop  或者:   /etc/rc.d/init.d/sendmail stop  後解除安裝掉sendmail:  rpm -e sendmail

後安裝了postfix    yum -y installpostfix。

配置好main.cf

安裝 cyrus-sasl 軟體包: yum -y install cyrus-sasl*

安裝SMTP認證元件:yum install -y dovecot saslauthd*

執行saslauth

saslauthd -v

#如果顯示類似authenticationmechanisms:getpwent pam shadow則可顯示saslauthd支援的認證機制

編輯/etc/sysconfig/saslauthd檔案,

vim /etc/sysconfig/saslauthd

#確認其為MECH=pam

啟動saslauthd    service saslauthdstart

執行:

/usr/sbin/testsaslauthd –u user –p‘password’

這時總是出錯:0: NO "authentication failed"

該怎麼辦呢?

其實很簡單:vi /etc/sysconfig/saslauthd

#MECH=pam

改成:

MECH=shadow

FLAGS=

然後重啟saslauthd: service saslauthd restart

再來測試 /usr/sbin/testsaslauthd –u myuserid –p ‘mypassword’  //這裡的賬號和密碼要換成你的linux 的使用者名稱和密碼

0: OK "Success."

終於成功了。

軟體包下載

#yumdownloader samba

相關推薦

阿里CentOS Linux6.5伺服器postfix +dovecot搭建郵件伺服器--

注:本文的郵件伺服器只用於傳送郵件,也就是STMP伺服器。 企業域名1082.cn 郵件伺服器 mail.1082.cn Mail伺服器名: mail.1082.cn IP:120.24.70.237 一、準備工作 1. 為郵件伺服器新增DNS解析 雖然不加DNS解

阿里 CentOs 6.5 靜默安裝oracle11g

oracle.install.option=INSTALL_DB_SWONLY         //安裝型別,只裝資料庫軟體 ORACLE_HOSTNAME=oracle                 //主機名稱(命令hostname查詢) UNIX

CentOS 7 安裝 Redis3.2.3 並開啟外網訪問(,轉)

前一段時間寫過一篇codis叢集的文章,寫那篇文章主要是因為當時的專案不支援Redis自身叢集的功能。 而現在最新的專案是需要redis叢集的,這篇文章我們就來介紹下有關redis的安裝與配置。 一、redis原始碼安裝 截至到2016.8.11,redis最新穩定版本為3.2.3.本篇文章我們就以此

破解版百度】完美解決限速

下載速度快。 現在破解版的百度雲真的是各式各樣了,無意間發現一款破解版的百度雲,好的工具在這裡一定要和大家分享了。 咱們先來看看下載速度,我這裡應該是10M的頻寬,穩定之後基本保持在2MB/s的下載速度。 教程什麼的這個軟體都有連結的,最新版本的也都是可以下載到的,先提供一份。 百

最完美的PDF轉換成Word轉換器完全免費破解版()資源共享

史上最完美的PDF轉換成Word轉換器完全免費破解版(親測好用),直接上免費的下載地址!  PDF轉word,pdf合併工具。 下載地址:網盤下載 破解步驟:先安裝主程式,末尾是full2990結尾的,安裝完成後不要開啟軟體,然後安裝破解補丁,即可破解成功!還帶配套的功能強大

最完美的PDF轉換成Word轉換器完全免費破解版()

下載地址:網盤下載 破解步驟:先安裝主程式,末尾是full結尾的,安裝完成後不要開啟軟體,然後接著安裝破解補丁,即可破解成功! 需要的老鐵們直接拿去用吧,親測好用! 軟體功能介紹: 1、輕鬆轉化PDF文件,轉換的檔案還原程度高,能夠最大程度的保留原有佈局不改變。可以

破解版百度

原文連結:破解版百度雲【親測好用】 現在破解版的百度雲真的是各式各樣了,無意間發現一款破解版的百度雲,好的工具在這裡一定要和大家分享了。 咱們先來看看下載速度,我這裡應該是10M的頻寬,穩定之後基本保持在2MB/s的下載速度。 教程什麼的這個軟體都有連結的,最新版本的也都是可以下載到

js移動客戶端-----取消滑動事件()

問題 density chm 阻止默認行為 logs 高度 頭上 function 禁止滑動 現在做的響應式網站,遇到一問題: 網站頭上的側邊欄點開始,向下滑動會出現空白,於是,想到要把body禁止滑動 網上搜了很多辦法,也不好用 註意: 手指在滑動整個屏幕時,會影響瀏覽器

ring buffer C++ 11 加入 條件變數

  #pragma once #include <atomic> #include <mutex> class CCycleBuffer { public: bool isFull(); bool isEmpty(); void empty()

功能強大的PDF轉Word轉換器完全免費破解版()免費下載

功能強大好用的PDF轉Word轉換器完全免費破解版(親測好用)免費下載!PDF轉word質量高,可以輕鬆合併pdf。 下載地址:https://pan.baidu.com/s/1vMWIBxHa045XX-pUw659LA 安裝破解步驟:先安裝主程式,末尾是full結尾的,安裝完成後不要開啟軟體,

navicat for mysql 的 中文破解版

官方下載(中文): Navicat for MySQL Enterprise Edition 8註冊碼: NAVJ-W56S-3YUU-MVHV NAVE-WAGB-ZLF4-T23K

js獲取位址列url引數

程式碼 : //獲取位址列引數 function GetQueryString(str) { let LocString = String(window.documen

!】2018谷歌映象_Google學術映象導航推薦:Y學術

【Y學術(https://ab.waguge.com)】是全網真正24小時可用的谷歌映象導航,每隔10分鐘自動嚴格檢測映象池裡所有映象的可用性,並提取開啟速度最快的前10個給大家,所有映象均可正常開啟、正常搜尋、無驗證碼。Y學術可以說是同類型的谷歌學術映象導航網址中更新最快(

系列:命令列中輸入 npm run *** 一次執行兩條命令

親測好用系列: 1.在當前專案中,執行以下依賴: npm install concurrently --save //concurrently:同時 2. 在package.json檔案的script標籤,嵌入一下程式碼: "start": "concurrently \"npm run d

PyCharm2016啟用方案,

按照步驟進行PyCharm的安裝 安裝到輸入驗證碼的步驟時,選擇第二個啟用方式,之後粘帖以下“亂碼”: 43B4A73YYJ-eyJsaWNlbnNlSWQiOiI0M0I0QTczWVlKIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiw

kali 更新源,

deb http://mirrors.163.com/debian/ jessie main non-free contrib deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib d

request庫 【Python】【】安裝第三方包報錯:AttributeError:'module' object has no attribute 'main'

0x00  環境簡介和安裝 我這裡使用的是python2.7版本,直接使用pycharm2018這款IDE。 首先在pycharm中配置一下virtualenv環境,virtualenv是一個建立獨立Python執行環境的工具,為一個應用建立一套“隔離”的Python執行環境。 建立new

簡單微信公眾號支付,!

原文連線:https://gitee.com/1600875665/weixinPay 注意:微信支付授權目錄填寫網站url而不是介面url(被坑了一天) <?php header('Content-type:text/html; Charset=utf-8');

解決問題--環境變數jdk64,32位相互切換(

環境變數jdk64,32位相互切換 @author Simon ###背景 ​ 我用的是jdk1.8(64位),但是根據專案需求,開發環境需要用32位jdk,我在win7上安裝兩個jdk,方便不同場景開發。 64位路徑:C:\Program Files\J

目標檢測必須要OpenCV?10行Python程式碼也能實現,

短短10行程式碼就可以實現目標檢測?!本文作者和他的團隊構建了一個名為ImageAI 的Python庫,集成了現今流行的深度學習框架和計算機視覺庫。本文將手把手教你構建自己的第一個目標檢測應用,而且文摘菌已經幫你踩過坑了,親測有效!無人超市、人臉識別、無人駕駛,眾多的使用場景