Delete attachments from mails in sent folder?

masterross

Well-Known Member
Apr 7, 2004
73
5
158
Hi guys,

Any idea how to delete attachments from mails in sent folder?
Some customers send a lot of mails with big attachments files inside and easily fill the mailbox.

Thx!
 

Spirogg

Well-Known Member
Feb 21, 2018
700
161
43
chicago
cPanel Access Level
Root Administrator
you can delete mail from sent folders, setup a cron to do this, also if you allow them to use Horde mail client only in cPanel default sending of attachments won't save to sent folder they are removed after they have been sent,

unless user selects "save attachments in sent folder" see my attachment below

just something to think about :)


Capture.PNG


Capture.PNG
 
Last edited:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi guys,

Any idea how to delete attachments from mails in sent folder?
Some customers send a lot of mails with big attachments files inside and easily fill the mailbox.

Thx!
You could also (using the cron idea) remove messages over X size in the sent folder - which wouldn't remove all of their sent mail - though you'd still be removing their mail which may pose an issue. One of the biggest reasons why some providers encourage their users to use a POP3 mail client is due to the amount of space mail stored on the server consumes.

You might want to also enable dovecot's ability to compress messages by going to WHM>>Service Configuration>>MailServer Configuration.
 

masterross

Well-Known Member
Apr 7, 2004
73
5
158
Thanks for replies guys,

Unfortunately, I allowed the use of Roundcube only and dont want to remove whole mails but just attachments from them.