Bennovations Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

Purge (flush) the PostFix mail queue after deferred, suspended or timed out issues

Views: 664
Votes: 0
Posted: 06 Aug, 2009
by: Patridge B.
Updated: 06 Aug, 2009
by: Patridge B.
If you see deferred, suspended, or timedout messages, after you correct the problem (which is typically related to the mailhost in the main.cf or /etc/hosts file, you have to purge the mail queue:

To verify the mailq status issue:

#mailq

To flush the queue:

# postqueue -f

or

# postfix -f

These commands will flush the mail queue and then remove all messages.
Others in this Category
document Setting the date forward on Linux/UNIX
document VI Command to delete till end of file (eof)
document Remove whitespace using sed
document Recursively copy files using find
document Commands to remove blank lines
document Convert Hex to Decimal in UNIX
document VI editor Backup (VIB) Utility
document Mapping SCSI Return Code Errors on Linux
document RedHat Linux Filesystem is mounted Read Only after EXT3-fs errors.
document Mounting ISO Image on Solaris
document Recursively change or edit all files in a directory using sed
document Trim whitespace around variable in unix shell script



RSS