i am using postfix 3.3.0
i have in main.cf
smtpd_command_filter = pcre:/etc/postfix/command_filter
in comman_filter
/^(RCPT\s+TO:\s*<(.*)@domaina.com>)/ RCPT TO:<$2@domainb.com>
whene querying postmap -q "RCPT TO: <user9@domaina.com>" pcre:/etc/postfix/command_filter
it works just fine
output: RCPT TO: <user9@domainb.com>
i have executed postmap /etc/postfix/command_filter
and restarted postfix
and still no effect on postfix smtp telnet remote hist and send rcpt command
Maybe I’m missing something.
It has to be done this way not by hash maps redirect domain