I have a mail server setup with sendmail 8.11.6 (redhat 7.2) that recieves mail for multiple domains. What I am trying to setup is this: 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. I would prefer not to have to install qmail or some other mail server. -- ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 Personal web page: http://karl.hiramoto.org/ Zoop Productions: http://www.zoop.org/ KTEQ Rapid City: http://www.kteq.org/ AOL IM ID = KarlH420 Yahoo_IM = karl_hiramoto ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Q: What's the difference between a dead dog in the road and a dead lawyer in the road? A: There are skid marks in front of the dog.
nevermind. RTFM http://www.sendmail.org/virtual-hosting.html On Thu, 13 Jun 2002, Karl Hiramoto wrote:
I have a mail server setup with sendmail 8.11.6 (redhat 7.2) that recieves mail for multiple domains.
What I am trying to setup is this:
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.
I would prefer not to have to install qmail or some other mail server.
-- ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 Personal web page: http://karl.hiramoto.org/ Zoop Productions: http://www.zoop.org/ KTEQ Rapid City: http://www.kteq.org/ AOL IM ID = KarlH420 Yahoo_IM = karl_hiramoto ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Q: What's the difference between a dead dog in the road and a dead lawyer in the road? A: There are skid marks in front of the dog.
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
participants (2)
-
Karl Hiramoto
-
Theo Van Dinter