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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email forwarding

Status
Not open for further replies.

hait

Technical User
Apr 3, 2009
1
CA
I have a solaris runing as a email gateway, which should rewrite the domain name before.com to after.com, and forward the email to the mx host of after.com.

For example, I will send a email to <test@before.com> to this solaris box, and it should rewrite to <test@after.com> and forward it to my internal email server which is pointed bu the mx record of after.com.

I have tried to add a rewriting rule as S11 in the rewriting section:

S11
R$*@before.com $1@after.com

Is this correct way?

I am actually confused where I should put this rewriting rule? rule set 3 or 0 or 1?

Thanks.
 
you could try using "mailertable" to set from one to the other ... then you wouldn't have to work with the m4 files by hand.

If it is for specific users then you could use the 'virtuser' table instead.

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top