| 8 | |
| 9 | === Delivered-To Fiels === |
| 10 | |
| 11 | This is the preferred way. With this configuration each ticket get its own reply-to address. This can only work if the [https://trac-hacks.org/wiki/AnnouncerPlugin AnnouncerPlugin] is installed with [https://trac-hacks.org/ticket/10044#comment:5 rewrite replyto patch] or download [ftp://ftp.surfsara.nl/pub/outgoing/announcer-surfsara.tar.gz surfsara patched AnnouncerPlugin] |
| 12 | |
| 13 | Your MTA must support this. Currently we support two methods in ''email2trac.conf'': |
| 14 | 1. `notify_replyto_rewrite: use_mail_domain` |
| 15 | 1. `notify_replyto_rewrite: use_trac_smtp_replyto` |
| 16 | |
| 17 | Each option has its own settings. The options are described below. |
| 18 | |
| 19 | ==== use_mail_domain ==== |
| 20 | |
| 21 | When this option is used you have setup your own MTA for this domain. After that you have to set 2 options: |
| 22 | 1. email2trac.conf |
| 23 | {{{ |
| 24 | notify_replyto_rewrite: use_mail_domain |
| 25 | }}} |
| 26 | 1. trac.ini |
| 27 | {{{ |
| 28 | [announcer] |
| 29 | ticket_email_replyto = $(ticket.id)@email2trac.surfsara.nl |
| 30 | }}} |
| 31 | |
| 32 | ==== use_trac_smtp_replyto ==== |
| 33 | |
| 34 | Your MTA must support this format `email2trac+<id>@surfsara.nl`. For postfix this can be set in the configuration file (main.conf): |
| 35 | {{{ |
| 36 | # The recipient_delimiter parameter specifies the separator between |
| 37 | # user names and address extensions (user+foo). See canonical(5), |
| 38 | # local(8), relocated(5) and virtual(5) for the effects this has on |
| 39 | # aliases, canonical, virtual, relocated and .forward file lookups. |
| 40 | # Basically, the software tries user+foo and .forward+foo before |
| 41 | # trying user and .forward. |
| 42 | # |
| 43 | recipient_delimiter = + |
| 44 | }}} |
| 45 | |
| 46 | After this change we have to set some options in: |
| 47 | 1. email2trac.conf |
| 48 | {{{ |
| 49 | notify_replyto_rewrite: use_trac_smtp_replyto |
| 50 | recipient_delimiter: + |
| 51 | }}} |
| 52 | 1. trac.ini |
| 53 | {{{ |
| 54 | ticket_email_replyto = email2trac+${ticket.id}@surfsara.nl |
| 55 | }}} |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |