Hi, >I have a number of rules that match on the To field, but what to do if the > >To field is missing? > > 10_hasbase.cf:header __HAS_TO exists:To > > define: > > meta MISSING_TO !__HAS_TO > > >Received: from test.com (wsip-72-214-24-18.sd.sd.cox.net [72.214.24.18]) > > by mail01.example.com (Postfix) with SMTP id 12425B9B > > for <j...@gooddom.com>; Fri, 15 Jul 2022 18:50:34 -0400 (EDT) > > > >I realize I can match on the Received header here, but that would require > >creating an additional rule for each corresponding To rule. Perhaps > there's > >a way to combine them, or a tag that can be used for both? > > the main question is what do you want to match.
The problem I'm having is that my To header rules aren't matching because there is no To header, and I'm otherwise unsure what to match on. The only occurrence of the recipient in the entire email is in that Received header. My reference to the __HDRS_MISSP was to possibly use that as an example for a new rule that would allow me to match on the j...@gooddom.com using the same "ALL:raw" idea in some way. It does match on "ALL", but I think I need to be more specific than that, to avoid matching on "From:" or Return-Path or EnvelopeFrom./ Thanks, Alex