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 |
| 32 | The 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 |
| 72 | |
| 73 | hdhsadhasdjsdj |
| 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 | {{{ |
| 80 | email2trac --project=tracproj < msg.txt |
| 81 | if this is okay then it is an email setup error |
| 82 | }}} |
| 83 | |
| 84 | === Note for Sendmail === |
| 85 | This is a message from emailtotrac tickets archive: |
| 86 | {{{ |
| 87 | Sendmail limits the executables that can be run via aliases to those in a |
| 88 | special directory, and runs them using a restricted shell called smrsh. |
| 89 | On RH, the default location for the allowed programs is /etc/smrsh. |
| 90 | |
| 91 | I tried both a link in that dir to the run_email2trac file and a little |
| 92 | shell script that simply calls run_email2trac and passes the params. Both |
| 93 | should work, but neither did yet. Majordomo works the same way, and it |
| 94 | set up on the machine already so I'll check on that later today. |
| 95 | |
| 96 | I found a pretty good walk-through of the problem/solution at |
| 97 | http://archives.free.net.ph/message/20030605.105120.74c3bfa8.html |
| 98 | |
| 99 | Well, I was in fact doing the right thing. Here's all the steps to follow |
| 100 | post make install |
| 101 | |
| 102 | ln -s /usr/local/bin/run_email2trac /etc/smrsh/run_email2trac |
| 103 | |
| 104 | in aliases use: |
| 105 | |
| 106 | "|run_email2trac -project=bas" |
| 107 | |
| 108 | Note: Include the quotes, they are necessary. That got me past the |
| 109 | sendmail problem. No ticket appeared in the project, but I'll look into |
| 110 | that next. Is there a log generated anywhere? |
| 111 | }}} |
| 112 | |