Home > Microsoft Exchange Tips > Exchange Server Administration Tips > AQADMCLI: Command-line SMTP queue management for Exchange Server
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

AQADMCLI: Command-line SMTP queue management for Exchange Server


Serdar Yegulalp
09.26.2006
Rating: -4.33- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Every Exchange Server administrator will eventually have to deal with an SMTP queue that's choked with messages.

Sometimes an SMTP queue can be flooded by thousands of non-delivery reports (NDRs) due to spam; and sometimes it can be caused by undeliverable email that has been mistakenly auto-generated.

Clearing the SMTP queue usually involves deleting the files in the queue directory through Windows Explorer or a del *.* command -- but these aren't the only ways to handle the problem.

One way that works directly with Exchange Server instead of through the file system is a command-line utility called AQADMCLI. It sounds like a Roman numeral, but it's actually a tool that Microsoft used to only make available for Exchange Server customers through calls to Product Support Services.

SearchExchange.com contributor Brien M. Posey mentioned AQADMCLI a couple of years ago in his tip, "Stay above the SMTP queue floods". But back then, it was only available as a PSS support-call utility. Now it is freely available for download from Microsoft's FTP site.

To empty out an SMTP queue using AQADMCLI, run it from the command line and type in the following commands:

setserver <servername>
delmsg flags=all
quit

<servername> is, of course, the name of the Exchange server containing the queue you want to manage.

If you want to delete messages by specific criteria instead of just dumping everything, the delmsg command can be given specific flags (as the above syntax implies).

For instance, if you type delmsg flags=SENDER,sender=user@site.org, all messages sent by user@site.org will be flagged for deletion.

Run AQADMCLI HELP and you'll get a complete dump of all the available commands and their syntax.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.

Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Tip: Deleting auto-generated spam from the outbound queue
  • Tip: Disk performance best practices for MTA and SMTP queues
  • Tip: SMTP service tuning
  • Tip: Excessive Exchange Server NDRs destroy DNS
  • Learning Guide: How to fight spam on Exchange Server
  • Reference Center: SMTP tips and resources

    Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.

    Rate this Tip
    To rate tips, you must be a member of SearchExchange.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Exchange Server Administration Tips
    Create a group policy to prevent .PST file storage in Exchange 2007
    Synchronizing the Windows Mobile emulator with Exchange Server 2007
    Considerations for virtualizing an Exchange Server environment
    Why are .PST files a security threat to Exchange Server mailboxes?
    EMS add-on tool generates graphical Exchange Server 2007 reports
    Third-party Exchange Server 2007 backup and restore tools
    Repairing damaged OWA virtual directories in Exchange Server 2003
    Exchange Server 2007 hardware planning for continuous replication
    Benefits of SAN-based storage in Microsoft Exchange Server 2007
    How to generate HTML reports with the Exchange Management Shell (EMS)

    Microsoft Exchange Server Administration Tools
    Tool deploys customized Microsoft Outlook 2007 configurations
    Third-party Exchange Server 2007 backup and restore tools
    Customizing an Outlook Web Access 2003 email signature
    Tool exports messages from Microsoft Outlook to Unix .EML file format
    Monitor mail flow with the Exchange Server 2007 Queue Viewer tool
    Use Performance Monitor to detect Exchange 2003 message queue problems
    Migrating antispam settings from Exchange 2003 to Exchange 2007
    An affordable Exchange Server database backup software option for SMBs
    How to set up Remote Desktop for Exchange Server administration
    Solve server problems with the Exchange Troubleshooting Assistant tool
    Microsoft Exchange Server Administration Tools Research

    SMTP
    Reconfigure an existing Exchange Server user account for a new user
    Improve Exchange 2003 Internet connectivity, mail flow and performance
    Troubleshoot Exchange 2003 email that gets stuck in the SMTP queue
    Perform an SMTP Telnet to test an outgoing Exchange server connection
    A primer on SMTP and ESMTP servers and commands
    How to use SMTP queues to troubleshoot mail flow
    SMTP greylisting problem on Exchange Server 2003 SP2
    How to retrieve email from an SMTP server using POP3
    SMTP 550 relay error when sending large attachments
    Sending email to an Exchange distribution list containing SMTP and EX addresses

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    Remote Installation Service  (SearchExchange.com)
    TCPMAN  (SearchExchange.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

  • HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts