NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Clearing Bad Messages Out of the Postfix Mail Queue
Topic: Email   Posted:2006-06-07
Printer Friendly: Print

spacerspacer
If you have bad messages in your Postfix mail queue, you can list them with the postqueue command:

[root@svr-1 mail]# postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
4C63F2300BA      876 Mon Jun  5 09:31:54  user@somedomainsomewhere.com
(connect to example.com[192.0.34.166]: Connection timed out)
differentuser@example.com
-- 1 Kbytes in 1 Request.

You will need the Queue Id to remove the message with postsuper:

[root@svr-1 mail]# postsuper -d 4C63F2300BA
postsuper: 4C63F2300BA: removed
postsuper: Deleted: 1 message

Verify the message is gone:

[root@svr-1 mail]# postqueue -p
Mail queue is empty
[root@svr-1 mail]# 

The message deletion will show up in the mail log file:

Jun  7 22:12:25 main postfix/postsuper[6752]: 4C63F2300BA: removed
Jun  7 22:12:25 main postfix/postsuper[6752]: Deleted: 1 message





Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS