1

Topic: Auto-delete messages

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7.1.0
- Related log if you're reporting an issue: -
====

Hello there,

is there a way to run a script or something to delete messages in a user folder (.SPAMS) automatically if they're, let's say 1week old ?

Thanks in advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Auto-delete messages

You need Dovecot-2: http://wiki2.dovecot.org/Tools/Doveadm/Expunge

3

Re: Auto-delete messages

It's OK,

The command is : doveadm expunge -u user@domain.tld MAILBOX Junk BEFORE 7d

to see what's the result of the command, remplace expunge by search.

More infos by the link provided by Zhang.

Thanks guy