Results 1 to 4 of 4

Thread: Need to find alias to which message was sent

  1. #1
    Join Date
    Mar 2007
    Posts
    20
    Rep Power
    8

    Default Need to find alias to which message was sent

    I just put in a bug request for the inclusion of a x-original-to header:
    http://bugzilla.zimbra.com/show_bug.cgi?id=15395
    but perhaps there is another way to deal with the problem I'm having.

    I'm new to Zimbra, and I'm in the process of moving my domain from qmail to an existing Zimbra server. I have a fair amount of control over the way the Zimbra server is to be configured, which may help in finding a solution.

    One of the tricks I've used over the years is to create a new email alias to give to each company that I do business with. Among other things, this lets me easily turn off an email address if someone starts using it for spam, and no other address is affected. It also lets me detect spam more easily; if I get an eBay email but it's not to my eBay address, I know I can ignore it.

    I do a lot of filtering based on the alias to which the mail was sent. My old server gave me an X-Original-To header which made this easy. But Zimbra doesn't include this header. For most messages, I can get the recipient from To: or CC: headers. Failing that, I can look at the Received: headers, but even this isn't guaranteed to tell me what alias the message was sent to.

    Perhaps the X-Original-To header was omitted by design, since it would make it hard to have a single-copy-per-message mail store. But it's been driving me nuts. I could probably add the envelope contents to every message as it comes in -- but this would violate the spirit of BCC addressing. I really want to just add this header to any mail that comes into a single mailbox, and I don't know how to do it.

    Given that the domain is mine, I don't mind too much if I lose the privacy of BCC for all addresses in that domain; perhaps that would make a solution easier to implement?

    I know there are a lot of clever people out there. Does anyone have any suggestions on how I might proceed? Perhaps a Postfix filter to selectively add headers to certain messages? Can I set this up as a daemon to cut down on the overhead of spawning a process with each message? Is there something I can set up on a per-user basis? (And, for you Electric Company fans out there: What about Naomi? :-)

    So far, the best solution I have found is to create a real mailbox for each of the hundreds of aliases I now have, forward these to my primary mailbox, and then parse all the Received: headers to find the original recipient. The filtering job might be made easier if I can inject a special header into these messages before forwarding them. But the idea of creating hundreds of forward-only mailboxes seems kludgy to me....

    Thanks in advance for any suggestions you might have.

  2. #2
    Join Date
    Dec 2006
    Location
    Paris
    Posts
    78
    Rep Power
    8

    Default

    Hello,

    Did you find any solution to your problem ?

    I'm in the same situation where we have a single account which catches all user requests to our IT staff.
    There are many aliases which were used to dispatch requests to different queues in our request tracker (OTRS), but with Zimbra, the original To: field gets transformed and can no longer be used.

    I hope I can avoid creating all these mailboxes

    Regards,
    Artturi

  3. #3
    Join Date
    Jun 2007
    Posts
    7
    Rep Power
    8

    Default

    Hi Artturi,

    I don't fully understand your problem: When I send a mail to an alias of a user the 'To:' header isn't transformed so OTRS should be able to filter it out.

    I assume your using the pop3 way to grab mail from the zimbra box into OTRS ?

  4. #4
    Join Date
    Mar 2007
    Posts
    20
    Rep Power
    8

    Default Aliases and filtering

    No -- I never got any kind of answer. What's more, unless folks vote for enhancement request #15395, I'm not sure that I will.

    HTML Code:
    http://bugzilla.zimbra.com/show_bug.cgi?id=15395
    And to answer the subsequent message, the problem occurs when I use aliases to communicate with businesses or to sign up for mailing lists. In such cases, the recipients are often BCC'd and there is no way to determine which alias received the mail.

Similar Threads

  1. Replies: 3
    Last Post: 07-19-2007, 02:00 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. Replies: 4
    Last Post: 08-10-2006, 10:55 PM
  4. Cannot find new email message
    By achow in forum Users
    Replies: 1
    Last Post: 06-16-2006, 10:33 PM
  5. Migration from Exchange 2003
    By goetzi in forum Administrators
    Replies: 13
    Last Post: 11-22-2005, 09:50 PM

Posting Permissions

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