[SOLVED] Strange what object filtering

hata_ph

Well-Known Member
Nov 13, 2019
870
191
48
44
I have setup a smtp filter with what rules to block spam email. It work but I notice the same rules will block below 2 email subject even thought I do not see any word/phase listed in my what object.

Do anyone have any idea?

You have received a new Order ${order_number} at ${shop_name}

Re: Outstanding delivery_Pack Master


Code:
"descr" : "subject=ANNOY|Annoy|annoy",
"descr" : "subject=ATTACHMENT|Attachment|attachment",
"descr" : "subject=AUTO|Auto|auto",
"descr" : "subject=BACTERIA|Bacteria|bacteria",
"descr" : "subject=BELLY|Belly|belly",
"descr" : "subject=BEST|Best|best",
"descr" : "subject=BEWARE|Beware|beware",
"descr" : "subject=Bank Account Information",
"descr" : "subject=CHEAP|Cheap|cheap",
"descr" : "subject=CUNT|Cunt|cunt",
"descr" : "subject=DANGER|Danger|danger",
"descr" : "subject=DEBT|Debt|debt",
"descr" : "subject=DELETION|Deletion|deletion",
"descr" : "subject=DEMAND|Demand|demand",
"descr" : "subject=DISK|Disk|disk",
"descr" : "subject=DOSE|Dose|dose",
"descr" : "subject=DRUG|Drug|drug",
"descr" : "subject=De-activation|de-activation",
"descr" : "subject=EADECO.COM.MY|eadeco.com.my",
"descr" : "subject=ENHANCE|Enhance|enhance",
"descr" : "subject=ENJOY|Enjoy|enjoy",
"descr" : "subject=Email Shutdown Activated",
"descr" : "subject=FAILED|Failed|failed",
"descr" : "subject=FAILURE|Failure|failure",
"descr" : "subject=FAKE|Fake|fake",
"descr" : "subject=FAT|Fat|fat",
"descr" : "subject=FUTURE|Future|future",
"descr" : "subject=GERM|Germ|germ",
"descr" : "subject=HEALTH|Health|health",
"descr" : "subject=HELP|Help|help",
"descr" : "subject=High danger. Your account was attacked.",
"descr" : "subject=INBOX|Inbox|inbox",
"descr" : "subject=INSURANCE|Insurance|insurance",
"descr" : "subject=INVEST|Invest|invest",
"descr" : "subject=Invoices For Payment",
"descr" : "subject=KEEP|Keep|keep",
"descr" : "subject=LAST|Last|last",
"descr" : "subject=LIFE|Life|life",
"descr" : "subject=LIMITED|Limited|limited",
"descr" : "subject=LIVE|Live|live",
"descr" : "subject=LOAN|Loan|loan",
"descr" : "subject=LOGIN|Login|login",
"descr" : "subject=LOSE|Lose|lose",
"descr" : "subject=LOSS|Loss|loss",
"descr" : "subject=LOVE|Love|love",
"descr" : "subject=MAIL|Mail|mail",
"descr" : "subject=MILLION|Million|million",
"descr" : "subject=MUSCLE|Muscle|muscle",
"descr" : "subject=NEED|Need|need",
"descr" : "subject=NIGHT|Night|night",
"descr" : "subject=NOTIFICATION|Notification|notification",
"descr" : "subject=NOTIFY|Notify|notify",
"descr" : "subject=New order",
"descr" : "subject=OLD|Old|old",
"descr" : "subject=PAIN|Pain|pain",
"descr" : "subject=PENIS|Penis|penis",
"descr" : "subject=POUND|Pound|pound",
"descr" : "subject=PUSSY|Pussy|pussy",
"descr" : "subject=Pay Payment",
"descr" : "subject=Payment Advice",
"descr" : "subject=Payment detail",
"descr" : "subject=Private & Confidential",
"descr" : "subject=REVISED|Revised|revised",
"descr" : "subject=Request Quotation",
"descr" : "subject=SAVE|Save|save",
"descr" : "subject=SCAM|Scam|scam",
"descr" : "subject=SEMAK|Semak|semak",
"descr" : "subject=SEX|Sex|sex",
"descr" : "subject=SINGLE|Single|single",
"descr" : "subject=SKIN|Skin|skin",
"descr" : "subject=SLEEP|Sleep|sleep",
"descr" : "subject=SOLUTION|Solution|solution",
"descr" : "subject=SOON|Soon|soon",
"descr" : "subject=SPECIAL|Special|special",
"descr" : "subject=STOP|Stop|stop",
"descr" : "subject=STORAGE|Storage|storage",
"descr" : "subject=SWIFT|Swift|swift",
"descr" : "subject=SYNCHRONIZATION|Synchronization|synchronization",
"descr" : "subject=TASTE|Taste|taste",
"descr" : "subject=UNLIMITED|Unlimited|unlimited",
"descr" : "subject=UPGRADE|Upgrade|upgrade",
"descr" : "subject=URGENT|Urgent|urgent",
"descr" : "subject=VIRUS|Virus|virus",
"descr" : "subject=WARNING|Warning|warning",
"descr" : "subject=WEIGHT|Weight|weight",
"descr" : "subject=WINE|Wine|wine",
"descr" : "subject=WORLD|World|world",
"descr" : "subject=Your E-mail Request",
"descr" : "subject=not delivered",
"descr" : "subject=unreceived emails",
 
Further checking, found out match field "New order" is blocking the email. But why it show no match when I run test string?
 
Further checking, found out match field "New order" is blocking the email. But why it show no match when I run test string?
Thanks for reporting this - seems the match during testing is done case-sensitively, while the one when processing the mail is, as @dcsapak pointed out, case-insensitively - I sent a patch for discussion to the pmg-devel mailing list - once it's applied and released the test will work better:

https://pve.proxmox.com/pipermail/pmg-devel/2020-May/001248.html
 
it is already available in the pmg-no-subscription repository (pmg-api >= 6.2-5)

Please report back if the patch fixes that issue :)

Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!