Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting username@domain1.com to username@domain2.com ?

Status
Not open for further replies.

m1bzm

ISP
Mar 6, 2001
31
0
0
GB
Hey guys,

I hope this is any easy one...

How do I configue sendmail to receive email to username@domain1.com and when it receives it redirect it to username@domain2.com and then resend it?

At the moment Im redirecting in the virtusertable and I thought I could just try:

@domain1.com @domain2.com

but alas no luck :(

Ive basically got a customer that wants to rewrite all his companies mail to the same usernames but to a different domain name...

Thanks guys,

Darren
 
You are right.

@domain1.com @domain2.com

will redirect all mail for domain1.com to domain2.com. I don't know why it isn't working unless you left out the step where you create virtusertable.db. To create the .db file, type the following:

makemap dbm /etc/mail/virtusertable < virtusertable

Don't forget to restart sendmail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top