Jump to content

(How to) Roundcube e-mail filter to remove e-mails with attachments


Recommended Posts

Posted

Dear Support Team,

How to setup a filter in Roundcube, that will detect and delete incoming e-mails with a ".gz" attachment?
Some backgroud: I am experiencing annoying incoming fake e-mails which all have an attachments with a " *.gz " extension.

I know it can be done, but how? I used Google to find answers. One solution I found is here: https://jensknipper.de/blog/roundcube-sieve-filter-attachments/ , but I do not know how to implement it. (In this solution a zip-file is mentioned; in my case it is about a gz-file.)

I hope you can give me the proper instructions how to do setup a filter in Roundcube who will detect and delete incoming e-mails with a ".gz" attachment.

Kindly awaiting your reply. 🙂

  • 3 weeks later...
Posted
On 8/12/2025 at 10:58 AM, vvenet said:

Dear Support Team,

How to setup a filter in Roundcube, that will detect and delete incoming e-mails with a ".gz" attachment?
Some backgroud: I am experiencing annoying incoming fake e-mails which all have an attachments with a " *.gz " extension.

I know it can be done, but how? I used Google to find answers. One solution I found is here: https://jensknipper.de/blog/roundcube-sieve-filter-attachments/ , but I do not know how to implement it. (In this solution a zip-file is mentioned; in my case it is about a gz-file.)

I hope you can give me the proper instructions how to do setup a filter in Roundcube who will detect and delete incoming e-mails with a ".gz" attachment.

Kindly awaiting your reply. 🙂

Dear @wolstech Can someone please have a look at my question? It is open since August 12. Kind regards. 

Posted

I suspect you didn't get a response because nobody here knows how to do this. I've never really used Roundcube for much beyond testing mailboxes. I use Gmail as a front end to check my HH emails instead. On Gmail, doing this is as simple as creating a filter with the criteria "filename:gz" and specifying what to do with the messages.

Based on the link you gave, you could probably change the content-type field to application/gzip (or possibly application/x-gzip) to make it look for .gz instead of regular zip. I've never used sieve though (and honestly I'm not sure the Plesk Roundcube even supports it).

Posted

Thank you dear @wolstech. Do you mean “filename:gz” ( with “ : “) or do you mean “filename.gz” (with “ . “)? 
(in order to know the correct syntax)

Kind regards.

Posted

With the colon. Gmail search should let you do "filename:<extension>" to find emails with files that have a given extension.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...