Dovecot expunge on Ubuntu 12.04

Discussion in 'Installation/Configuration' started by heri, Jan 30, 2013.

  1. heri

    heri New Member

    Helo,
    i set up a system following
    The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)

    Not to leave trashed mails i tried to remove them in a script with dovecot expunge.

    This failed with the following errors:

    1. For a single user
    Code:
    doveadm expunge -u user@xyz mailbox Junk savedbefore 30d
    i found
    in /var/log/mail.err

    Searching for "disabledoveadm" i found this bugtracker entry
    http://bugtracker.ispconfig.org/index.php?do=details&task_id=2346 proposing to add "disabledoveadm" column to the mail_user table.

    Adding this field the command worked for a single user.
    Can it become a problem to add this field?


    2. For all users
    Code:
    doveadm expunge -A Junk savedbefore 30d
    i got
    Is a possible solution to add a query to
    like
    Code:
    iterate_query = SELECT email AS user FROM mail_user
    Or if not, what should be the correct way to delete trashed emails?

    Thank you
    Helmut
     

Share This Page