How to delete queue of PowerMTA

To delete / clear queue of PowerMTA:


Use pmta delete
 
Syntax :

pmta delete [--dsn] [--queue=domain[/vmta] [--orig=addr] [--rcpt=addr]
[--jobId=id] [--envId=id] [--accounting]

Description :
                 Deletes recipients from the queue. Although "--queue"'s default is */*, the command
requires either --queue or --jobId to be entered explicitly, so that an accidental "pmta
delete" command doesn't delete the entire queue. Messages are marked in the accounting
file as deleted by administrator.
Options :
--dsn
specifies that a DSN report should be sent. Using this option may slow the
deletion process. No entry is written to the accounting file unless the --accounting
flag is used as well.
--accounting
specifies that deletion information should be written to the accounting file. Using
this option may slow the deletion process.
--queue
specifies which queue(s) to delete from, and defaults to all queues.
--orig
specifies that only recipients with the MAIL FROM address be deleted
--rcpt
specifies that only recipients with the RCPT TO address are to be deleted.
--jobId
specifies that only recipients with the given Job ID are to be deleted
--envId
specifies that only recipients with the given Envelope ID are to be deleted.
Example :
delete /queue=*/{default}
It is recommended to pause the queue, before you actually delete the queue:
 
pmta pause
 
Syntax :

pause queue */{default}

Description :
Pause delivery of messages in the queue, and holds them from being delivered. May be
run prior to injecting mail into PowerMTA so that mail may be held for later delivery or before delete the queue.
Example :
pause queue */{default}

Share this:

ABOUT THE AUTHOR

Ceyron Louis

A web designer from India. And then you write some more information about yourself like this to fill out the space that is left.

    Blogger Comment
    Facebook Comment

4 comments:

  1. what is the equivalent command in pmta similar as in postfix:
    mailq
    postsuper -r ALL

    also how to do mailrelay from next server.

    how can do same task in pmta which we used to do in postfix.

    ReplyDelete
  2. Harrah's Casino in Council Bluffs - MapyRO
    Harrah's Casino 남양주 출장마사지 Council Bluffs, IA 71301. Driving Directions - Directions from Harrah's Casino 광주 출장마사지 Council 구미 출장샵 Bluffs. Harrah's Casino Council Bluffs, 서산 출장안마 IA 71301, 김포 출장샵

    ReplyDelete
  3. Merkur Slots Machines - SEGATIC PLAY - Singapore
    Merkur Slot worrione.com Machines. 5 star septcasino rating. https://septcasino.com/review/merit-casino/ The Merkur wooricasinos.info Casino game was the first to feature video slots in the entire casino, https://febcasino.com/review/merit-casino/

    ReplyDelete
  4. Dear friend🙏🙏
    I'll give you whatever🎁🎁🎁
    Powermta 5.0 r1
    or powermta 5.0 r3
    or powermta 5.0 r4
    or powermta 5.0 r6
    or powermta 5.0 r7
    or powermta 5.0 r8 with snmp api and proxy supported.
    or powermta 5.5 r1
    or powermta 5.5 r2
    with lifetime active license (nulled)
    + pmc 1.5 r19
    + the latest version of Mailwizz and Mumara and Enterprise
    + beginner to Advanced full tutorial / guide line
    + a to z Installation command code.
    + Configure Powermta With 3.9+ Millions/39 lakh Of Spam Traps👍👍✌
    ✋✋I am also selling PowerMata Autoinstaller.
    You can buy it at a nominal price.👌✌
    Contact me:
    Skype: salimrezabd04
    Telegram: @SalimRezaBD
    https://t.me/SalimRezaBD
    email: salimrezabd04@gmail.com
    💚🧡❤💕💚

    ReplyDelete