Programmatic access to the showq daemon/data

From: Ward, Martin (no email)
Date: Mon Oct 01 2007 - 12:21:58 EDT

  • Next message: Victor Duchovni: "Re: Programmatic access to the showq daemon/data"

    Hi,

    Is there any kind of documentation on how to access the mail queue list
    from within a program? Perl or C would be nice!

    I ask because I have a number of mail servers that regularly have mail
    queues > 300,000 emails and a lot of these queues are bounces and
    double-bounces. Right now I have a simple script that someone wrote
    (possibly it even came with the Postfix installation since I didn't
    perform the installation) which runs the "postqueue -p" command,
    grep/awks out the message ID of the unwanted emails and runs "postsuper
    -d" for each ID.

    The postqueue(1) command takes the longest to run so is the most obvious
    starting point for trying to speed this process up, and it struck me
    that if I could write a program that could directly access the mail
    queue and get the IDs of the unwanted emails that way, it might be
    quicker.

    Is there anything that might give me some pointers in this direction?

    |\/|artin

    ----
    NetOps TAC
    T:+44 20 7863 5218
    Group: +49 69 56607 0412
    F: +44 20 7863 5210
    *************************************************************************************
    The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. 
    The contents of this message and its attachments are confidential and may also be subject to legal privilege.  If you are not the named addressee and/or have received this message in error, please advise us by e-mailing secur and delete the message and any attachments without retaining any copies. 
    Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. 
    No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.  
    Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
    

  • Next message: Victor Duchovni: "Re: Programmatic access to the showq daemon/data"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD