Page 1 of 1

How to reject emoji in subject line?

Posted: 06 Jan 2021 13:31
by mobamobamoba
Is there a Postfix header check that can reject an email if it contains any emoji in the subject line? I've been getting a bunch of email with green hearts or smileys etc. in the subject line - all spam - but I can't figure out the regex for it to reject it at the Postfix level rather than waiting for Spamassassin to pick it up. thanks.

Re: How to reject emoji in subject line?

Posted: 08 Jan 2021 15:52
by smyers119
Work off of this:

https://gist.github.com/adamlwatson/9623703

Or maybe a milter that runs it through this:

https://github.com/guanting112/remove_emoji

Re: How to reject emoji in subject line?

Posted: 11 Jan 2021 00:30
by shawniverson
Following...

Re: How to reject emoji in subject line?

Posted: 09 Feb 2021 05:40
by pdwalker
This would be a good filter to add to spamassassin.

100% of mail I get with emoji's in the subject are spam.

I'm almost as certain that this applies to bodies of messages as well.