I am setting up a testing server for a web based application that sends some email notifications.
Sometimes testing is performed with real customer data, and for that reason I need to guarantee that the server is not able to send emails to our real customers while we're testing.
What I want is to configure postfix so that it takes any outgoing email and redirects it to a single email address, instead of delivering to the real destination.
I am running Ubuntu server 9.10.
Thank you in advance
luser_relay = xxxxxinmain.cf. Without this the emails would bounce. – Alex R May 29 '11 at 00:57sudo service postfix restart. The location of your main.cf file mentioned above is/etc/postfix/main.cf. When first installing and setting up Postfix, you can use theLocal onlyinstallation option. – Mark Northrop May 25 '12 at 09:12postmap hash:/etc/postfix/transportandsudo postfix stop,sudo postfix start– Bang Dao Jul 23 '13 at 08:50