5分钟教你配置命令行界面的163邮箱client
2023-09-11 14:21:03 时间
网易163免费邮箱相关server信息:
mutt 是命令行下的邮件client,它仅是管理邮件的组织编辑,邮件的发送和接收须要调用相应的程序。
这里用的各自是getmail 和 msmtp.
过程例如以下
=====
1. 安装mutt, getmail, msmtp
======================
$ sudo yum -y install mutt getmail msmtp
2. Build Mail Dir
==================Create ~/Mail directory:
$ mkdir -m 700 ~/Mail/inbox/{,tmp,new,cur}
3. Configure getmail
=====================Reference:
$ mkdir ~/.getmail
$ cd ~/.getmail
$ vi getmailrc.163
[retriever]
type = SimplePOP3SSLRetriever
server = pop.163.com
port = 995
username = username
password = password
[destination]
type = Maildir
path = ~/Mail/inbox/
[options]
verbose = 0
# don't delete messages on server.
delete = false
# don't retrieve all available message.
read_all = false
message_log = ~/.getmail/getmail.log
4. Config ~/.msmtprc
=====================$ touch ~/.msmtprc
$ chmod 600 ~/.msmtprc
$ vi ~/.msmtprc
tls on
tls_certcheck off
tls_starttls off
auth on
host smtp.163.com
user username
from username@163.com
password password
port 465
5. add the following lines to ~/.muttrc
========================================set folder=~/Mail
mailboxes +inbox
mailboxes +linux
set sendmail="/usr/bin/msmtp"
# the mail_address name displayed on the mail list.
set from="mail_address"
set pager_stop=yes
set beep=no
set signature="~/.signature"
set copy
set edit_headers
set fast_reply
set help
set include=yes
bind index \cr search-opposite
bind index \cs search-next
bind pager \cr search-opposite
bind pager \cs search-next
bind pager \er read-thread
bind index \er read-thread
macro index G "!getmail -r ~/.getmail/getmailrc.163\n" "Invoke getmail"
# append address to Cc.
my_hdr Cc: address
6. getmail
===========Use cron or other programs to run getmail to check out mail.
getmail command
$ getmail -r ~/.getmail/getmailrc.163
fetch the mail every two minutes.
$ crontab -e
*/2 * * * * getmail -r ~/.getmail/getmailrc.163
mailbox can't be processed in one config file. But mulitple config
file can be processed.
7. run mutt
============$ mutt -y
相关文章
- .NET 跨平台RPC框架DotNettyRPC Web后台快速开发框架(.NET Core) EasyWcf------无需配置,无需引用,动态绑定,轻松使用 C# .NET 0配置使用Wcf(半成品) C# .NET Socket 简单实用框架 C# .NET 0命令行安装Windows服务程序
- vue-cli中配置sass
- HugeGraph后端存储使用RocksDB时的参数配置
- linux下如何使用命令行配置网络
- Hadoop 集群硬件配置
- Jenkins持续集成实战之配置QQ邮箱自动发送RobotFramework测试结果及构建结果通知
- 网络文件系统nfs服务端配置客户端权限时的demo例子
- Lua 环境配置(通过命令行直接运行)
- ASP.NET中配置应用程序
- 华为eNSP配置防火墙命令行放行
- lvm 新建一个vg 逻辑卷 配置启动
- mysql的读写分离配置
- [转]Spring Boot @EnableConfigurationProperties @ConfigurationProperties注解配置原理源码分析
- nginx根据路径配置反向代理
- centos的命令行个性化配置
- [砖载]VMware VMnet8 模式共享主机网络配置静态 IP 和 DNS