source: emailtotracscript/trunk/INSTALL @ 87

Last change on this file since 87 was 87, checked in by bas, 18 years ago

EmailtoTracScript?:

email2trac.py.in:

  • added enable_syslog option
  • fixed an error in unicode converting
  • Fixed some layout code
  • Property svn:mime-type set to text/x-trac-wiki
File size: 3.7 KB
RevLine 
[16]1= Installation and Configuration of email2trac =
2
[5]3The email2trac package contains the following utilities:
[19]4 email2trac.py   : converts an email to ticket. Reads a config file
5                   email2trac.conf
6 run_email2trac.c: suid program that changes the MTA-user to the TRAC-user so
7                   that we can save attachments
8 delete_spam.py  : small program that deletes the SPAM tickets from the database
9 email2trac.conf : read by email2trac.py to set the various options. This are
10                   the options:
[16]11{{{
[19]12 [DEFAULT]                  # REQUIRED
13 project: /data/trac/jouvin # REQUIRED
14 debug: 1                   # OPTIONAL, if set print some DEBUG info
15 spam_level: 4              # OPTIONAL, if set check for SPAM mail
[47]16 reply_address: 1           # OBSOLETE, see trac.ini notification section
17 reply_all: 1               # OPTIONAL, if set then put all CC-addresses in ticket CC-field
[19]18 umask: 022                 # OPTIONAL, Use this umask for saving attachments
19 mailto_link: 1             # OPTIONAL, if set then [mailto:<CC>] in description
[82]20 mailto_cc: ticket@test.nl  # OPTIONAL, Use this address as CC in mailto line
[74]21 ticket_update: 1           # OPTIONAL, if set then check if this is an update for a ticket
[19]22 email_header: 1            # OPTIONAL, if set then show TO/CC fields in description
23 trac_version: 0.8          # OPTIONAL, if set use this as trac version (D: 0.9)
[87]24 enable_syslog: 1           # OPTIONAL, if set log errors to syslog
[19]25
[20]26 [bas]                     # OPTIONAL project declaration, also set
27                           # project option, use -p|--project
28 project: /data/trac/bas   #
[19]29 spam_level: 2             # Override DEFAULT spam_level, can also be
30                           # done for other options
[16]31}}}
[5]32
[16]33== Installation and Configuration ==
[5]34
[16]35First build, install email2trac :
[5]36
[51]37option 1:
38  * ./configure (see --help)
[24]39    {{{
40    default values for:
41       prefix=/usr/local        --> --prefix=<path>
42       exec_prefix=$prefix/bin  --> --exec_prefix=<path>
43       sysconfdir=$prefix/etc   --> --sysconfdir=<path>
44       MTA_USER=nobody          --> --with-mta_user=<name>
45       TRAC_USER=www-data       --> --with-trac_user=<name>
46    }}}
[16]47  * make
48  * make install
[24]49  * First install copy emailtrac.conf to $sysconfdir
[5]50
[51]51option 2:
52  * debian/rules binary
53  * First install copy emailtrac.conf to /etc
[9]54
[51]55After installation, edit email2trac.conf for your site. Most important
56parameter is project, see above
57
[81]58If you have enabled 'ticket_update' in email2trac.conf then you have
[82]59to choose one of these options to make it work:
[81]60  1 - Configure trac notification, eg:
61      - (ticket address: ticket@test.nl)
62      [notification]
63      smtp_enabled = true
64      smtp_always_cc = test@test.nl
65      smtp_server = localhost
66      smtp_from =  ticket@test.nl
67      always_notify_reporter = true
68
69  2 - Use the mailto_cc in email2trac.conf if you want to sent
[82]70      an email to the user and the trac ticket email address via
71      the mailto link
[81]72
[16]73== Usage ==
74
[19]75It depends on your MTA how the setup is. For Sendmail and Postfix, the p
76rocedure is the same :
77 * Edit your alias definition file (default : /etc/aliases for Postfix,
78   /etc/mail/aliases for Sendmail) and add one line per project/component you
79   want to allow ticket submission from email to. For each alias, you can
80   specify option --project. This option selects a configuration stanza in the
81   config file and ''--component'' to specify a component other than the
82   default component for the project. Line must have the following format :
[16]83{{{
84     tracproj: |/usr/sbin/run_email2trac [--project=<project_name>] [--component=<project_component>]
85}}}
86
87  * Update your alias database with command ''newaliases''
[19]88  * Test with a command like :
[16]89{{{
[56]90     mail tracproj
[16]91}}}
Note: See TracBrowser for help on using the repository browser.