OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Volker Apelt (vaorg.chemie.uni-frankfurt.de)
Date: Tue Mar 06 2001 - 13:27:47 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Am 6 Mar 2001 14:47:04 GMT schrieben Sie (Ralf Hildebrandt <news-list.postfix.usersinnominate.de>):

    > On 6 Mar 2001 15:41:37 +0100, Volker Apelt <vaorg.chemie.uni-frankfurt.de> wrote:
    >
    > >Is this safe ?
    >
    > Read the FAQ: http://www.postfix.org/faq.html#deleting

    Hmm, that seems to be a www cache problem. What I get for
      http://www.postfix.org/faq.html
    is different from the faq in
      http://www.informatik.uni-bonn.de/pub/software/postfix/faq.html

    There is nothing between 'fax' and 'undefined symbols' in the former
    (in my www cache from last week). Maybe this is due to the
    missing timestamp in the header. Did it change _recently_ ?

    But for the delete I hoped for something more convenient then
    find + rm. Something more secure. Maybe with filtering
    capabilities on sender, reciever, arrival-time, subject
    or even on contents-regex.
     

    > >Is there an archive of add-on tools for postfix ?
    >
    > Not really, read the list's archive.
    >
    > http://jimsun.LinxNet.com/postfix_contrib.html

    Thanks.

    --------------------------------- postList
    #!/bin/sh

    POSTFIX_SPOOL=/var/spool/postfix
    POSTFIX_QUEUES="defer deferred active corrupt incoming"

    cd ${POSTFIX_SPOOL}
    for QUEUE in ${POSTFIX_QUEUES} ; do
        find ${QUEUE} -type f
    done
    --------------------------------- postDel
    #!/bin/sh

    if [ "$#" == 0 ] ; then
            echo "ERROR: need JOB_ID as parameter"
            exit -1
    fi

    POSTFIX_SPOOL=/var/spool/postfix/
    POSTFIX_QUEUES="defer deferred active corrupt incoming"
    cd ${POSTFIX_SPOOL}
    postfix stop
    for QUEUE in ${POSTFIX_QUEUES} ; do
            find ${QUEUE} -name $1 -printf "removing: %p\n"
            find ${QUEUE} -name $1 | xargs --no-run-if-empty rm
    done
    postfix start
    ----------------------------------- end