# mailq - 显示出待发送的邮件队列

mailq指令可以显示出待发送的邮件队列。

# 适用范围

RedHat
RHEL
Ubuntu
CentOS
Debian
Deepin
SUSE
openSUSE
Fedora
Linux Mint
Alpine Linux
Arch Linux

# 语法

mailq

# 选项

# 举例

显示邮件队列

[root@localhost ~]$ sendmail -f weijie wj78080458@163.com  #发送邮件
123
.
You have new mail in /var/spool/mail/root
[root@localhost ~]$ mailq                  #显示邮件队列
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
CFF2E14321A*     284 Fri Oct  5 21:55:21  weijie@david.cn
                                         wj78080458@163.com 

-- 0 Kbytes in 1 Request.