sel...@linagora.com:
> Sorry for the lack of provided info. 
> 
> A customer wants to evaluate a new SMTP server alongside the existing
> one for a period of time. 
> 
> They want to be able to have the choice at one moment to be able to
> switch from the legacy SMTP server to the new one. 

This is possible in principle (using hash tables below
for simplicity).

Set up virtual aliases to 'split' one envelope address into two:

    /etc/postfix/main.cf:
        virtual_alias_maps = hash:/etc/postfix/virtual

    /etc/postfix/virtual
        u...@example.com   u...@server1.example.com, u...@server2.example.com

Set up smtp_generic_maps to undo the result from virtual aliasing:

  /etc/postfix/main.cf:
      smtp_generic_maps = hash:/etc/postfix/smtp_generic

  /etc/postfix/smtp_generic:
      u...@server1.example.com        u...@example.com
      u...@server2.example.com        u...@example.com

This way each server sees the correct address.

        Wietse

Reply via email to