Watchguard SMTP Masquerading

REngimann
REngimann used Ask the Experts™
on
In WatchGuard XTM SMTP Proxy definitions, it implies you can set up a rule for "masquerading".  However, how do you set up the replacement string?   For instance, if I want person@contoso.com to be redirected to person@contoso.org, it is easy enough to match the string and replace it.  But, if I want everyone @contoso.com to be redirected to their same name @contoso.org, how do you set up the replacement string?  You can use a wildcard on the string match but what syntax do they use for the replacement string to attach the portion before @contoso.com.   Seems that this should be a simple process for creating masquerading.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Jeremy WeisingerSenior Network Consultant / Engineer

Commented:
This is configured in the proxy settings. Mail From and Rcpt To is where you configure it.

SMTPProx.png

Author

Commented:
Thanks - I know WHERE to set up the rewrite... just could not get a valid replacement string.  For instance, if I use *@contoso.com in the Pattern Match (or Regular Expression) and the incoming address is user@contoso.com, I could not find a replacement string that would give me user@contoso.org.  I tried the typical regular expression field information (like $` , etc.) to get the string preceding the @contoso.com but it appears the replacement field only allows literal characters.
Senior Network Consultant / Engineer
Commented:
If you don't switch to the advanced view it will handle the syntax for you. But this should replace the domain of the email address when in advanced view:
Pattern match: *@contoso.com
Replace action: \1@contoso.org

Author

Commented:
Thanks Jeremy - didn't think to try the group id replacement option.  Your solution is perfect!
Jeremy WeisingerSenior Network Consultant / Engineer

Commented:
Glad to help. :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial