Sudo mailqcom
A Unix command!
mailq
is a command used to display the mail queue, which is a list of emails that are waiting to be delivered to their final destinations. The sudo
command is used to run the command with superuser privileges, which is necessary to access the mail queue.
When you run sudo mailq
, you'll see a list of emails that are currently in the mail queue, along with information about each email, such as:
- The sender's email address
- The recipient's email address
- The size of the email
- The status of the email (e.g. "deferred", "pending", etc.)
Here's an example output:
Mail queue info:
Total requests: 5
Top request: 1234 ([email protected])
Deferred: 3
Pending: 2
Mail queue:
# Status Sender Recipient Size Time
1 deferred user1@example user2@example 1024 2023-02-20 14:30:00
2 pending user3@example user4@example 512 2023-02-20 14:35:00
3 deferred user5@example user6@example 2048 2023-02-20 14:40:00
4 pending user7@example user8@example 1024 2023-02-20 14:45:00
5 deferred user9@example user10@example 4096 2023-02-20 14:50:00
The output will vary depending on the specific mail server and the emails that are currently in the queue.