Centos7 下配置mail使用163郵箱傳送郵件
編輯/etc/mail.rc配置檔案
# shift + g 直接到最後一行編輯
sudo vim /etc/mail.rc
# 在檔案末尾加入以下配置
set [email protected]163.com
set smtp=smtp.163.com
set [email protected]163.com
set smtp-auth-password=客戶端授權密碼 #163郵箱需要單獨配置一個“客戶端授權密碼”給客戶端使用
set ssl-verify=ignore
set nss-config-dir=/etc/maildbs/
set smtp-auth=login
163客戶端授權密碼設定方式
測試郵件是否能正常傳送
# 通過管道符指定要傳送的內容
echo "this is content." | mail -s "this is subject." -a ~/file.txt [email protected]
相關推薦
CentOS6.5下呼叫外部郵箱傳送郵件
以下是自己收集的實用Linux下簡單配置外部郵箱傳送郵件的方法:1、配置/etc/mail.rc,使用mail命令# vim /etc/mail.rc###呼叫外部郵箱 set [email protected] set smtp=smtp.exmail
Centos7 下配置mail使用163郵箱傳送郵件
編輯/etc/mail.rc配置檔案 # shift + g 直接到最後一行編輯 sudo vim /etc/mail.rc # 在檔案末尾加入以下配置 set [email prot
linux下通過配置mailx和第三方郵箱 傳送郵件
使用mailx+postfix 通過伺服器傳送的郵件經常會被歸為垃圾郵件,甚至會被拒收,所以需要利用第三方郵箱賬戶作為發件人來發送郵件。部署系統為Centos7。確認postfix是否執行:systemctl status postfix如果沒有啟動需要先啟
阿里雲Centos7中GitLab使用smtp 163郵箱傳送郵件的注意事宜
1.修改gitlab.rb配置項目錄:/etc/gitlab/gitlab.rb修改:gitlab_rails['smtp_enable'] = truegitlab_rails['smtp_address'] = "smtp.163.com"gitlab_rails['sm
Javamail配置阿里雲郵箱傳送郵件
前言:前面已經介紹過使用163郵箱傳送郵件啟用賬號的例子了,本來想著應該千篇一律的,但是這裡使用阿里郵箱傳送郵件略有不同,更改配置之後總是報錯,所以這裡記錄一下,為以後再次搭建方便,同時如果遇到同樣問題的你看到這篇部落格解決了,那就更好了。先了解一下基本的配置元素的概念:什麼
Centos7下配置phpMyAdmin(提供HTTPS服務)
phpmyadmin https httpd Centos7下配置phpMyAdmin(提供HTTPS服務)phpMyAdmin可以通過web方式控制和操作MySQL數據庫。通過phpMyAdmin 可以完全對數據庫進行操作,例如建立、復制和刪除數據等等。配置環境Centos7 2臺(IP1:19
CentOS7下配置網絡yum源(附帶下載地址)
tro arch all 運行 help soc 1-1 centos6 earch 一、查看外網是否通暢 配置網絡yum源(需要保證外網開通,我這裏是使用網易163提供開源鏡像站) 二、下載repo文件 cd /etc/yum.repos.dwget http:
Redis 在Centos7下配置開機自啟動
腳本 fin sta ive 鏈接 權限 開機自啟 chmod usr 設置Redis開機啟動需要如下幾個步驟: 編寫配置腳本 [ vim /etc/init.d/redis ] #!/bin/sh # # Simple Redis init.d script co
centos7下配置vlan+kvm虛擬機
linux vlan kvm環境: centos7u3一臺 kvm虛擬機四臺 ======================================安裝配置命令: [root@wing ~]# yum install epel-release -y [root@wing ~
CentOS7下配置bacula-web
bacula一、介紹Bacula-Web是一個php編寫的web應用,它能夠運行在apache或者nginx上,主要可以做一個bacula的備份展示。二、安裝與配置1)安裝apache# sudo yum -y install httpd # systemctl enable httpd # systemct
centos7下配置saltstack
int firewall 配置文件 開機自啟動服務 roc centos7 gpo mct lld 1、下載 使用yum方式即可,可以更換下yum源,這裏使用的阿裏雲的 [root@salt-master ~]# wget -O /etc/yum.repos.d/Cent
CentOS7 下配置DHCP服務
DHCP Linux 服務 實驗目的:通過一臺DHCP服務器實現給多網段分配IP地址,並且給特定主機分配特定的IP地址。 一、 實驗環境及環境配置1.0 yum install dhcpd #直接通過yum安裝dhcpd,但也可以通過光盤安裝 1.1 DHCP-Server CentOS 7.
Centos7 下 配置 rsync 以及 rsync+inotify 實時同步
否則 tst rsync服務 notify 檢測 日誌 文件備份 過程 ddr Centos 7 下 配置 Rsync 以及 rsync+inotify 實時同步 rsync介紹 rsync是一個開源的快速備份工具,可以在不同主機之間鏡像同步整個目錄樹,支持增量備份,保持鏈
CentOS7下配置GlusterFS供Kubernetes使用
如果 ota harbor aging 2個 命令格式 readme deploy nod CentOS7下配置GlusterFS供Kubernetes使用 [TOC] 1. 環境說明 系統:CentOS7,/data為非系統分區掛載目錄docker:1.13.1kuber
Centos7下配置Java web環境(JDK、Tomcat、Mysql)
sql ner route aio word client rpm node share 在Centos7中配置java web環境主要涉及三方面配置:JDK、Tomcat以及Mysql 這裏使用版本如下: JDK:jdk-8u181-linux-x64,下載地址:http
使用阿里雲郵箱傳送郵件
程式碼部分 /** * 傳送郵件 (阿里雲郵箱企業版) * * @param fromEmail * 傳送郵箱 * @param toEmail * 接收郵箱 * @pa
java連線163郵箱傳送郵件
一:jar包:下載連結:連結: http://pan.baidu.com/s/1dDhIDLv 密碼: ibg5二:程式碼 1---------------------------------------------------------------------------------- packag
CentOS7 下配置Apache支援.htaccess偽靜態檔案
在安裝好apache、mysql、php之後,在訪問系統的一些頁面時總是報404,檢視日誌報錯[client xxx:45783] script '/var/www/html/xxx/about.php' not found or unable to stat,搜尋資料後發現是需要手工啟
centos7下配置Tomcat開機啟動(service方式和daemon方式)
參考博文:Linux下daemon部署Tomcat 通常我們在開發環境使用tomcat時直接使用$CATALINA_HOME/bin/startup.bat和shutdown.bat來啟動和關閉tomcat。然而在生產環境中我們需要將tomcat配置成以daemon守護程序來執行,主
Centos7下配置Hadoop偽分散式環境
Centos 版本:7 Hadoop版本:2.7.4 Java版本:1.8 一、安裝JDK 官網下載jdk 1.8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.