Answer the question
In order to leave comments, you need to log in
How can I make Postfix change the content of an email depending on the sender?
Hello.
How can I make Postfix change the content of an email depending on the sender? That is, if user1 sends a letter through my mailer in which "test.com" occurs, then the letter left with the text "test1.com". And for user2, the same characters changed to "test2.com" and so on.
Tell me which way to dig.
Answer the question
In order to leave comments, you need to log in
In Posfix, it's easier to do a replacement via body_checks
www.postfix.org/header_checks.5.html
There is a REPLACE action
I don't know about Postfix, but sendmail has such a thing - milter. Which allows you to write a program (a real program, NOT a script) that allows you to do anything with a letter. I used to mess up the antivir like this, until Casper changed the exchange protocol with his demon and the free keys ran out.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question