1、安装邮件服务器软件
(图片来源网络,侵删)在CentOS系统中,可以使用Postfix或Dovecot作为邮件服务器软件,这里以Postfix为例进行介绍。
sudo yum install postfix y
2、配置Postfix
编辑/etc/postfix/main.cf文件,设置以下内容:
myhostname = your_domain.com mydomain = your_domain.com myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain relayhost = [smtp.huaweicloud.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_use_tls = yes smtpd_tls_cert_file=/etc/pki/dovecot/certs/dovecot.pem smtpd_tls_key_file=/etc/pki/dovecot/private/dovecot.pem smtpd_tls_loglevel=1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom
3、创建SASL密码文件
sudo postmap /etc/postfix/sasl_passwd
输入以下内容:
[smtp.huaweicloud.com]:587 your_email@your_domain.com your_email@your_domain.com password
4、重启Postfix服务
sudo systemctl restart postfix
1、添加华为云企业邮箱账户
登录华为云企业邮箱,点击“设置”>“成员管理”,添加一个新的成员,将邮箱地址设置为你的Windows 10邮箱地址,为该成员分配权限。
2、配置Outlook客户端
打开Outlook客户端,点击“文件”>“信息”>“账户设置”>“账户设置”,点击“添加账户”,选择“Exchange Server或其他兼容服务”,然后输入以下信息:
显示名称:你的姓名或邮箱地址的一部分(张三)
电子邮件地址:你的Windows 10邮箱地址(zhangsan@example.com)
用户名:你的华为云企业邮箱地址(your_email@your_domain.com)
密码:你的华为云企业邮箱密码
服务器设置:使用自动发现功能获取设置,或者手动输入以下信息:
服务器地址:outlook.office365.com(或exchange.huaweicloud.com,根据你的华为云企业邮箱服务商而定)
端口:443(SSL连接)或25(非SSL连接)
加密方法:选择与服务器相同的加密方法(TLS或SSL)
域:你的华为云企业邮箱域名(your_domain.com)
登录到以下目录:选择“我的帐户是xxxx@xxxx.onmicrosoft.com的代理”(其中xxxx@xxxx.onmicrosoft.com是你的华为云企业邮箱地址)
点击“下一步”,完成设置。
上一篇:为什么相册缓存圈