How to flush the mail queue of postfix
Hello,
say my MacBook is offline and I do something like:
$ echo hello | mail -s Hello somebody@somewhere.com
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 tsuna@tsunaxbook2.local
(Host or domain name not found. Name service error for name=somewhere.com type=MX: Host not found, try again)
. somebody@somewhere.com
[...]
-- 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.
say my MacBook is offline and I do something like:
$ echo hello | mail -s Hello somebody@somewhere.com
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 tsuna@tsunaxbook2.local
(Host or domain name not found. Name service error for name=somewhere.com type=MX: Host not found, try again)
. somebody@somewhere.com
[...]
-- 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.
MacBook C2D 2Ghz 2G DDR, Mac OS X (10.4.10)