All my users use outlook, so the From field reaches the postfix like this: From: "Name and Surname" address@something.com. I need a regular expression to change the address, I have this in the file header_checks:
/^(From: "(?:[^"]|"")*" <reservas1@domain.co.cu>)$/ REPLACE From: "Reservas" <reservas@domain.co.cu>
and in the file main.cf have:
...
header_checks = pcre:/etc/postfix/header_checks
...
Conclusion, what I need iswhen the reservas1 and reservas2 email addresses send an email change the address for reservas@domain.co.cu.
Thanks to anyone!