How to rewrite recipient address in postfix.

Solution Unverified - Updated -

Issue

  • How to rewrite recipient address in postfix.
  • Rewrite original recipient to new recipient in postfix.
  • For example:
First rule rewrites test@example.com to  root@rhel75.example.com
2nd rule  rewrites anything@example.com   to test1@rhel75.example.com
3rd rule rewrites test123@gmail.com to  test2@rhel75.example.com
4th rule rewrites anything@anything to test3@rhel75.example.com   

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In