On 2/11/25 16:40, Wietse Venema wrote:
Specifically, the first example at the above URL:

        /etc/postfix/header_checks.pcre:
            /^Content-(Disposition|Type).*name\s*=\s*"?([^;]*(\.|=2E)(
              ade|adp|asp|bas|bat|chm|cmd|com|cpl|crt|dll|exe|
              hlp|ht[at]|
              inf|ins|isp|jse?|lnk|md[betw]|ms[cipt]|nws|
              \{[[:xdigit:]]{8}(?:-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}\}|
              ops|pcd|pif|prf|reg|sc[frt]|sh[bsm]|swf|
              vb[esx]?|vxd|ws[cfh]))(\?=)?"?\s*(;|$)/x
                REJECT Attachment name "$2" may not end with ".$4"

It does not have your problem with .com in the middle of a string.


Yup. I just ripped my ancient, forgotten, half-assed one out and replaced it with that in my smtp_header_checks.pcre file instead.

Thanks for the pointer.


Legacy cruft you've forgotten about will bite you in the ass every time...


--
  Phil Stracchino
  Fenian House Publishing
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to