Skip to main content

How to delete queue of PowerMTA

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 :
pmta delete –queue=gmail.com/*
pmta delete –queue=gmail.com/vmta1
pmta delete –queue=*/*
It is recommended to pause the queue, drink a cup of coffee, before you actually delete the queue:
 
pmta pause
 
Syntax :

pmta pause queue domain[/vmta]

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 :
$ pmta pause queue */vmta1

Comments

Popular posts from this blog

how to take mails backup in outlook 2007

How to take backup of mails in outlook 2007. there is a very simple way to taking backup of mails 1.Opne outlook 2007 > tools >account > data files >open folder then close all other windows and copy outlook.pst file in a safe location To restore backup 1.Opne outlook 2007 > tools >account > data files > add > and give the location of outlook.pst file.

Configure Vsftpd with virtual users in Ubuntu 14.04

vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution. To configure vsftpd server  with virtual users we need to enable PAM for vsftpd. apt-get install vsftpd libpam-pwdfile Now configure vsftpd to use PAM authentication vim  /etc/vsftpd.conf then paste in the following listen=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 local_root=/var/www chroot_local_user=YES allow_writeable_chroot=YES hide_ids=YES #virutal user settings user_config_dir=/etc/vsftpd_user_conf guest_enable=YES virtual_use_local_privs=YES pam_service_name=vsftpd nopriv_user=vsftpd guest_username=vsftpd Now create users - You can either use a data...

AWS Certification RoadMap