Redirecting wildcard emails to one email with postfix
Posted
by
Burning the Codeigniter
on Server Fault
See other posts from Server Fault
or by Burning the Codeigniter
Published on 2012-10-05T18:58:42Z
Indexed on
2012/10/07
15:39 UTC
Read the original article
Hit count: 487
I'm creating a bounce email system where emails can reply to messages on my site.
However when the emails are sent to the user containing the previous message, the Reply-To field contains an email something like this [email protected] (which contains the ID at the end).
If the user replies, the reply message will be sent back to [email protected] which of course, doesn't have its own mailbox, except the [email protected].
How would I redirect all incoming messages coming from a specific wildcard notification-message-*@mysite.com to [email protected]? I did some research, but no solid part worked, including the luser_relay = [email protected] and putting notification-message-* in the postfix aliases table, the notification@ has a Maildir, so the emails would go into it.
I am using Ubuntu 11.04.
© Server Fault or respective owner