pin*_*ple 4 email mutt arch-linux mta
我想在 Arch Linux 的基本安装上使用命令行邮件客户端,邮件或 mutt 或其他一些实用程序。我读到这些只是邮件客户端,这意味着我们还必须安装邮件传输代理。我试图配置 exim 但这没有奏效。有没有其他可以轻松配置的实用程序以及如何配置它?
Postfix 很容易配置,特别是通过“智能主机”(Gmail 或 ISP 或其他)进行中继。
为 Gmail 配置 Postfix:
更新/etc/postfix/main.cf:
compatibility_level = 2
inet_interfaces = loopback-only
relayhost = [smtp.gmail.com]:587
# NOTE: the CAfile/CApath is distro-dependent!
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_loglevel = 1
smtp_tls_security_level = verify
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
Run Code Online (Sandbox Code Playgroud)创建/etc/postfix/sasl_passwd:
[smtp.gmail.com]:587 joe@gmail.com:JoesSekritPassword
Run Code Online (Sandbox Code Playgroud)以 root 身份运行:
postmap /etc/postfix/sasl_passwd
chmod 640 /etc/postfix/sasl_passwd*
chgrp postfix /etc/postfix/sasl_passwd*
Run Code Online (Sandbox Code Playgroud)告诉 Postfix 重新加载配置:
postfix reload
Run Code Online (Sandbox Code Playgroud)Exim 也不错,只要您忽略所有 Debian 特定的教程及其宏的废话。
还有msmtpand esmtp,它只能使用智能主机,因此不需要作为守护程序运行。它们也更容易配置,尤其是对于多用户环境。
如果您正在寻找该mail命令,请确保您获得heirloom-mailx或 GNU mailutils。(经典bsd-mailx作品,但它缺乏许多功能,例如 Maildir 或 MIME 支持。)不过,我仍然更喜欢 mutt。
| 归档时间: |
|
| 查看次数: |
8566 次 |
| 最近记录: |