我正在使用postfix 3.3.0
我有main.cf
smtpd_command_filter = pcre:/etc/postfix/command_filter
在comman_filter
/^(RCPT\s+TO:\s*<(.*)@domaina.com>)/ RCPT TO:<[email protected]>
查询时 它工作正常postmap -q "RCPT TO: <[email protected]>" pcre:/etc/postfix/command_filter
输出:RCPT TO: <[email protected]>
我已经执行 postmap /etc/postfix/command_filter
并且restarted postfix
并且仍然对 postfix smtp telnet 远程 hist 和发送 rcpt 命令没有影响
也许我遗漏了一些东西。
It has to be done this way not by hash maps redirect domain