How to delete all messages in the delivery queue from a specific user

Article:TECH132980  |  Created: 2010-01-07  |  Updated: 2012-09-19  |  Article URL http://www.symantec.com/docs/TECH132980
Article Type
Technical Solution

Product(s)

Issue



There is a need to know how to delete all messages in the delivery queue from a specific user.


Solution



This can be done by issuing "mta-control delete-msgs-by-sender <regexp>" command from the CLI. This command accepts any Perl regular expressions (case insensitive) as arguments.

For example, if the envelope sender is "user@domain.com" from the CLI following command could be run:
 

mta-control delivery delete-msgs-by-sender user\@domain\.com

 



Legacy ID



2010060711064054


Article URL http://www.symantec.com/docs/TECH132980


Terms of use for this information are found in Legal Notices