B
B
borodka_lenina2016-04-11 14:45:48
linux
borodka_lenina, 2016-04-11 14:45:48

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

2 answer(s)
V
viii, 2016-04-12
@viiy

In Posfix, it's easier to do a replacement via body_checks
www.postfix.org/header_checks.5.html
There is a REPLACE action

C
CityCat4, 2016-04-11
@CityCat4

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 question

Ask a Question

731 491 924 answers to any question