> -----Original Message----- > From: Davide Libenzi [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 03, 2002 3:10 PM > To: [EMAIL PROTECTED] > Subject: [xmail] Re: Cmdaliases uses pre-alias.tab domain for domain > processing >=20 >=20 >=20 > On Tue, 3 Dec 2002, Griffiths, Joel wrote: >=20 > > > > I guess that says it all. I stepped through the rcpt-to=20 > flow with an =3D > > aliased user and found that the cmdalias directory is=20 > processed with the =3D > > original domain instead of the aliased domain: > > > > domains.tab > > "originaldomain.com" > > "aliasdomain.com" (in or out causes identical results) > > > > aliases.tab > > "originaldomain.com" "originaluser" "[EMAIL PROTECTED]" > > > > cmdalias is searched for "originaldomain.com\jim.tab" instead of =3D > > "aliasdomain.com\jim.tab" > > > > This, I believe, is a bug. > > > > > > USmlGetCmdAliasFile: > > pszUser =3D3D originaluser > > pszdomain =3D3D originaldomain > > > > should probably be > > > > USmlGetCmdAliasFile: > > pszUser =3D3D newuser > > pszdomain =3D3D newdomain > > > > Is this the correct behavior, or am I correct in assuming=20 > that this is =3D > > unintentional? >=20 > It is intentional, you don't need an account for cmdalias to=20 > work. They > born to avoid creating accounts for cmd-only users. I'm not sure what that has to do with comparing the RCPT TO, instead of = the aliased recipient, to cmdaliases. Mailusers.tab is checked before = you even get to cmdaliases/. Correct me if I'm wrong (I may be), but it = appears Cmdaliases/ is only checked if mailusers.tab doesn't contain a = valid user. That would mean a cmd-only users would still be checked = against the cmdaliases directories even if they weren't in the = mailusers.tab file. Regardless, cmdaliases is defintitely checked if the = user in not listed in cmdaliases, so cmd-only users are definitely valid = whether the alias is used for the cmdaliases or the RCPT TO is used for = the cmdaliases. IMHO, the administrator would want the command performed = on the final recipient (aliased) rather than the original RCPT TO field. That brings up another question, actually. Why does custdomains use the = RCPT TO recipient instead of the aliased recipient? I would think the = alias is important for determining the appropriate custdomain entry, not = the original RCPT TO. -- Joel - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
