U
U
uzer1232020-11-06 14:52:53
Mail server
uzer123, 2020-11-06 14:52:53

How to delete emails older than a certain period?

The organization uses ispmanager for corporate mail.
In the end, we ran into a lack of disk space on the hosting due to mail storage.
Is it possible to somehow set up automatic deletion of messages older than a certain period stored on the web server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2020-11-06
@uzer123

In the user's home directory, email
Delete via find
Like this

1 0 * * * find /var/lib/vz/dump -mmin +1440 -delete

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question