在Arch Linux上使用Makepkg
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
默认情况下,VULTR中的端口25被阻止。如果您需要在不联系VULTR支持的情况下发送电子邮件,则可以按照本教程进行操作,以将Exim设置为通过Gmail SMTP服务器发送电子邮件。
apt-get install exim4
运行以下命令以配置Exim4。
dpkg-reconfigure exim4-config
在询问时选择此选项:“ smarthost发送的邮件;无本地邮件 ”。
填写其余字段:
System mail name: YOUR_HOSTNAME
IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1
Other destinations for which mail is accepted: <BLANK>
Visible domain name for local users: <BLANK>
IP address or host name of the outgoing smarthost: smtp.gmail.com::587
Keep number of DNS-queries minimal (Dial-on-Demand)? No
Split configuration into small files? No
Root and postmaster mail recipient: <BLANK>
打开并编辑/etc/exim4/exim4.conf.template。
搜索:
.ifdef DCconfig_smarthost DCconfig_satellite
然后在其后添加以下行:
send_via_gmail:
driver = manualroute
domains = ! +local_domains
transport = gmail_smtp
route_list = * smtp.gmail.com
删除包含的其他smarthost块domains = ! +local_domains。
搜索:
begin authenticators
并在其后添加以下行:
gmail_login:
driver = plaintext
public_name = LOGIN
client_send = : YOUR_GMAIL_ACCOUNT@gmail.com : YOUR_GMAIL_PASSWORD
删除包含的其他身份验证器块public_name = LOGIN。
搜索:
transport/30_exim4-config_remote_smtp_smarthost
并在其后添加以下行:
gmail_smtp:
driver = smtp
port = 587
hosts_require_auth = $host_address
hosts_require_tls = $host_address
保存并关闭/etc/exim4/exim4.conf.template。
应用新配置:
update-exim4.conf
重新启动Exim4服务:
/etc/init.d/exim4 restart
现在使用以下命令发送测试电子邮件:
echo 'Test Message from VULTR.' | mail -s 'Test Message' YOUR_EMAIL_ADDRESS
检查/var/log/exim4/mainlog是否发生任何错误。现在,您可以从VULTR VPS发送电子邮件。
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
快速学习如何在Ubuntu 16.04上安装OpenSIPS控制面板,为VoIP提供商提供支持的功能。
学习如何在Fedora 28上安装Akaunting,一款适合小型企业和自由职业者的开源会计软件。
使用其他系统?Mailtrain是一个基于Node.js和MySQL / MariaDB构建的开源自托管新闻通讯应用程序。
了解導致Minecraft延遲的原因和解決方案,包括優化伺服器性能和減少滯後的步驟。
勒索軟件攻擊呈上升趨勢,但人工智能能否幫助應對最新的計算機病毒?AI 是答案嗎?在這裡閱讀知道是 AI 布恩還是禍根
ReactOS,一個開源和免費的操作系統,這裡有最新版本。它能否滿足現代 Windows 用戶的需求並打倒微軟?讓我們更多地了解這種老式但更新的操作系統體驗。
Whatsapp 終於為 Mac 和 Windows 用戶推出了桌面應用程序。現在您可以輕鬆地從 Windows 或 Mac 訪問 Whatsapp。適用於 Windows 8+ 和 Mac OS 10.9+
閱讀本文以了解人工智能如何在小型公司中變得流行,以及它如何增加使它們成長並為競爭對手提供優勢的可能性。
最近,Apple 發布了 macOS Catalina 10.15.4 補充更新以修復問題,但似乎該更新引起了更多問題,導致 mac 機器變磚。閱讀這篇文章以了解更多信息