Thanks Glynn...

But, isn't is supposed that the left hand side in a virtusertable must be an
account that doesn't really exist??? Can I use real accounts like in you
example??

I remember I tried it before with no luck, maybe I did something wrong... :)

Thankyou.

        Ruben Yanez R.




On Mar 16,  3:07pm, Glynn Clements wrote:
> Subject: Re: Sendmail: Binding accounts to domains
>
> Ruben Yanez wrote:
>
> > Is it posible to bind a local account to a domain that a host receives
> > mail for?
> > I mean, I want my host can handle several domains, so I now I have to
> > add them to class w, but instead of using virtusertable, I want to use
> > local accounts so that my host receives mail for
> >
> > [EMAIL PROTECTED]  but not for [EMAIL PROTECTED]
> >
> > since I'm using local accounts, they can't repeat. So the idea is to
> > have some local accounts receive mail for some domains, other accounts
> > for other domains, and so on. The same when sending mail, I mean, add
> > the corresponding domain to the local account that sends the message
> > (masquerade the sender address with the domains it receives mail for)
>
> To bind usernames to specific domains, use the virtusertable to map
> each email address to a specific username, and to map all other
> addresses to an invalid username, e.g.
>
>       [EMAIL PROTECTED]        user
>       @domain1.foo            error: 5.1.2 "550 No such user"
>
> To handle sender addresses in outbound messages, use either the
> genericstable or userdb features.
>
> --
> Glynn Clements <[EMAIL PROTECTED]>
>-- End of excerpt from Glynn Clements


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to