Every once in a while, emails get stuck in my webserver’s mail queue behind a backlog of spam. Here are a few useful commands from this article to push the legit mails that are hanging out in /var/spool/mqueue/:
Force the whole queue to process:
# /usr/lib/sendmail -q -v
That’s not always good, since it’ll probably hang up on all the spammy emails.
So, this is how you run just some of the queue:
# /usr/lib/sendmail -qRstring
Where string is just the recipients alias or a domain, like @185vfx.com for example.
Or, call out specific emails by their queue id’s:
# /usr/lib/sendmail -qInnnnn