* Gianluca Gargiulo <[email protected]>:
> Hello,
>
> i hope somebody can help me
> I must to replace any sub-string in every mail processed by postfix.
> I set my postfix so:
> in main.cf
>
> body_checks=regexp:/etc/postfix/body_checks
>
> and then in Body_checks
>
> # aaa
> /www.mydomain.it/ REPLACE www.otherdomain.it
>
>
> but this way provide to replace all the line about the match. I wan to
> replace only match.
/^(.*)www\.mydomain\.it(.*)$/ REPLACE ${1}www.otherdomain.it${2}
--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
[email protected] | http://www.charite.de