[ Rédigé dans le sens de lecture professionnel.
  Written in the professional reading direction. ]

Le (on) 08/02/2022, SysAdmin EM <emaw...@gmail.com> a écrit (wrote):

| I use the header_checks file to insert a data in the Reply-To header but
| depending on the provider it is added incorrectly.
| 
| # /etc/postfix/header_checks
| 
| /^From: (.*@primarydomain.com)/ PREPEND Reply-to: $1
[...]

Your .* matches too large ( for example, " ", <, >, @, \n )
First analyze how your enemies format the first ^From: field with
the INFO action, collect many ≠ cases.
Be prepared for the worst.

Test your RE outside of Postfix on the worst cases.

Keep the PREPEND for when you handle the worst cases.
Your RE will be slightly more complex :).

PS : your Gmail is wrong --> "<<"
-- 
    « The only thing necessary for the triumph of evil
    is for good men to do nothing. »
                                                Edmund Burke
--------
daniel Azuelos

Reply via email to