Results 1 to 3 of 3

Thread: Postfix - Virtual Alias - To: changes to undisclosed-recipients

  1. #1
    Join Date
    Jul 2011
    Beans
    3

    Postfix - Virtual Alias - To: changes to undisclosed-recipients

    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?
    Last edited by mribbons; July 20th, 2011 at 04:14 AM.

  2. #2
    Join Date
    Jul 2011
    Beans
    3

    Re: Postfix - Virtual Alias - Duplicated at recipient

    So my issue now is that the alias recipient receives 2 copies.

    I found the recipient_bcc_maps option which does something similar to what I want, but postfix was still duplicating the copied mail.

    This looks similar to my problem: http://www.adras.com/recipient-bcc-m...t6010-139.html

    So I disabled amavis in main.cf:
    #content_filter = amavis:[127.0.0.1]:10024

    And it now works as required, 1 message to original recipient, 1 to groupmail@example.com

    I would really like to use amavis - Is there a way to configure it so it doesn't filter both the original and the bcc?

  3. #3
    Join Date
    Jul 2011
    Beans
    3

    Re: Postfix - Virtual Alias - To: changes to undisclosed-recipients

    http://tech.groups.yahoo.com/group/p...message/206048

    Use above + bcc_recipient_maps rather than a virtual alias.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •