Centos服务器接收邮件方法

 时间:2026-02-16 12:48:10

1、系统版本和内核

Centos服务器接收邮件方法

2、yum install epel-release 

Centos服务器接收邮件方法

3、安装getmail


yum -y install getmail

Centos服务器接收邮件方法

4、创建用户并设置密码

Centos服务器接收邮件方法

5、切换到getmail用户

创建配置文件、日志文件


mkdir ~/.getmail
touch ~/.getmail/log
touch ~/.getmail/getmailrc

Centos服务器接收邮件方法

6、编辑配置文件~/.getmail/getmailrc

verbose = 0


delete = true
message_log = ~/.getmail/log
message_log_verbose = true

[retriever]


type = SimplePOP3Retriever
server = pop.163.com
username = username //username 或 username@163.com,自行替换为163邮箱帐号即可
password = userpwd //163邮箱帐号的密码

[destination]


type = Maildir
path = ~jeffp/Maildir/

Centos服务器接收邮件方法

7、创建邮件保存目录


mkdir -p ~/Maildir/cur
mkdir -p ~/Maildir/new
mkdir -p ~/Maildir/tmp

Centos服务器接收邮件方法

8、收取邮件

getmail -v -n -r ~/.getmail/getmailrc

Centos服务器接收邮件方法

  • 学厨师一般要多少钱啊
  • 怎样让自己的老婆喜欢下厨房
  • 老人便秘吃什么好 老人便秘你不知道的7个窍门
  • 轿车托运时可以放物品吗
  • 紫狱怎么获得
  • 热门搜索
    屡试不爽是什么意思 仪式感是什么意思 长袖善舞的意思 burst是什么意思 孤帆远影碧空尽的意思 妖魔鬼怪的意思 洞若观火的意思 祝福祖国手抄报 己所不欲 勿施于人的意思 茱莉蔻适合什么年龄