On Thu, Jun 13, 2002 at 12:43:09PM -0400, Karl Hiramoto wrote:
sales@host1.com forwards to user1's inbox sales@host2.com forwards to user2's inbox
Is this possible with sendmail? I've trid doing it in the /etc/aliases file and had no luck. when I run the newaliases command it gives me a warning and it doesn't work corectly when I tested it.
You need to setup virtual hosting. I don't actually use the RH default sendmail (I roll my own), but I believe the default one already has virtual hosting enabled. What you'd need to do is: 1) Edit /etc/mail/local-host-names and add "host1.com" and "host2.com" (this should already be done actually.) 2) Edit /etc/mail/virtusertable and add: @host1.com error:nouser User unknown sales@host1.com user1 @host2.com error:nouser User unknown sales@host2.com user2 3) cd /etc/mail && make Theoretically, that should be all you need to do. You can test via "sendmail -bv". For instance: "sendmail -bv 'theo@vandinter.org'" returns "theo@vandinter.org... deliverable: mailer local, user felicity" for me. You'll need to do more work if virtusertable isn't already configured for your sendmail. There's a lot of information at http://www.sendmail.org/virtual-hosting.html. -- Randomly Generated Tagline: "This car began to rust while it was still in the showroom." - Unknown about the Dodge Aspen/ Plymouth Volare