How to detele dublicate (received) emails from postfix

Discussion in 'Server Operation' started by eko_taas, Nov 30, 2011.

  1. eko_taas

    eko_taas New Member

    Due some server-error, my postfix fetched many times (from same source) and now I would like to delete identical emails (e.g same time and body). For some reason IDs seems to be different (this email has been fetcged 26 times), below header from 1st and last:

    tried to google (again for a hint, but found posts only abour dublicate sendings.

    Anyone with nice shell-command to help newbee to clean up this, pls
     
  2. nbhadauria

    nbhadauria New Member

    use maildrop with following option ..


    `reformail -D 8000 duplicate.cache`
    if ( $RETURNCODE == 0 )
    exit
     
  3. eko_taas

    eko_taas New Member

    maildrop

    Thanks for advice. This will be usefull in future, but does not solve existing mailbox (with 171t emails, mostly dublicates
     
  4. nbhadauria

    nbhadauria New Member

  5. eko_taas

    eko_taas New Member

    tried to get argumets right...

    Thanks for links :)

    IMAP-tools were nicely documented and usefull (but in this case did not help).


    I was unable to get 2nd link/ "only body"-cleaning up and running...
    Tried to see how to use w/o success...

    Any nice lisk:
    - to see typical command with parameters?
    - should I run it in same machine as mail-file is (server)?

    Thanks again to help newbee....
     

Share This Page