Postfix - Altermime

Discussion in 'HOWTO-Related Questions' started by rich872, Oct 15, 2025.

  1. rich872

    rich872 New Member

    Any postfix/altermime experts out there? I've got altermime installed on my postfix server and have it setting a disclaimer on all emails. Its working great except I cant figure out a way to only apply it to externally sent emails. Basically I want the disclaimer to be applied to all emails except the ones that go to example.com domain. Is there a way to do that? Appreciate any insight...
     
  2. WesBadamio

    WesBadamio New Member

    You can handle that with Postfix header checks — just skip altermime when the recipient matches @example.com. Something like:

    /@example\.com$/ FILTER skip_disclaimer

    That way, internal emails stay clean while external ones get the disclaimer.
     

Share This Page