Andrew Beaton :: FAQ

Tag: Email

Postfix Mail Queue Commands

by Andrew on Mar.10, 2010, under Email, Linux, Postfix

To resend the mails in the mail queue, type either of the following two commands:

# postfix flush
# postfix -f

To see the mail queue, type:

# mailq

To remove all mail from the mail queue, type:

# postsuper -d ALL

To remove all mails in the deferred mail queue, type:

# postsuper -d ALL deferred
Leave a Comment :, , , more...

Redirect root mail to an external e-mail address

by Andrew on Nov.27, 2009, under Linux

Add this line to the bottom of /etc/aliases:

root: your_email@domain.com

Run this command:

newaliases

Restart your mail server and run the following command to test:

echo Test | mail -s "Test Message" root
Leave a Comment :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

 

Archives

All entries, chronologically...