Date: Fri, 11 Jun 2004 02:23:24 -0400 From: "Regis McEwen" <regism@progress.com> To: <dhartmei@FreeBSD.org> Cc: Regis McEwen <regism@progress.com> Subject: FreeBSD Port: milter-regex-1.5 Message-ID: <591FDCF98D5E3E418F3B8041902E17F0386AA2@MAIL01.bedford.progress.com>
next in thread | raw e-mail | index | archive | help
Hi, =20 I can't, unfortunately, get this to work (I even tried the developers version) =20 I compiled milter-regex with sendmail 8.12.11 (with MILTER support compiled in) =20 I used the following /etc/mail/milter-regexp.conf: =20 reject "Rejected, spamvertised website cyberpromo.com" body ,http://[^/]*cyberpromo\.com/,i =20 =20 It does not get rejected, but gets delivered and I see the following in my /var/log/syslog file: =20 Jun 11 02:14:38 elvirus2 milter-regexp: [ID 308449 mail.error] bad config line: "reject "Rejected, spamvertised website cyberpromo.com"" Jun 11 02:14:38 elvirus2 milter-regexp: [ID 646957 mail.info] error in new confi g file: /etc/mail/milter-regexp.conf Jun 11 02:14:38 elvirus2 sm-mta[20623]: [ID 801593 mail.error] i5B6EcCZ020623: m ilter_read(milter-regex): cmd read returned 0, expecting 5 =20 I get this error whether or not I use double quotes (") around the MESSAGE. =20 What is the error "cmd read returned 0, expecting 5" mean? =20 I also got a core file dumped. (I don't have gdb on this machine yet so I don't have a stack trace available, unfortunately). =20 I put an unrelated milter to see if MILTER in sendmail was working independent of milter-regex.=20 =20 Here's what I got: =20 =20 connect_callback localhost helo_callback elvirus2.progress.com envfrom_callback <opsadmin@elvirus2.progress.com> envrcpt_callback <regism@progress.progress.com> header_callback 'Received: (from root@localhost) by elvirus2.progress.com (8.12.11/8.12.11/Submit) id i5B6Dv5o020589; Fri, 11 Jun 2004 02:13:57 -0400 (EDT)' header_callback 'Date: Fri, 11 Jun 2004 02:13:57 -0400 (EDT)' header_callback 'Message-Id: <200406110613.i5B6Dv5o020589@elvirus2.progress.com>' header_callback 'From: <regism@progress.progress.com>' header_callback 'To: <regism@progress.progress.com>' header_callback 'Subject: Testing milter-regex' eoh_callback body_callback: http://www.cyberpromo.com =20 eom_callback close_callback =20 =20 Once I can get this working, what I really want to do is to scan the body for a specific pattern and if found, change the "Subject:" line to: [Likely Junk] <original subject line> =20 either directly or by having milter-regex put in an X-header and then having another milter search for that X-header and then calling the routine smfi_chgheader to change the subject (unless there is a better way to do make this change). =20 =20 Can you help me to figure this out? =20 I am on Solaris 9 using gcc 2.95.2 =20 Thanks for your assistance. =20 =20 -Regis =20 =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?591FDCF98D5E3E418F3B8041902E17F0386AA2>