[Gross] gross with SJMS : "imsimta test mapping" return no such file or directory

Armand Delcros armand.delcros at gmail.com
Sat May 2 22:01:29 EEST 2009


Hello,

I added the path and now crle return that :


----------
comm:/opt/sun/comms/messaging64 # crle

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):	/lib:/usr/lib:/opt/sfw/lib
  Trusted Directories
(ELF):	/usr/lib/secure:/opt/sun/comms/calendar/SUNWics5/cal/lib

Command line:
  crle -c /var/ld/ld.config -l /lib:/usr/lib:/opt/sfw/lib -s
/usr/lib/secure:/opt/sun/comms/calendar/SUNWics5/cal/lib
----------

but i have the same problem (i have restarted SJSMS), then i decide to
copy the libraries grosscheck.* into /usr/lib.
And the result is exactly the same :

------------
20:55:42.50:   Entry #4 matched, pattern
"TCP|*|*|*|*|*|*|tcp_local|*|*|*", template
"$[/usr/lib/grosscheck.so,grosscheck,192.168.10.27,,5525,$2,$=$8$_,$=$6$_,$=$4$_]",
match #0.
20:55:42.50:   User routine call:
/usr/lib/grosscheck.so\grosscheck(192.168.10.27,,5525,127.0.0.2,bar,foo,)
->
20:55:42.50:     Failed; routine not found: No such file or directory
20:55:42.50:   Exiting...
-------

then, here are the dependances :
---
comm:/opt/sun/comms/messaging64 # ldd /usr/lib/grosscheck.so
	libnsl.so.1 =>	 /lib/libnsl.so.1
	libm.so.2 =>	 /lib/libm.so.2
	libsocket.so.1 =>	 /lib/libsocket.so.1
	librt.so.1 =>	 /lib/librt.so.1
	libpthread.so.1 =>	 /lib/libpthread.so.1
	libc.so.1 =>	 /lib/libc.so.1
	libmp.so.2 =>	 /lib/libmp.so.2
	libmd.so.1 =>	 /lib/libmd.so.1
	libscf.so.1 =>	 /lib/libscf.so.1
	libaio.so.1 =>	 /lib/libaio.so.1
	libdoor.so.1 =>	 /lib/libdoor.so.1
	libuutil.so.1 =>	 /lib/libuutil.so.1
	libgen.so.1 =>	 /lib/libgen.so.1
 -----

Everything seems nice.



Well ... must i tried to install Sun Studio 12 sparc x86 and compile with it ?

Thanks for your help.

Armand


On Sat, May 2, 2009 at 8:23 PM, Rolf E. Sonneveld
<R.E.Sonneveld at sonnection.nl> wrote:
> Hi, Armand,
>
> Armand Delcros wrote:
>>
>> Hello,
>>
>> We have SJSMS 7.0 installed on a x64 solaris 10.
>> I compiled gross on it with c-ares with gcc. (with ./configure
>> /opt/sfw/ no other choice for the moment on this platform).
>>
>> The daemon grossd server is on a other serveur (T1000 sparc solaris
>> 10) which is compiled with c-ares and Sun Studio C compiler.
>> The daemon is running well on the sparc (good test with gclient).
>>
>>
>> But on the SJSMS platform the filtering process is not working :
>>
>> comm:/opt/sun/comms/messaging64 # sbin/imsimta test -mapping -debug
>> -table ORIG_MAIL_ACCESS
>> Input string: TCP|127.0.0.2|25|127.0.0.2||||tcp_local|foo||bar
>> 19:50:20.28: Mapping 7 applied to
>> TCP|127.0.0.2|25|127.0.0.2||||tcp_local|foo||bar
>> 19:50:20.28:   Entry #1 did not match, pattern
>> "TCP|*|*|*|*|*|*|tcp_local||*|*".
>> 19:50:20.28:   Entry #2 did not match, pattern
>> "TCP|*|*|*|*|*|*|tcp_local|*|*|postmaster@*".
>> 19:50:20.28:   Entry #3 did not match, pattern
>> "TCP|*|*|*|*|*|*|tcp_local|*|*|abuse@*".
>> 19:50:20.28:   Entry #4 matched, pattern
>> "TCP|*|*|*|*|*|*|tcp_local|*|*|*", template
>>
>> "$[/opt/sfw/lib/grosscheck.so,grosscheck,192.168.10.27,,5525,$2,$=$8$_,$=$6$_,$=$4$_]",
>> match #0.
>> 19:50:20.28:   User routine call:
>>
>> /opt/sfw/lib/grosscheck.so\grosscheck(192.168.10.27,,5525,127.0.0.2,bar,foo,)
>> ->
>> 19:50:20.29:     Failed; routine not found: No such file or directory
>> 19:50:20.29:   Exiting...
>> 19:50:20.29:   Final result
>> "TCP|127.0.0.2|25|127.0.0.2||||tcp_local|foo||bar"
>> Output string: TCP|127.0.0.2|25|127.0.0.2||||tcp_local|foo||bar
>> Output flags: []
>>
>> this is the part of the "mappings" file relevant :
>>
>> ORIG_MAIL_ACCESS
>>
>> ! allow all DSNs and MDNs
>>  TCP|*|*|*|*|*|*|tcp_local||*|*  $Y$E
>> ! allow all incoming mail to postmaster and abuse
>>  TCP|*|*|*|*|*|*|tcp_local|*|*|postmaster@*  $Y$E
>>  TCP|*|*|*|*|*|*|tcp_local|*|*|abuse@*  $Y$E
>> ! use gross to check all triplets (client_ip,sender,recipient)
>>  TCP|*|*|*|*|*|*|tcp_local|*|*|*
>>
>> $[/opt/sfw/lib/grosscheck.so,grosscheck,192.168.10.27,,5525,$2,$=$8$_,$=$6$_,$=$4$_]
>>
>> and the "ls -l" :
>>
>> comm:/opt/sun/comms/messaging64/config # ls -l /opt/sfw/lib/grosscheck.so
>> -rwxr-xr-x   1 root     root       17248 May  2 18:52
>> /opt/sfw/lib/grosscheck.so
>>
>> what's wrong with my configuration ?
>>
>
> you may want to look into crle (man crle), it is possible that Solaris 10
> doesn't 'see' your library due to restrictions in how the Solaris 10 OS
> handles libraries with respect to security. Do you see /opt/sfw/lib
> mentioned when you run crle?
>
> /rolf
>
>



More information about the Gross mailing list