Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Using Zimbra shared folders to simulate "discussion forums"

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    BC, Canada
    Posts
    281
    Rep Power
    8

    Default Using Zimbra shared folders to simulate "discussion forums"

    We're looking for a way to create a "discussion forum" kind of setup in Zimbra, where people can post messages, read old messages, reply to messages, etc.

    I've found a method that does just about everything we need ... with one very glaring issue. Here's the setup:

    • zimbra account called "math-forum" created, logins disabled except via "View Mail" from admin console
    • Inbox for math-forum is shared out to people with "viewer" role
    • people can post messages via e-mail to "math-forum"
    • people can view messages via the shared folder
    • people can reply to these messages same as any other message
    • only admin users can delete messages


    The issue is that when people hit reply while reading messages in the shared folder, the message is addressed to the person who sent the message, and not to "math-forum". Which makes sense, as that is how e-mail works (you reply to the sender, not the recipient). And one can use reply-all to kind of work around that (except it puts the math-forum address into CC: instead of TO:, so people have to cut/paste, etc).

    What I was wondering is if anyone knows of a way to:
    • rewrite the "Reply-To" header on messages sent to "math-forum" to put the "math-forum" address in (making replies go back to the "math-forum", but keeping the From header intact), or
    • force replies to messages in a shared folder to always go to a certain address, or
    • create "discussion forums" within Zimbra


    Unfortunately, the filters interface in Zimbra doesn't have a "re-write header X to Y" or "add header X" option. That would be the simplest solution, as we could then configure the account with a filter that added/re-wrote the Reply-To header to the address of the account.

    The second option would probably take a lot of re-working the zimbra internals and be a pain to administer.

    The third option would be best long-term solution, as it would require using up licenses for each forum.

    If distribution lists were more like mailing lists where the Reply-To header was set to the address of the list, then this would be a moot point, and could be done via mailing lists and shared folders. [hint, hint]

    Suggestions? Comments? Criticisms?
    Freddie

  2. #2
    Join Date
    Jun 2007
    Location
    BC, Canada
    Posts
    281
    Rep Power
    8

    Default

    Quote Originally Posted by fcash View Post
    What I was wondering is if anyone knows of a way to:
    • rewrite the "Reply-To" header on messages sent to "math-forum" to put the "math-forum" address in (making replies go back to the "math-forum", but keeping the From header intact)


    Unfortunately, the filters interface in Zimbra doesn't have a "re-write header X to Y" or "add header X" option. That would be the simplest solution, as we could then configure the account with a filter that added/re-wrote the Reply-To header to the address of the account.
    Would this be possible to do via Postfix? Or perhaps via CLI access to the SIEVE engine?
    Freddie

  3. #3
    Join Date
    May 2007
    Location
    St. Louis, MO USA
    Posts
    21
    Rep Power
    8

    Default

    Quote Originally Posted by fcash View Post
    Would this be possible to do via Postfix? Or perhaps via CLI access to the SIEVE engine?
    I need this, too, and I voted for this feature in Bugzilla #15664. You should vote for it, too, that would make four of us.

    Meanwhile, I'm trying to learn how to modify my Zimbra's Postfix configuration to rewrite the Reply-To header for inbound messages sent to specific addresses (Zimbra distribution lists). I've found no examples, but I'm starting with this information. Any help from Postfix gurus here would be appreciated.

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    160
    Rep Power
    8

    Default

    Quote Originally Posted by Rabid View Post
    I need this, too, and I voted for this feature in Bugzilla #15664. You should vote for it, too, that would make four of us.

    Meanwhile, I'm trying to learn how to modify my Zimbra's Postfix configuration to rewrite the Reply-To header for inbound messages sent to specific addresses (Zimbra distribution lists). I've found no examples, but I'm starting with this information. Any help from Postfix gurus here would be appreciated.
    I'll vote for that one ;-)

  5. #5
    Join Date
    Jun 2007
    Location
    BC, Canada
    Posts
    281
    Rep Power
    8

    Default

    I ended up using header_checks in postfix to add the Reply-To: header when it came across certain To: headers. Not perfect, but it's workable for now until real Mailing List management tools are added (or better Mailman integration is possible).

    Code:
    if /^To: math-forum/
    /^To: math-forum/ PREPEND Reply-To: math-forum@domain
    endif
    Last edited by fcash; 01-25-2008 at 10:32 AM.
    Freddie

  6. #6
    Join Date
    May 2007
    Location
    St. Louis, MO USA
    Posts
    21
    Rep Power
    8

    Default

    Quote Originally Posted by fcash View Post
    I ended up using header_checks in postfix to add the Reply-To: header when it came across certain To: headers. Not perfect, but it's workable for now until real Mailing List management tools are added (or better Mailman integration is possible).

    Code:
    if /^To: math-forum/
    /^To: math-forum/ PREPEND Reply-To: math-forum@domain
    endif
    Thanks, Freddie, I'm going to give your tip a try.

  7. #7
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    7

    Default It works!

    Hi!

    It worked for me too. And I also added the CC field :

    Code:
    if /^To: list@domain.com/
    /^To: list@domain.com/ PREPEND Reply-To: list@domain.com
    endif
    if /^To: <list@domain.com>/
    /^To: <list@domain.com>/ PREPEND Reply-To: list@domain.com
    endif
    if /^Cc: list@domain.com/
    /^Cc: list@domain.com/ PREPEND Reply-To: list@domain.com
    endif
    if /^Cc: <list@domain.com>/
    /^Cc: <list@domain.com>/ PREPEND Reply-To: list@domain.com
    endif
    But in my case, "postfix reload" didn't worked ... I had to
    "zmcontrol stop; zmcontrl start" to make it work.

    Please vote for Bug 15664 &ndash; Add reply-to option for distribution lists to make this feature built-in in the Administrative Console !

    Have a nice day!
    JeeZ

  8. #8
    Join Date
    May 2007
    Location
    St. Louis, MO USA
    Posts
    21
    Rep Power
    8

    Default Update: revised entries in my postfix_header_checks.in

    My fix described above failed when an iPhone user e-mailed to my dist. list and respondents clicking Reply ended up replying to just the sender and not the list.

    Looking at his message headers, I found the message sent from an iPhone had an informal name before the email address in the "To: " field:
    To: List Nickname <list@domain.com>

    So I changed & simplified my regexp rule from this:
    Code:
    if /^To: <list@domain.com>/
    /^To: <list@domain.com>/ PREPEND Reply-To: list@domain.com
    endif
    to just this line:
    Code:
    /^To: .*list@domain.com.*/ PREPEND Reply-To: list@domain.com
    The 'dot-star' matches any number of any characters, and I put it before and after the email address, so it also matches the angle-bracketed email address. That fixed the problem for me.

    Of course, this would result in unwanted matches for email addresses like:
    Code:
    Joseph.List@domain.com
    list@domain.commonserver.org
    but my few sites have very few users, so the risk of false matches is low, for me.

  9. #9
    Join Date
    May 2007
    Location
    St. Louis, MO USA
    Posts
    21
    Rep Power
    8

    Default postfix fix for reply-to-list fails now

    This fix appears to fail, now, after upgrading to
    Zimbra Release 6.0.9_GA_2686.UBUNTU8_64 UBUNTU8_64 FOSS edition on Ubuntu 8.04.4 LTS

    Trying to figure out why my changes to postfix_header_checks.in aren't being respected anymore...

  10. #10
    Join Date
    May 2007
    Location
    St. Louis, MO USA
    Posts
    21
    Rep Power
    8

    Default

    This appears to be the cause for this fix failing:
    Bug 52942 - enable use of Postfix header_checks in conjunction with Amavis banned attachment warnings

    There's a couple of workarounds described there which I'll try to get back the ability for users to reply to distribution lists easily.

Similar Threads

  1. Replies: 22
    Last Post: 12-02-2007, 05:05 PM
  2. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 09:55 AM
  3. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  4. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  5. FC3 Install and no zimbra ?
    By aws in forum Installation
    Replies: 10
    Last Post: 10-09-2005, 05:19 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
  •