You can use virtusertable to accomplish this.

in sendmail.cw:
FEATURE(virtuser)dnl   (I think - RTFM first)

then create a file /etc/mail/virtusertable (or /etc/virtusertable):

bill at yourdomain.com	bill
bob at yourdomain.com	bob
@yourdomain.com		joeuser

Also see http://www.telekomnet.com, click on "ISP Community" under the
Communities section, and look for an article about basic Sendmail
configuration.  It goes over this, and I hear it's pretty good :)


Adam Maloney
Systems Administrator
Sihope Communications

On Fri, 17 Nov 2000, Jamie Ostrowski wrote:

> 
> 
>    I was wondering if anyone on the list has successfully configured
> sendmail on their RH 6.2 box to receive mail in the following fashion:
> 
>    {any user}@mydomain.com
> 
>      goes to user jschmoe
> 
>    ------
> 
>    I have read the sendmail-cf docs on my box and have checked out the
> sendmail.org bit on virtual hosting, but without success. This is what I
> did:
> 
>    After adding the sendmail-cf rpm to my box, I went to /etc/mail and 
>  I performed the following:
> 
> 
>   I made a file called "mailfile" which had one line in it:
> 
>    @getsetnet.net	jamie
> 
>    I saved the file and then performed the following action:
> 
> 
>    [root at floyd /mail]$ makemap hash -o /etc/mail/virtusertable < mailfile
> 
> 
>    I then restarted sendmail. It failed. I restarted it again. It said
> "OK".
> 
>    Howevver, when I tried sending mail to "james at getsetnet.net" I received
> the following error:
> 
>      This is an automatically generated Delivery Status Notification.
> 
> Delivery to the following recipients failed.
> 
>        james at getsetnet.net
> 
> 
> 
> 
> Reporting-MTA: dns;mail.hotmail.com
> Received-From-MTA: dns;mail.hotmail.com
> Arrival-Date: Fri, 17 Nov 2000 19:09:26 -0800
> 
> Final-Recipient: rfc822;james at getsetnet.net
> Action: failed
> Status: 5.0.0
> Diagnostic-Code: smtp;550 <james at getsetnet.net>... User unknown
> 
> 
> 
>     Does anyone have *ANY* ideas? I have been working on and off on this
> one for quite some time. 
> 
> 
> 
>     - Jamie
> 
> _______________________________________________
> tclug-list mailing list
> tclug-list at lists.real-time.com
> https://mailman.real-time.com/mailman/listinfo/tclug-list
>