Devo effettuare la sostituzione di una determinata stringa per ogni email che passa per il ns sistema di posta (postfix).
Ho realizzato qualcosina attraverso la funzione body_checks, ovvero
in main.cf ho precisato il file di mapping con la stringa
Codice: Seleziona tutto
body_checks=regexp:/etc/postfix/body_checks
Codice: Seleziona tutto
# aaa
/www.miodominio.it/ REPLACE www.tuodominio.it
Su http://www.postfix.org/header_checks.5.html ho trovato che il paragrafo
Codice: Seleziona tutto
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.
Sia ringraziato chiunque riuscisse ad avere un lampo di genio ed aiutarmi.
Grazie infinite
