getmail的安装以及配置使用
1.安装
sudo apt-get install getmail4
2.配置
mkdir /home/debian/.getmail
cd /home/debian/.getmail
mkdir maildir
cd maildir
mkdir new cur tmp
3.配置文件
nano /home/debian/.getmail/getmailrc.163
文件内容如下:
# This is a configuration file for buddha@qq.com
[retriever]
type = SimplePOP3Retriever
server = pop.163.com
username = x1
password = x2
[destination]
type = Maildir
path = /home/debian/.getmail/maildir/
[options]
read_all = False
delete = False
# configuration file ends here
4.运行
getmail --rcfile=getmailrc.163
getmail会自动收取邮件,下载的邮件会保存在~/.getmail/maildir/new/下。
procmail的安装配置
1.sudo apt-get install procmail
2.配置文件
nano /home/debian/.procmailrc
#Preliminaries
SHELL=/bin/sh #Use the Bourne shell (check your path!)
MAILDIR=${HOME}/.getmail/maildir #First check what your mail directory is!
LOGFILE=${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "
:0
* ^From: x1@qq\.com
/dev/null
nano /home/debian/.forward
"|IFS=' ' && exec /usr/bin/procmail || exit 75 #debian"
全部完成后,重新启动,我从x1@qq.com发送邮件,发现根本不能阻止它接收邮件,请问,我的错误在哪里?
如何设定procmail?
上网、浏览、聊天、下载等
前往
- 公告/注意事项
- ↳ 新闻和通知
- ↳ 软件推荐
- 系统安装
- ↳ 教学和常见问答
- ↳ 系统安装和升级
- ↳ 启动和引导
- ↳ 网卡无线拨号
- ↳ 硬件与内核
- ↳ 笔记本及便携设备
- ↳ Ubuntu衍生版
- ↳ 其他类Unix OS发行版
- ↳ Debian发行版
- 配置美化
- ↳ 中文显示和输入法
- ↳ 个人配置文件存放点
- ↳ 软件文档翻译
- ↳ 窗口管理器及美化
- ↳ 桌面展示
- 软件使用
- ↳ 办公、图像、机械电子设计等
- ↳ Vim和Emacs
- ↳ 开源模板库
- ↳ 互联网相关软件
- ↳ 影音多媒体
- ↳ 游戏和模拟器
- ↳ 虚拟机和虚拟化
- ↳ Wine及其分支
- ↳ 其它类软件
- 服务器管理
- ↳ 服务器运维
- ↳ 云计算和容器(K8S/KVM/Docker/WSL等)
- ↳ Ubuntu VPS
- 程序设计与开发
- ↳ Shell脚本
- ↳ 软件/网站开发
- ↳ 内核及嵌入式开发
- ↳ Ubuntu编译和打包
- ↳ 开源小工具
- ↳ 挑战任务
- 感想与交流
- ↳ 深度PK版
- ↳ Ubuntu故事和感慨
- ↳ 同城交流
- ↳ 校园社团
- ↳ 港澳台校区
- ↳ 国外校区
- 站务区
- ↳ 论坛管理
- ↳ Ubuntu中文网上商店