How to flush the mail queue of postfix
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hello,
say my MacBook is offline and I do something like:
$ echo hello | mail -s Hello [email protected]
The mail can't be sent immediately so it will be stored in postfix' mail queue for later delivery. How can I force postfix to attempt delivery?
$ sudo mailq Password:
postqueue: warning: Mail system is down -- accessing queue directly
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
53FAA957869 4800 Thu Aug 2 22:30:35 [email protected]
(Host or domain name not found. Name service error for name=somewhere.com type=MX: Host not found, try again)
. [email protected]
[...]
-- 44 Kbytes in 4 Requests.
According to man 1 postqueue, running postqueue -f should do what I want, but:
$ sudo postqueue -f
Password:
postqueue: fatal: Cannot flush mail queue - mail system is down
Thanks.
edit: how do I turn of the formatting done by the forum or get fixed-width fonts? Like [ + ... + ] makes a link and -- + -- strikes out the text.
2 replies
Sign in or join Beachball Help to reply.
- 0
- 0