Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remove undeliverable local mail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove undeliverable local mail
Authored by: betabug on Dec 25, '06 04:20:25AM

After a quick mailq shows that there are still messages in the queue (or that the mail system is down, in which case mailq will report it), entering sudo postfix flush will start delivering the mails from the queue (and it starts up the mail system too if it was down).

In case you are not working as an admin user (good idea!), you can add this command to the /etc/sudoers config file (using the visudo command, never editing /etc/sudoers directly. Adding a line like this should do it fine, where "username" should be your username:

username ALL= NOPASSWD: /usr/sbin/postfix flush


[ Reply to This | # ]