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. On the postfix man page http://www.postfix.org/header_checks.5.html there is this solution TEXT SUBSTITUTION Substitution of substrings from the matched expression into the action string is possible using the conventional Perl syntax ($1, $2, etc.). The macros in the result string may need to be written as ${n} or $(n) if they aren't followed by whitespace. Note: since negated patterns (those preceded by !) return a result when the expression does not match, substitutions are not available for negated patterns. but i don't realize how to apply this mode I thank any can help me Ediconsul Informatica S.r.l. System Administrator Gianluca Gargiulo e-mail: ggargi...@ediconsul.it Tel: 081.3176326 | Fax: 081.3415110 Avvertenze ai sensi del D.lgs. 196/2003 px; Tutte le informazioni contenute nella presente e-mail sono riservate esclusivamente al destinatario. È proibito a chiunque legga la presente comunicazione, che non sia l’effettivo destinatario, qualsiasi uso, copia, distribuzione e/o divulgazione di quanto in essa contenuto. Se questa comunicazione è pervenuta per errore, si è tenuti ad informare il mittente con sollecitudine e distruggere l’intera e-mail.