FreeBSD Port: milter-regex-1.5

Regis McEwen regism at progress.com
Fri Jun 11 14:52:01 GMT 2004


Hi,

On Fri, Jun 11, 2004 at 02:58:41AM -0400, Regis McEwen wrote:

>> I can't, unfortunately, get this to work (I even tried the developers
>> version)

> The errors you quoted from syslog don't look at all like what the newest
> versions can possibly generate. Please try

>  http://www.benzedrine.cx/milter-regex-1.5.tar.gz  or
>  http://www.benzedrine.cx/milter-regex.tar.gz
>
> Once compiled and installed, run ident(1) or strings(1) on the
> milter-regex binary, it should show something like

>  $Id: milter-regex.c,v 1.44 2004/03/19 19:21:40 dhartmei Exp $
>  $Id: eval.c,v 1.10 2004/03/19 19:21:40 dhartmei Exp $
>  $Id: parse.y,v 1.6 2004/02/26 11:29:42 dhartmei Exp $
>
> and these should match the revision numbers from the source files. If 
> not, you must have multiple binaries around, one of them old.

	I started from scratch, downloading and compiling the
	milter-regex.tar.gz file:

elvirus2(root)# strings /etc/mail/milter-regex | grep dhartmei
$Id: milter-regex.c,v 1.45 2004/04/03 22:17:53 dhartmei Exp $
$Id: eval.c,v 1.10 2004/03/19 19:21:40 dhartmei Exp $
$Id: strlcpy.c,v 1.1 2004/02/26 11:10:33 dhartmei Exp $
$Id: parse.y,v 1.6 2004/02/26 11:29:42 dhartmei Exp $

	I notice when I try to start it up via:

/etc/mail/milter-regex -c /etc/mail/milter-regexp.conf \
-p unix:/var/spool/milter-regex/sock

	that I have to specify the "-u root" parameter, otherwise
	it wont start and I get:

getpwnam: _milter-regex: No such file or directory

	How do I get "getpwnam" not to give me this error?
	(I'm on Solaris 9).

	When I have to add "-u root", the message gets
	delivered, not honoring the /etc/mail/milter-regexp.conf
	file:

#
# milter-regex file regism 10-Jun-2004
#
reject "Rejected, spamvertised website cyberpromo.com"
body ,http://[^/]*cyberpromo\.com/,i

	Is this the correct syntax?

	The permissions look OK:

elvirus2(root)# ls -ld /etc /etc/mail /etc/mail/milter-regexp.conf
drwxr-xr-x  61 root     sys         4096 Jun 10 10:01 /etc
drwxr-xr-x   2 root     mail        1024 Jun 11 10:08 /etc/mail
-rw-r--r--   1 root     other        135 Jun 11 02:13
/etc/mail/milter-regexp.conf

elvirus2(root)# ls -ld /var/spool/milter-regex/sock 
srw-------   1 root     other          0 Jun 11 10:42
/var/spool/milter-regex/sock

	but there's noting in /var/log/syslog to indicate that
	it ever went through the milter-regex milter.

	My /etc/mail/sendmail.cf file has:

elvirus2(root)# grep milter-regex /etc/mail/sendmail.cf
O InputMailFilters=milter-regex
Xmilter-regex, S=:/var/spool/milter-regex/sock, T=S:30s;R:2m



More information about the freebsd-ports mailing list