Autor: Brian Spraker Data: Dla: Exim Users Temat: [exim] Match $h_To
Attempting to do a match for $h_To for the vacation / out of office reply item that was sent to the group a while ago.
Here is my line:
${if { match {$h_To:} {(?i).*emailaccount@???.* } } {no} {yes} }
In essence, it is checking the "To" in the headers - which should be the original e-mail address before it is changed over to the forwarding e-mail addresses.
It checks using case insensitive manner (?i) and I have a ".*" before and after the e-mail address. It still is sending out an out of office reply though.