Attachment filename filtering

dandadude

Well-Known Member
Apr 14, 2011
57
1
58
Hi!

My main question:
I would like to filter based on an exact attachment name (Form.zip). So no mails can get through that have exactly a "Form.zip" file attached.
How is that possible? Every solution is OK, even spamassassin to give a high score for it... This can be used site-wide also, doesn't have to apply to an account.

Another question, but this might be a hard one:
We are getting lot of impersonating mails (with almost valid signatures, maybe some external address was hacked who received mail from that somebody) where only the "Full Name" from the From header is spoofed (because of strict SPF) and the e-mail address is a spam address, but for some reason, spamassassin and RBL lists don't have a chance (SPF is valid, hardly any rules apply to get extra points...). If I would be able to create a rule for instance if the mail has "one of the Full Names from a txt" in the From header and not a valid local e-mail address -> make it spam, then it would be easy to catch these spoofers.

Thank you,
Daniel
 

Spirogg

Well-Known Member
Feb 21, 2018
700
161
43
chicago
cPanel Access Level
Root Administrator
My main question:
I would like to filter based on an exact attachment name (Form.zip). So no mails can get through that have exactly a "Form.zip" file attached.
How is that possible? Every solution is OK, even spamassassin to give a high score for it... This can be used site-wide also, doesn't have to apply to an account.
I only had this bookmarked before for myself but you can read this and see if that helps


I don't have any suggestions for your other question but I'm sure someone will reply :)

kind regards,
Spiro
 

dandadude

Well-Known Member
Apr 14, 2011
57
1
58
I only had this bookmarked before for myself but you can read this and see if that helps


I don't have any suggestions for your other question but I'm sure someone will reply :)

kind regards,
Spiro
Thanks for the link!
It would be nice to receive an exact line for "Form.zip", cause I don't know how to change the regex-extension list to an exact attachment name.

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,290
2,233
363
cPanel Access Level
Root Administrator
How about the details here:


that thread looks very similar to what you're trying to do.