Changes between Version 13 and Version 14 of WikiStart


Ignore:
Timestamp:
12/06/06 15:17:00 (16 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v13 v14  
    3838You can check out email2trac from [http://subtrac.sara.nl/oss/svn/email2trac here] using Subversion, or [source:trunk browse the source] with Trac.
    3939
    40 == Usage ==
    41 
    42 It depends on your MTA how the setup is. For Sendmail and Postfix, the procedure is the same :
    43  * Edit your alias definition file (default : /etc/aliases for Postfix,
    44    /etc/mail/aliases for Sendmail) and add one line per project/component you
    45    want to allow ticket submission from email to. For each alias, you can
    46    specify option --project. This option selects a configuration stanza in the
    47    config file and ''--component'' to specify a component other than the
    48    default component for the project. Line must have the following format :
    49 {{{
    50      tracproj: |/usr/bin/run_email2trac [--project=<name>] [--component=<component>]
    51 }}}
    52 
    53   * Update your alias database with command ''newaliases''
    54   * Test with a command like :
    55 {{{
    56      mail tracproj < msg.txt
    57 }}}   
    58   * if mail fails you can also check if it is an email setup error or a trac-setup error, test it with the following command:
    59 {{{
    60 email2trac --project=tracproj < msg.txt
    61 if this is okay then it is an email setup error
    62 }}}
    63 
    64 === Note for postfix ===
    65 
    66 {{{run_email2trac}}} is totally unnecessary for Postfix. You can run a delivery command as any user just by placing the aliases in a separate file and {{{chown}}}ing that aliases file to the user you want the delivery to run as. Then you run {{{postalias /path/to/aliases}}}, which will create {{{/path/to/aliases.db}}}, and you then just add {{{hash:/path/to/aliases}}} to the {{{alias_maps}}} config variable in {{{main.cf}}}.
    67 
    68 The only caveat is that the user who owns the separate aliases file needs to have write perms to the directory that it's stored in (which rules out putting it in {{{/etc/postfix}}} unless you're nuts) 
    69 -- mpalmer@hezmatt.org.
    70 
    71 === Note for Sendmail ===
    72 This is a message from emailtotrac tickets archive:
    73 {{{
    74 Sendmail limits the executables that can be run via aliases to those in a
    75 special directory, and runs them using a restricted shell called smrsh.
    76 On RH, the default location for the allowed programs is /etc/smrsh.
    77 
    78 I tried both a link in that dir to the run_email2trac file and a little
    79 shell script that simply calls run_email2trac and passes the params. Both
    80 should work, but neither did yet. Majordomo works the same way, and it
    81 set up on the machine already so I'll check on that later today.
    82 
    83 I found a pretty good walk-through of the problem/solution at
    84 http://archives.free.net.ph/message/20030605.105120.74c3bfa8.html
    85 
    86 Well, I was in fact doing the right thing. Here's all the steps to follow
    87 post make install
    88 
    89 ln -s /usr/local/bin/run_email2trac /etc/smrsh/run_email2trac
    90 
    91 in aliases use:
    92 
    93 "|run_email2trac -project=bas"
    94 
    95 Note: Include the quotes, they are necessary. That got me past the
    96 sendmail problem. No ticket appeared in the project, but I'll look into
    97 that next. Is there a log generated anywhere?
    98 }}}
    99 
    10040== Author/Contributors ==
    10141