1753259 Members
5456 Online
108792 Solutions
New Discussion юеВ

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/sendmail.cf file:

HSubject: $>Check_Subject

D{MPat}ThisSubject
D{MMsg}The message contains ThisSubject

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

-end-


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

/etc/mail/sendmail.cf: line 2212: invalid rewrite line "R:#* #error:553$" (ta)
/etc/mail/sendmail.cf: line 2213: invalid rewrite line "RRe:# * #error:553$" )
554 /etc/mail/sendmail.cf: line 2212: invalid rewrite line "R:#* #error:553$")
554 /etc/mail/sendmail.cf: 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.
Robin

4 REPLIES 4
someone_4
Honored Contributor

Re: Sendmail 8.9.3

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

http://www.sendmail.org/~ca/email/chk-89.html

http://www.sendmail.org/m4/anti-spam.html

And just look around www.sendmail.org

Richard

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.

linuxfan
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 $#

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

Re: Sendmail 8.9.3

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

SCheck_Subject
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.