mac os 终端提示 you have new mail

本文探讨了Mac OS X系统中出现的终端启动时显示“您有新邮件”提示的问题。作者发现这一现象可能由安装的第三方应用或脚本引起,并详细记录了问题的根源在于WordPress尝试使用本地邮件系统发送消息但因收件人地址无效而失败的过程。文中还提供了如何通过终端命令查看和删除这些邮件的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这里的信息可能是由于所做的什么操作触发了发邮件的事件, 系统发送的邮件提醒.

我遇到的原因是由于运行 cron , 由于权限所导致了发邮件的事件提醒.

Last login: Tue Apr 26 09:15:20 on console
You have new mail.

在这里找到了原因

 

I was also having this issue of "You have mail" coming up every time I started Terminal.

What I discovered is this.

Something I'd installed (not entirely sure what, but possibly a script or something associated with an Alfred Workflow [at a guess], made a change to the OS X system to start presenting Terminal bash notifications. Prior to that, it appears Wordpress had attempted to use the Local Mail system to send a message. The message bounced, due to it having an invalid Recipient address. The bounced message then ended up in the local system mail inbox. So Terminal (bash) was then notifying me that "You have mail".

You can access the mail by simply using the command

mail

then

t

This will show you the first message. Use

n

To jump to the next message. This may help you identify what attempted to send the message(s).

Use the command

d

To delete each message when you are done looking at them.

In my particular case, there were a number of messages. It looks like the one was a returned message that bounced. It was sent by a local Wordpress installation. It was a notification for when user "Admin" (me) changed its password. Two additional messages where there. Both seemed to be to the same incident.

What I don't know, and can't answer for you either, is WHY I only recently started seeing this mail notification each time I open Terminal. The mails were generated a couple of months ago, and yet I only noticed this "you have mail" appearing in the last few weeks. I suspect it's the result of something a workflow I installed in Alfred, and that workflow using Terminal bash to provide notifications... or something along those lines.

转载于:https://www.cnblogs.com/debmzhang/p/5433828.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值