Changes between Version 2 and Version 3 of Email2tracMta


Ignore:
Timestamp:
12/06/06 15:25:29 (16 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Email2tracMta

    v2 v3  
    1212   want to allow ticket submission from email to. For each alias, you can
    1313   specify option --project. This option selects a configuration stanza in the
    14    [wiki:Email2tracConfig config file] and ''--component'' to specify a component other than the
     14   [wiki:Email2tracConfiguration config file] and ''--component'' to specify a component other than the
    1515   default component for the project. Line must have the following format :
    1616{{{
    1717     tracproj: |/usr/bin/run_email2trac [--project=<name>] [--component=<component>]
    18 }}}
     18}}}
     19  * Update your alias database with command ''newaliases''
     20 
    1921
    2022
     
    2830== Sendmail ==
    2931
    30  For Sendmail and Postfix, the procedure is the same :
    31  * Edit your alias definition file (default : /etc/aliases for Postfix,
    32    /etc/mail/aliases for Sendmail) and add one line per project/component you
    33    want to allow ticket submission from email to. For each alias, you can
    34    specify option --project. This option selects a configuration stanza in the
    35    config file and ''--component'' to specify a component other than the
     32The procedure is same :
     33 * Edit your alias definition file (default : /etc/mail/aliases for Sendmail) and add one line per project/component you
     34   want to allow ticket submission from email to. For each alias, you can   specify option --project. This option selects a configuration stanza in the [wiki:Email2tracConfiguration  config file] and ''--component'' to specify a component other than the
    3635   default component for the project. Line must have the following format :
    3736{{{
    38      tracproj: |/usr/bin/run_email2trac [--project=<name>] [--component=<component>]
     37     tracproj: "|/usr/bin/run_email2trac [--project=<name>] [--component=<component>]"
    3938}}}
    4039
    4140  * Update your alias database with command ''newaliases''
    42   * Test with a command like :
    43 {{{
    44      mail tracproj < msg.txt
    45 }}}   
    46   * 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:
    47 {{{
    48 email2trac --project=tracproj < msg.txt
    49 if this is okay then it is an email setup error
    50 }}}
    5141
    52 === Note for postfix ===
    53 
    54 {{{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}}}.
    55 
    56 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) 
    57 -- mpalmer@hezmatt.org.
    5842
    5943=== Note for Sendmail ===
     
    8670}}}
    8771
     72
     73hdhsadhasdjsdj
     74 * Test with a command like :
     75{{{
     76     mail tracproj < msg.txt
     77}}}   
     78  * 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:
     79{{{
     80email2trac --project=tracproj < msg.txt
     81if this is okay then it is an email setup error
     82}}}
     83
     84=== Note for Sendmail ===
     85This is a message from emailtotrac tickets archive:
     86{{{
     87Sendmail limits the executables that can be run via aliases to those in a
     88special directory, and runs them using a restricted shell called smrsh.
     89On RH, the default location for the allowed programs is /etc/smrsh.
     90
     91I tried both a link in that dir to the run_email2trac file and a little
     92shell script that simply calls run_email2trac and passes the params. Both
     93should work, but neither did yet. Majordomo works the same way, and it
     94set up on the machine already so I'll check on that later today.
     95
     96I found a pretty good walk-through of the problem/solution at
     97http://archives.free.net.ph/message/20030605.105120.74c3bfa8.html
     98
     99Well, I was in fact doing the right thing. Here's all the steps to follow
     100post make install
     101
     102ln -s /usr/local/bin/run_email2trac /etc/smrsh/run_email2trac
     103
     104in aliases use:
     105
     106"|run_email2trac -project=bas"
     107
     108Note: Include the quotes, they are necessary. That got me past the
     109sendmail problem. No ticket appeared in the project, but I'll look into
     110that next. Is there a log generated anywhere?
     111}}}
     112