Andrzej Adam Filip a écrit : > nodens2099 <nodens2...@gmail.com> wrote: > >> Andrzej Adam Filip a écrit : >>>>> Does smmap return "unknown user" *even for lowercase folders*? >>>>> >>>> Nope, you're right. the real problem is on the mrs check, then. >>> It can use only what smmap provides. >>> Are you ready to ask for changed in Cyrus' smmap to make it capable to >>> check Public folders availability? >>> >>> mrs_cyrus_mailertable may be changed to check validity of mailbox folder >>> its own list of valid folders. >>> >> This is already what I'm doing with ldap. There is no need to add >> another database, which would have to be maintained as the public folder >> list change, IMO. > > OK - smmap map be needless for "LDAP centric" configuration. > >> I actually took a look at the smmapd code, and it uses the >> lmtp_downcase_rcpt value to know whether the recipient should be >> converted to downcase or not. >> According to the code, it convert the user part only, and has a special >> case for shared folder, so it should be ok. >> >> Do you know a way to test smmapd manually ? > > There are simple socket map client and server perl scripts in contrib > directory of sendmail distribution. >
I made some more test. The problem is definitely in the cyrus map. real mailbox name : Hosting/ab...@domain.com sendmail -d -bt <cut meaningless debug info> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > /map cyrus +Hosting/ab...@domain.com map_lookup: cyrus (+Hosting/ab...@domain.com) no match (68) (creating hosting/ab...@domain.com, that is the same folder but in lowercase) > /map cyrus +Hosting/ab...@domain.com map_lookup: cyrus (+Hosting/ab...@domain.com) map_rewrite(+hosting/ab...@domain.com), av = +Hosting/ab...@domain.com map_rewrite => +hosting/ab...@domain.com<OK> returns +hosting/ab...@domain.com<OK> (0) socketmapClient.pl : ./socketmapClient.pl unix:/var/run/cyrus/socket/smmap cyrus "+Hosting/ab...@domain.com" +Hosting/ab...@domain.com => OK +Hosting/ab...@domain.com So socketmap daemon works as expected. Regards, -- Clément Hermann (nodens) ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html