Score:0

sendmail /etc/mail/access REJECT based off of keyword and TO: field

jp flag

someone placed my email to a weird list and i get 100s of messages each day.

I want to block the word "Unsubscribe" in all body emails address to [email protected]

To:[email protected]  error:550 5.1.1 User unknown

Works perfectly but i want to receive other email so i want to create some sort of condition

if sent to [email protected]
CONDITION Body contains "Unsubscribe" 
Then: error:550 5.1.1 User unknown

access.db gives me too many errosr to go that way and spent too much time on it.

Any tips? spamassassin is intalled but i could not find any note on condition, sent to, and send reject 501 ref https://svn.apache.org/repos/asf/spamassassin/branches/3.4/INSTALL

thank you

Score:0
za flag

Spamassassin is dead long ago, rspamd is the new black. On one hand, adding the rspamd for just one rule will make your stack cumbersome, but on the other ... the thing you want to do with sendmail is perfectly doable... but sendmail lacks the templates for this particular case, so you need to write your own set of LHS/RHS rules. Which is way more difficult than just adding the rspamd into the stack. :) Anyway, if you'll accomplish this using sendmail only, you will be the only guy I've ever met capable of this. The other would probably be Eric Allman himself.

YouTube  2005 avatar
jp flag
thanks tried rspamd it seems very complicated to even make a rule let alone getting it working. thank you again .,
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.