Using Debian 7 I need to setup a mail server configuration for testing purposes. This setup is not intended to "go into production" mode but we need something like this during our development process for a mobile app.
The app requires a user to register with an email address and sends out a confirmation link as lots of services do. However we cannot create hundreds of real email addresses for testing, so the idea would be to define certain wildcards and any address matching this wildcard shall be forwarded to a specific existing email address.
Example
user1_*@mydomain.com --> firstname.lastname@mail.com
user2_*@mydomain.com --> firstname.lastname@googlemail.com
So that...
user1_sdaklfjsh@mydomain.com
user1_3464trh@mydomain.com
user1_lkljkkhjgh@mydomain.com
would all be forwarded to firstname.lastname@mail.com.
Are there any tutorials or guides how to do this?