I have this part of my LOCAL_RULESETS in my sendmail.mc.
There are NO ERRORS reported when creating sendmail.cf.
F{FullSubjects} -o /etc/mail/subjects_full
F{PartSubjects} -o /etc/mail/subjects_part
HSubject: $>CheckSubject
SCheckSubject
R$={FullSubjects}$*[TAB]$: REJECTSUBJECT
R$* $={PartSubjects} $*[TAB]$: REJECTSUBJECT
R$* REJECTSUBJECT $*[TAB]$#error $: "553 Access Denied."
In subjects_part I have lots of lines, but for the purpose of this question I give a few examples only (the ones that matter):
bamboo.fiber
its.freya
better.ranking
free.report
free.audit
free.analysis
bamboo.socks
Now ssh'ing into another machine and I use
mail -s "BambOo socks"
EMAIL@MYDOMAIN.COM < MSGBODYFILE
mail -s "blah Better ranking blah"
EMAIL@MYDOMAIN.COM < MSGBODYFILE
mail -s "better ranking"
EMAIL@MYDOMAIN.COM < MSGBODYFILE
the ruleset works perfectly and the email is rejected.
MSGBODYFILE is just a text file containg a few lines of random TXT.
If I use
mail -s "free report"
EMAIL@MYDOMAIN.COM < MSGBODYFILE
mail -s "free audit"
EMAIL@MYDOMAIN.COM < MSGBODYFILE
mail -s "blah free audit blah"
EMAIL@MYDOMAIN.COM < MSGBODYFILE
the ruleset does NOT work, the email will be accepted.
I have absolute no idea why. I tried a few other examples inside the subjects_part file and most of them work, a few do not.
I cannot figure out what the difference is between
better.ranking
and
free.audit
both are TEXT, both are in the same file, both are used using the SAME command, same computer, same OS, same everything.
The only difference are a few chars.
Please help, I cannot spot the difference.
Also how could I debug this?
thanks
Jobst
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)