[Mimedefang] Socketmap with huge Alias fails

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Thu Jun 14 07:01:38 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm using mimedefang-2.62. Because I want to speed up the user lookup in 
sendmail, I moved to alias lookup into a socketmap.

With small lookups, this is OK.

With huge aliases (the largest one has approx. 1300 recipients, the string 
returned by filter_map() has a length() of 11676) the stuff fails. It 
looks like that sendmail gets only a part of the reply and for later ones 
it recieves chunks of former replies, e.g.:

sendmail -d38.40 -bv everyone

mpl_map_lookup(Alias5, dklat)
db_map_lookup(Alias5, dklat)
dklat... User unknown
^^^^^^ There is NO user dklat anywhere in the system.
 	However, it's a substring of one user.

socket_map_lookup(Alias0, <<user>>) 
unix:/var/spool/MIMEDefang/sendmail-socketmap.sock
socket_map_lookup(Alias0, <<user>>): server returned error: 
type=t2s,<<list of valid users>>,yti**, reason=
      ^^^ Valid end               ^^^^^  Valid start

(Empty reason)

During my tests, I even saw a "type=tock, reason=" in the log. However, 
there is no user ending in "tock". Again, empty reason.

In the logs I see that the request is processed correctly in filter_map(),
but in order to counterfight timeouts, I have disabled any logging in
filter_map(); no luck, though.

I now moved the code into the contrib socketmapServer.pl of sendmail. The 
only thing I changed is to return the plain string instead of ("OK", 
string). It is working.

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRnEgFegJIbZtwg6XAQIwFggAhkYm8C+30lPFVEy+tr9ZYEwL7ifdea8H
XMdBVSHJonO8FYHh/qQl2/9Rv2RcyIzwZpcy+QIPtTDRFEUP/bzhasAnSgj7IxGI
uuz4zaneOeEej0dLGPiPtPPHjExU41mbQhpygyophfuB8oc1pr7RZa8lkgvLOl1y
t+3ljQvdWX4e19IsCm4TpUtnxJVUBDHmBZ3KCP2JzzyrsIcyKwy7X+xR494Ob4ij
22cbr/8f/FqWHpMuXdaZR38mJ8oj2oI7dLqQK3ste1d/mnvCNAHdbJ7FiHw2QGFA
149WELhydRL4Qkkq6rmk/rs7RHSHmLhVz5epWRNLD3IQJpEgVrWaNA==
=bgmv
-----END PGP SIGNATURE-----


More information about the MIMEDefang mailing list