首页 > 其他分享 >5分钟教你配置命令行界面的163邮箱客户端

5分钟教你配置命令行界面的163邮箱客户端

时间:2023-05-04 19:04:21浏览次数:32  
标签:set getmail bind inbox mutt 邮箱 Mail 163 客户端


网易163免费邮箱相关服务器信息:

5分钟教你配置命令行界面的163邮箱客户端_命令行


mutt 是命令行下的邮件客户端,它仅是管理邮件的组织编辑,邮件的发送和接收需要调用对应的程序。

这里用的分别是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

 account 163 

 tls on 

 tls_certcheck off 

 tls_starttls off 

 auth on 

 host smtp.163.com 

 user username 

 from [email protected] 

 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

注:查看muttrc的选项可以使用 man muttrc,

比如 editor 选项可以修改对应的编辑器。


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


注:这里指定列出所有 MailBox, 如果仅仅是 ~/Mail/inbox的话,可以使用

$ mutt -f ~/Mail/inbox/

标签:set,getmail,bind,inbox,mutt,邮箱,Mail,163,客户端
From: https://blog.51cto.com/u_16097040/6244040

相关文章

  • wordpress插件: WP Mail SMTP 配置邮箱(wordpress 6.2)
    一,安装插件:安装完成,如图:从已安装的插件中可以看到说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest     对应的源码可以访问这里获取: https://github.com/liuhongdi/     或: https://gitee.com/liuhongdi......
  • SSH远程登陆Unbuntu(SSH服务器和客户端配置)
    SSH服务器配置参考:https://blog.csdn.net/weixin_43833430/article/details/127262464 《Ubuntu安装SSH服务》目的:在Unbuntu 中,安装openssh 服务器,开启服务器;安装防火墙,配置防火墙参数(可以通过SSH),然后开启防火墙。重要命令:1systemctlenablessh#开机启动2systemc......
  • Grids for mac(Instagram客户端工具)v8.5.5免注册版
    GridsforMac是一款允许您在桌面上访问Instagram的应用程序。使用网格,您可以像在手机上一样查看您的Instagram提要、故事和探索页面。您还可以发布照片和视频,对帖子点赞和评论,以及向其他用户发送直接消息。Grids具有简洁、直观的界面,易于使用。它还提供了多种自定义选项,包......
  • Python 基于win32com客户端实现Excel操作
    测试环境Python3.6.2代码实现非多线程场景下使用新建并保存EXCELimportwin32com.clientfromwin32apiimportRGBdefsave_something_to_excel(result_file_path):excel_app=win32com.client.Dispatch('Excel.Application')excel_app.Visible=False#设......
  • 07客户端登录
    07客户端登录在开始实现客户端登录前,我将之前的代码做了以下重构。IConfig重新命名为ServiceProxyConfigClientBase重命名为AbpServiceBase文件名改为api\AbpServiceBase.ts将ServiceProxyConfig独立到api\ServiceProxyConfig.ts文件中修改了使用nswag生成客户端的配......
  • Redis客户端
    https://www.jianshu.com/p/b5617c901fb7 使用telnet连接redis ......
  • IM开发干货分享:IM客户端不同版本兼容运行的技术思路和实践总结
    本文由巩鹏军分享,原题“IM兼容性基建”,本文有修订。1、引言一个成熟的IM成品,在运营过程中随着时间的推移,会发布不同的版本,但为了用户体验并不能强制要求用户必须升级到最新版本,而服务端此时已经是最新版本了,所以为了让这些不同客户端版本的用户都能正常使用(尤其IM这种产品,不同版本......
  • IM开发干货分享:IM客户端不同版本兼容运行的技术思路和实践总结
    本文由巩鹏军分享,原题“IM兼容性基建”,本文有修订。1、引言一个成熟的IM成品,在运营过程中随着时间的推移,会发布不同的版本,但为了用户体验并不能强制要求用户必须升级到最新版本,而服务端此时已经是最新版本了,所以为了让这些不同客户端版本的用户都能正常使用(尤其IM这种产品,不同......
  • 工程监测多通道振弦传感器无线采集仪 发送数据到邮箱
    河北稳控科技多通道振弦传感器无线采集仪发送数据到邮箱 每次设备启动后会将采集到的传感器数据进行内部存储,并在设置好的时间间隔将数据发送出去,通过修改“数据发送方式”参数,监测数据可由数据接口输出也可经由无线网络发送。在发送监测数据时,可通过修改“数据包协议”参数......
  • 双十一期间,海外企业邮箱如何注册?
    海外企业邮箱价格是外贸公司注册邮箱时要对比的,双十一期间许多企业邮箱会有优惠活动,但是如果你进行对比,对外贸企业来说还是选择ZohoMail企业邮箱划算,最重要的是它的安全级别远高于普通邮箱。海外企业邮箱如何注册呢?1.选择公司邮箱品牌行业里企业邮箱大品牌都是拥有20多年邮箱......