Rev | Line | |
---|
[5] | 1 | The email2trac package contains the following utilities: |
---|
| 2 | - email2trac.py: |
---|
| 3 | Converts an email to ticket. Reads a config file email2trac.conf |
---|
| 4 | - run_email2trac.c: |
---|
| 5 | Suid program that changes the MTA-user to the TRAC-user so that we can |
---|
| 6 | save attachments |
---|
| 7 | - delete_spam.py: |
---|
| 8 | A small program that deletes the SPAM tickets from the database |
---|
| 9 | - email2trac.conf: |
---|
| 10 | Is read by email2trac.py to set the various options. This are the options: |
---|
| 11 | [DEFAULT] # REQUIRED |
---|
| 12 | project: /data/trac/bas # REQUIRED |
---|
| 13 | debug: 1 # OPTIONAL, if set print some DEBUG info |
---|
| 14 | spam_level: 4 # OPTIONAL, if set check for SPAM mail |
---|
| 15 | reply_address: 1 # OPTIONAL, if set then fill in ticket CC field |
---|
| 16 | umask: 022 # OPTIONAL, Use this umask for saving attachments |
---|
| 17 | mailto_link: 1 # OPTIONAL, if set then [mailto:<CC>] in description |
---|
| 18 | email_header: 1 # OPTIONAL, if set then show TO/CC fields in description |
---|
[9] | 19 | trac_version: 0.8 # OPTIONAL, if set use this as trac version |
---|
[5] | 20 | |
---|
| 21 | |
---|
| 22 | SETUP |
---|
| 23 | ===== |
---|
| 24 | |
---|
| 25 | It depends on your MTA how the setup is. Below is an example of the SARA setup |
---|
| 26 | that uses postfix as our MTA. |
---|
[9] | 27 | - Edit Makefile, adjust the variables |
---|
| 28 | - make |
---|
| 29 | - make install |
---|
[5] | 30 | - Copy email2trac.conf to /etc (default location for email2trac.py) |
---|
[9] | 31 | If different location use the "-f <config file> or --file=<config file>" to run_email2trac |
---|
[5] | 32 | |
---|
| 33 | - vi /etc/aliases |
---|
[9] | 34 | bas: |/usr/sbin/run_email2trac [-f <config file>| --file=<config file>] |
---|
| 35 | |
---|
[5] | 36 | - newaliases |
---|
| 37 | - Test |
---|
| 38 | mail bas < test7.eml |
---|
Note: See
TracBrowser
for help on using the repository browser.