Modify

Opened 8 years ago

Closed 7 years ago

#335 closed setup (wontfix)

Couple config questions for email2trac

Reported by: adrya.stembridge@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 2.7.0
Keywords: Cc:

Description

Hi,

I have postfix and dovetail installed and working.  I can send a message
from a remote system to the mail server, and I receive the message as
expected.   My trac installation is at /www/virtualhosts/trac.

I installed email2trac using the Install guide (made an RPM and used yum
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracInstallation).  No
errors on install - everything looks clean.   My config file is included at
the bottom of this message.


*First question.*

The example *project* option in email2trac.conf shows "/data/trac/jouvin".
  If I put "/www/virtualhosts/trac" I get an error when testing email2trac:

[tmp]# email2trac --project trac < msg.txt
Not a valid project name: trac, valid names are: []
or set parentdir in the [DEFAULT] section


What should I have for *project*?


*Second question.*
I'm a little unclear on setting up Postfix to work with email2trac.

In the mail server documentation there is this hint under Postfix:  "Please
note that postfix seemingly runs commands from the alias definition file as
user "nobody", even if the rest of it is running as user "postfix".  *So
please assure that the MTA_USER is set to nobody, not to postfix!*"

In the Install documentation, I see this:
"*Pay attention to the MTA_USER and TRAC_USER, they are not something you
can ignore! The default are for MTA (postfix) and TRAC_USER (apache2)*"

And that's how I set up configure.in prior to building/installing.

*What should MTA_USER be, if not postfix *(my mail server)*? *



*Third question*
Do you have a working postfix/email2trac install, and if so could you copy
one of your trac alias lines?  I'm not sure what user should go here.

tracproj: "|/usr/bin/email2trac <see command line options>







/etc/email2trac.conf


[DEFAULT]
project: /www/virtualhosts/trac
debug: 0
black_list: MAILER-DAEMON@
drop_spam : 1
drop_alternative_html_version: 1
email_quote: >
html2text_cmd:
ignore_trac_user_settings: 0
inline_properties: 1
reply_all : 0
spam_level: 5
strip_quotes: 0
strip_signature: 0
ticket_update: 1
ticket_update_by_subject: 1
umask: 022
verbatim_format: 1
reply_all: 1

Attachments (0)

Change History (2)

comment:1 in reply to: ↑ description Changed 8 years ago by bas

Replying to adrya.stembridge@…:

Hi,

I have postfix and dovetail installed and working.  I can send a message
from a remote system to the mail server, and I receive the message as
expected.   My trac installation is at /www/virtualhosts/trac.

I installed email2trac using the Install guide (made an RPM and used yum
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracInstallation).  No
errors on install - everything looks clean.   My config file is included at
the bottom of this message.


*First question.*

The example *project* option in email2trac.conf shows "/data/trac/jouvin".
  If I put "/www/virtualhosts/trac" I get an error when testing email2trac:

[tmp]# email2trac --project trac < msg.txt
Not a valid project name: trac, valid names are: []
or set parentdir in the [DEFAULT] section


What should I have for *project*?


If this is the only entry, nothing. Now email2trac is looking for a project definition:

  • [trac]

email2trac support multiple trac installations.

*Second question.* I'm a little unclear on setting up Postfix to work with email2trac.

In the mail server documentation there is this hint under Postfix: "Please note that postfix seemingly runs commands from the alias definition file as user "nobody", even if the rest of it is running as user "postfix". *So please assure that the MTA_USER is set to nobody, not to postfix!*"

In the Install documentation, I see this: "*Pay attention to the MTA_USER and TRAC_USER, they are not something you can ignore! The default are for MTA (postfix) and TRAC_USER (apache2)*"

And that's how I set up configure.in prior to building/installing.

*What should MTA_USER be, if not postfix *(my mail server)*? *

The default are:

  • trac = www-data
  • mta = nobody

It depends on your installation if it uses this values. With the new version 2.8.0 the errors will be reported to syslog.

*Third question* Do you have a working postfix/email2trac install, and if so could you copy one of your trac alias lines? I'm not sure what user should go here.

tracproj: "|/usr/bin/email2trac <see command line options>

I multiple working lines. Here is an example for email2trac:

  • email2trac: |"/usr/bin/run_email2trac --project email2trac"

/etc/email2trac.conf

[DEFAULT] project: /www/virtualhosts/trac debug: 0 black_list: MAILER-DAEMON@ drop_spam : 1 drop_alternative_html_version: 1 email_quote: > html2text_cmd: ignore_trac_user_settings: 0 inline_properties: 1 reply_all : 0 spam_level: 5 strip_quotes: 0 strip_signature: 0 ticket_update: 1 ticket_update_by_subject: 1 umask: 022 verbatim_format: 1 reply_all: 1 }}}

You can add another section:

[trac]
project: /www/virtualhosts/trac

Then the --project trac works as expected

comment:2 Changed 7 years ago by bas

  • Resolution set to wontfix
  • Status changed from new to closed
  • Type changed from defect to setup

no feedback so closing

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.