David Touzeau:
> dear
> 
> We need to test a new server in "middle production mode" (especially
> anti-spam content filtering, av softwares).
> 
> 
> In this case, to not disturb the production architecture, we need the
> Postfix production server duplicates received mails to this test server
> but continue delivering messages to the right next hope.
> 
> How to do that?

/etc/postfix/main.cf:
    recipient_bcc_maps = pcre:/etc/postfix/copy.pcre

/etc/postfix/copy.pcre:
    # One rule per domain that you receive mail for.
    /^(.*)@the\.example\.com$/   ${1}@test.example.com

Google "recipient_bcc_maps pcre" for similar solutions.

        Wietse

Reply via email to