> Looking at your 'conditions', what you're trying to do looks like its > already handled by an existing milter > > https://www.benzedrine.ch/milter-regex.html > > How are your requirements different than what that provides?
Indeed, it looks like I could implement the requirements I am using with milter-regex, but the additional requirement that I did not list was that SASL-authenticated mail with a header From matching the alias of a user should be modified so that the envelope from also matches that alias. Otherwise I observered that I could send email from an alias via Thunderbird, but my envelope from was giving away my real email address. In fact, this was the original reason for writing my own milter, and the other requirements were easy enough to enforce at the same time. I'm using largely regex anyway, with a combination of some SQL lookups for checking aliases against SASL usernames. Ryan