Hi,
I have set up postfix with mysql and virtual domains as per http://flurdy.com/docs/postfix/
I'm using Ubuntu Server 10.04 with the latest updates.
All good so far, I can send and receive mail.
I want to forward all emails for some domains to a single mailbox for a group mail system, however I also want the mail delivered to the original recipient.
eg RCPT TO: <user@example.com>
would be delivered to user@example.com and groupmail@example.com
I have inserted an alias record as follows:
mail: @example.com
destination: groupmail@example.com
There are 2 problems:
1. The mail is only delivered to groupmail@example.com
[EDIT:] If I create a new entry above as mail: user@example.com, groupmail@example.com it nearly works - I get the original mail to user@example.com, but 2 copies of the email to groupmail@example.com
2. The recipient appears as "To: undisclosed-recipients:;"
[EDIT:] This seems to happen for all emails, regardless of forwarding. I wonder if it's a proplem with my raw mail RCPT TO: command?
[EDIT:] This can be fixed by supplying a To: "person name" <user@example.com> line in the data section
Because it's a group mail system, we need to know who the mail was originally addressed to, so we need that To: to appear as it did in the original email.
Is virtual aliasing the right thing to use here?
If so how can I make it deliver to the original recipient, and include that address in the forwarded message?
Bookmarks