Christian, I really can't provide basic support for you on this problem. But rest assured that we are doing everything you are trying to do without any modifications to proto.m4.
I really think you are over-working the problem. Virtusertable can easily map a name to a local alias (as you suggest), which can then specify names inside the domain on the right hand side. The recursion problem can be solved using define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_')dnl in your .mc file. There's no brain surgery here, and your fixes to proto.m4 are just going to cause you more trouble down the road. On Thu, Dec 19, 2002 at 01:46:01PM +0100, Christian Schulte wrote: > >You can't do multiple targets in the virtusertable; to accomplish > >that, you need to create a local alias that expands into the two > >targets, and then have the virtusertable entry map to the alias. For > >example: > > > >>>Virtusertable: > >[EMAIL PROTECTED] alias_x > >[EMAIL PROTECTED] local_a > >[EMAIL PROTECTED] local_b > > > >>>Aliases: > >alias_x: [EMAIL PROTECTED],[EMAIL PROTECTED] > > And that is my problem! The entries alias_x, local_a, local_b are > getting expanded to alias_x@local-host-name etc.. So after processing > virtusertable there will never ever be a user which sendmail recognizes > as being local because of the @local-host-name part and so after > processing virtusertable, aliases will not be expanded any more! I > patched proto.m4 to add the @domain part to every local user so that > cyrusv2 mailer is able to deliver mail! What I now will have to do is to > not add a domain to local users for which an alias entry exists. (These > local-users are not really users but aliases!) I think that will not be > that hard to do, but I had not have enough time to do it right now! By > the way: Do you have a solution for catchall accounts like "@domain > account@domain" ? That is something I really do not want to miss because > all the tons of spam mails now go to the postmaster (me) for all domains > and not to the catchall-accounts! > > But maybe I misunderstood your solution: > > You did not patch anything at all ? You simply deliver mail to > local-users to an entry in the aliases.db and do not have entries for > domains with accounts in virtusertable at all ? > > So you have it like: > > virtusertable: > > @domain local_deliver_to_account_at_domain > > aliases: > > local_deliver_to_account_at_domain: account@domain > > Would such a setup work at all ? Would account@domain not beeing > redirected to sendmail itself again and would endup in an infinite loop ? > > > --Christian-- > > > > > > -- Joe Rhett Chief Geek [EMAIL PROTECTED] ISite Services, Inc.