Custom_headers not working

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Simoncc
Posts: 1
Joined: Mon May 03, 2021 3:15 pm

Custom_headers not working

Post by Simoncc »

Hi all,

I have a Zimbra 8.8.15_P19 single server installation.
We have set it up to use an external cloud relay service to send and receive the emails for our domains. ( MRA )

I want to redirect some internal email, sent to a wrong domain, to an internal monitor email address.
I tried to se it up following this page:

https://wiki.zimbra.com/wiki/King0770-N ... der-Checks

In my custom header check file I added a line like in the example wiki page:

/^To:(.*)<(.*)@yahoo.com>(.*)/ REDIRECT monitor@mydomain.com

restarted the service but it's not catching the email , it is still sent outside instead that to the internal e-mail address.

Is it because we use an external mail relay service? it shouldn't IMHO.

Another question is about the PCRE syntax, if I take a look to the mail logs or mail header I cannot find "To:" string but only "To=<.....>" but on this matter I'm really noob so I trust the syntax of the wiki example.

Best Regards,

Simon
Post Reply