Showing results for 
Search instead for 
Did you mean: 

Sendmail 8.9.3

Sendmail 8.9.3

I am working from the HP web doc # KBRC00002113
dated may 5, 2000. I am trying to get the syntax right so as to add subject line checking for certain viruses.
from the instructions on the document, starting with Item #2: If you are using sendmail 8.9.3 add the following to the end of the /etc/mail/ file:

HSubject: $>Check_Subject

D{MMsg}The message contains ThisSubject

R${MPat} $* $#error $:553${MMsg}
RRe:${MPat} $* $#error $:553${MMsg}


On copying over the modified and stopping/starting sendmail, the error is (cut and paste below):

/etc/mail/ line 2212: invalid rewrite line "R:#* #error:553$" (ta)
/etc/mail/ line 2213: invalid rewrite line "RRe:# * #error:553$" )
554 /etc/mail/ line 2212: invalid rewrite line "R:#* #error:553$")
554 /etc/mail/ line 2213: invalid rewrite line "RRe:# * #error:55)

Does Anyone out here know what I am doing wrong here?
FYI, if I show numbers on the .cf file with these entries, the line numbers above (2212 2213) refer to the last two lines of the file, under 'SCheck_Subject'.

Thanks so much for your help.

Honored Contributor

Re: Sendmail 8.9.3

Hello ..
You might want to look at theese links.

And just look around


Re: Sendmail 8.9.3

I must be missing your point. I did rtfm, as per your suggestion. However, I do not see anything there that specifically will help me with this.
If there is someone here who has used this HP doc. or another method to thwart viruses in sendmail, I would very much appreciate your input.

Honored Contributor

Re: Sendmail 8.9.3

Hi Robin,

Did you make sure you have a tab character between the "$*" and the "$#" on the lines 2212 & 2213 and not spaces?

If you did a cut and paste then you may have to edit the config file and delete the spaces and put a between $* and $#

They think they know but don't. At least I know I don't know - Socrates

Re: Sendmail 8.9.3

Thank you, that was the problem. the section with the error needs to be:

R:${MPat}$* $#error$:553${MMsg}
RRe:${MPat}$* $#error$:553${MMsg}

(where the space between '$*' and '$#error...'
is a tab, not just a word space.

This is working now, the mail with the specified subject line are not being delivered.

Thank you very much for your help.