> On May 31, 2017, at 3:46 AM, rolelael <robby.vanmieg...@gmail.com> wrote: > > This one not , but the 'string' is in the header From.. > > Example of Header From : > > header From: ROBBY VAN MIEGHEM <robby.vanmieg...@domain.be>
The above is the complete actual header content. > from mail-amsdgsdgshdghsdghsd.outbound.protection.outlook.com[x.x.x.x]; > from=<> > to=<rus...@gmail.com> > proto=ESMTP > helo=<EUR02-FR01-obe.outbound.protection.outlook.com>: The above is SMTP envelope metadata, and NOT part of the header content. > SO how can I get the from=<> trigerred? Nothing built-in in Postfix will do this. You need a custom milter or content-filter to base policy on a combination of purported author (RFC2822.From) and SMTP evelope sender (RFC2821 "MAIL FROM:" SMTP reverse path). -- Viktor.