网易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

account 163

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

5分钟教你配置命令行界面的163邮箱client的更多相关文章

  1. java实现邮箱发送信息--验证码的发送(163邮箱)

    1.maven环境 <!-- 发送邮件 --> <dependency> <groupId>javax.mail</groupId> <artif ...

  2. 【python】10分钟教你用python打造贪吃蛇超详细教程

    10分钟教你用python打造贪吃蛇超详细教程 在家闲着没妹子约, 刚好最近又学了一下python,听说pygame挺好玩的.今天就在家研究一下, 弄了个贪吃蛇出来.希望大家喜欢. 先看程序效果: 0 ...

  3. 10分钟教你用Python打造微信天气预报机器人

    01 前言 最近武汉的天气越来越恶劣了.动不动就下雨,所以,拥有一款好的天气预报工具,对于我们大学生来说,还真是挺重要的了.好了,自己动手,丰衣足食,我们来用Python打造一个天气预报的微信机器人吧 ...

  4. 【python】10分钟教你用python下载和拼接微信好友头像图片

    前言 相信微信大家是用得再多也不过了.那么,对于python+微信,又能玩出什么新的花样呢?下面小编就给大家带来一个好玩的东西.用python下载所有的微信好友的头像,然后拼接成一张大图.这样,大家就 ...

  5. 2018-10-8-3分钟教你搭建-gitea-在-Centos-服务器

    title author date CreateTime categories 3分钟教你搭建 gitea 在 Centos 服务器 lindexi 2018-10-08 09:54:39 +0800 ...

  6. 5 分钟教你快速掌握 GitHub Actions 自动部署博客

    自从 GitHub 宣布 GitHub Actions 在平台上对所有开发人员和存储库可用以来,GitHub Actions 越来越受欢迎.很多第三方平台在生态系统中有速度等限制,将进一步推动开发人员 ...

  7. 轻松三步教你配置Oracle—windows环境

    最近笔者在学习Oracle的时候,虽然度过了大家所说的安装难题,但是又遇到了一系列的问题,经过多方求教才知道原来是自己仅仅是安装了Oracle,却没有在环境变量中进行相应的配置.笔者也像大家遇到问题时 ...

  8. [转]Redmine 配置163邮箱

    redmine的邮件发送功能还是很有用的.像项目有更新啦,任务分配啦,都能邮件发送的相关责任人.我自己在linux服务器上安装并启动了redmine后,邮件一直发送了不了.查了网上的资料,都是讲修改下 ...

  9. 10分钟 教你学会Linux/Unix下的vi文本编辑器

    10分钟 教你学会Linux/Unix下的vi文本编辑器 vi编辑器是Unix/Linux系统管理员必须学会使用的编辑器.看了不少关于vi的资料,终于得到这个总结.不敢独享,和你们共享. 首先,记住v ...

随机推荐

  1. ACM -- 算法小结(八)字符串算法之Manacher算法

    字符串算法 -- Manacher算法 首先介绍基础入门知识,以下这部分来着一贴吧,由于是很久之前看的,最近才整理一下,发现没有保存链接,请原创楼主见谅. //首先:大家都知道什么叫回文串吧,这个算法 ...

  2. 2015 UESTC 搜索专题C题 基爷与加法等式 爆搜DFS

    基爷与加法等式 Time Limit: 20 Sec  Memory Limit: 256 MB 题目连接 http://acm.uestc.edu.cn/#/contest/show/61 Desc ...

  3. CentOS6永久修改主机名称

    1.修改network vi /etc/sysconfig/network 修改HOSTNAME值 2.修改hosts vi /etc/hosts 修改中间的那个localhost 3.使用hostn ...

  4. Android中数据存储(三)——SQLite数据库存储数据

    当一个应用程序在Android中安装后,我们在使用应用的过程中会产生很多的数据,应用都有自己的数据,那么我们应该如何存储数据呢? 数据存储方式 Android 的数据存储有5种方式: 1. Share ...

  5. 常用Linux命令集锦-ls命令

    1.命令格式:ls [选项] [目录名] 2.常用参数 -a:列出该目录下所有文件(包含隐藏文件). -A:列出该目录下除了隐藏文件的所有文件. -l:以行显示目录下的所有文件.输出信息从左到右分别是 ...

  6. 如何解决…has been modified since the precompiled header… was built的问题

    如何解决…has been modified since the precompiled header… was built 的问题 xcode5.1在程序中报错: File '/Applicatio ...

  7. ice地址

    http://www.zeroc.com/download/eclipse

  8. Android BottomNavigationBar底部导航控制器的使用

    最近Google在自己推出的Material design中增加了Bottom Navigation导航控制.Android一直没有官方的导航控制器,自己实现确实是五花八门,有了这个规定之后,就类似苹 ...

  9. Linux命令大全----系统管理相关命令

    林炳文Evankaka原创作品.转载请注明出处http://blog.csdn.net/evankaka       摘要:本文主要讲了Linux命令大全----系统管理相关命令,并附有实例 一.安装 ...

  10. Power Desginer系列01【转摘】

    近期在做一个业务系统的分析和数据模型设计,工作这几年也做过好几个项目的数据库模型的设计,期间也算是积累了一定的经验吧,这次有机会就写写我的数据库模型设计过程与方法. 在 数据库设计中,设计的目标就是要 ...