To check the email queue via SSH, you can use the following steps:
- Log in to your server via SSH.
- Run the command
exim -bpcto see the number of emails in the current queue. - Run the command
exim -bpto print a list of messages in the queue. This will display the time queued, size, message ID, sender, and recipient for each message. - You can use the
-foption to search the queue for messages from a specific sender. For example,exim -bp -f [email protected]. - You can use the
-roption to search the queue for messages for a specific recipient or domain. For example,exim -bp -r example.com. - You can use the
-ooption to print messages older than the specified number of seconds. For example,exim -bp -o 86400will print messages older than one day. - You can use the
-yoption to print messages that are younger than the specified number of seconds. For example,exim -bp -y 3600will print messages less than an hour old.