Difference between revisions of "How to delete mail queue in Postfix"
(Created page with "==How to delete mail queue in Postfix== In this tutorial we will learn, how to delete mail queue in Postfix . To clear the mail queue in Postfix, we will use the command cal...") |
(→How to delete mail queue in Postfix) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
Postsuper command is used for postfix mail queue related maintenance work. | Postsuper command is used for postfix mail queue related maintenance work. | ||
− | To check the mail queue in system, we use mailq command . | + | To check the mail queue in system, we use '''mailq''' command . |
mailq | mailq | ||
It might be possible when you use mailq command,you may see long list of mails which are not delivered. | It might be possible when you use mailq command,you may see long list of mails which are not delivered. | ||
− | Most of the mails have deferred status . | + | '''''Most of the mails have '''deferred''' status .'' |
− | + | ''' | |
In this tutorial we will use postsuper command to delete/remove the mail queue in Postfix MTA . | In this tutorial we will use postsuper command to delete/remove the mail queue in Postfix MTA . | ||
Line 20: | Line 20: | ||
To clear/remove the mail queue in postfix,read the below given scenarios | To clear/remove the mail queue in postfix,read the below given scenarios | ||
− | Scenario 1 : Remove particular mail queue id (on running mailq command,you will get mail queue id) | + | * Scenario 1 : Remove particular mail queue id (on running mailq command,you will get mail queue id) |
postsuper -d mail_queue_id | postsuper -d mail_queue_id | ||
− | Scenario 2: Remove ALL mails from queue | + | * Scenario 2: Remove ALL mails from queue |
postsuper -d ALL | postsuper -d ALL | ||
− | Scenario 3: Remove only ALL deferred mails which are in queue | + | * Scenario 3: Remove only ALL deferred mails which are in queue |
postsuper -d ALL deferred | postsuper -d ALL deferred |
Latest revision as of 23:40, 26 June 2019
How to delete mail queue in Postfix
In this tutorial we will learn, how to delete mail queue in Postfix .
To clear the mail queue in Postfix, we will use the command called postsuper . Abbreviation of postsuper is Postfix superintendent . postsuper command can only be run by super user of the system eg. root .
Postsuper command is used for postfix mail queue related maintenance work.
To check the mail queue in system, we use mailq command .
mailq
It might be possible when you use mailq command,you may see long list of mails which are not delivered.
Most of the mails have deferred status . In this tutorial we will use postsuper command to delete/remove the mail queue in Postfix MTA .
First run the command mailq command to check how many mails are in queue
To clear/remove the mail queue in postfix,read the below given scenarios
- Scenario 1 : Remove particular mail queue id (on running mailq command,you will get mail queue id)
postsuper -d mail_queue_id
- Scenario 2: Remove ALL mails from queue
postsuper -d ALL
- Scenario 3: Remove only ALL deferred mails which are in queue
postsuper -d ALL deferred