03-20-2023 03:40 PM
Does the ESA support wilcard or regex domain maps?
We have requirement for the ESA to relay selected domains, and have everything else sent to a specific mailbox.
Solved! Go to Solution.
03-21-2023 08:52 AM
03-21-2023 08:52 AM
03-21-2023 09:00 PM - edited 03-21-2023 09:02 PM
Hi Ken,
Actually this is for outbound mail. The use case is for a QA environment with live user data. What we'd like to happen is that when the ESA receives email for our internal domains (company.com), it will process them normally and send them to our mail servers.
When it receives anything we don't own (i.e. customer emails - gmail.com, yahoo.com, etc), we need to stop them from getting sent to the customer's actual address and instead rerout it into a mailbox on our internal domain (QA-mails@company.com.
I think you are on to something there with doing it via RAT, I just probably need to retool it to get it to do what I stated above.
03-22-2023 04:56 AM
03-22-2023 02:22 PM
Yes.
BTW, your initial solution works. Probably just need to streamline a bit further.
03-22-2023 02:27 PM
Ok, cool. Here's another way to do it from the point of view that the QA boxes are sending "outbound" mail to the outbound listener.
Assuming this is for your production ESAs, the outbound RAT may not help, you can’t really change the routing for “All other domains" without breaking mail delivery.
If all of the QA boxes are sending directly the ESA, under Network/Host Access Table, select your outbound listener, and create a new sender group (‘QABoxes’), with the IPs of your QA boxes in it.
The create a message filter (in the cli, not gui).
QAmail:
If (sendergroup == “QABoxes”)
{
if (rctp-to != “company.com”)
{
Bcc(‘qa-mails@company.com);
Drop():
}
{
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide