Modify

Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#447 closed setup (fixed)

Installation / Setup issue with Ubuntu 20.04 / Trac 1.2.5 / Fetchmail

Reported by: anonymous Owned by: bas
Priority: blocker Milestone:
Component: run_emailtrac Version: 2.11.0
Keywords: Cc:

Description

Hello,

I have problems installing email2trac with fetchmail and I hope you can help me. We are running a Trac 1.2.5 environment on Apache on an Ubuntu 20.04 machine and I would like to use email2trac on it.

So first, I downloaded the latest version of email2trac from here, extracted it and installed/compiled with the following command:

./configure --with-mta_user=fetchmail --with-trac_user=www-data --prefix=/usr --sysconfdir=/etc
make
make install

So I have both "email2trac" and "run_email2trac" in /usr/bin

My /etc/email2trac.conf looks like this:

[DEFAULT]
project: /var/lib/trac/testproject
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


[bas]
project: /var/lib/trac/testproject
spam_level: 1

Afterwards, I installed fetchmail to grab the emails from our server and "move" them to Trac. I did "chmod 600 /etc/fetchmailrc" and "chown fetchmail /etc/fetchmailrc"

My /etc/fetchmailrc looks like this:

set daemon      30
poll  imap.ionos.de  with proto IMAP
user 'address@domain.org' there with password 'password' is 'www-data' here ssl
mda "/usr/bin/run_email2trac"

In Syslog, I can see the following log - sorry it's in German, but it's basically saying:

  • It found 5 messages (4 of them already seen)
  • run_email2trac[6279]: initgroups failed
  • Error while writing the message text
  • MDA error when fetching date from address@…@imap.ionos.de
  • Query status=6 (IOERR)
Feb 15 14:27:54 andreas-VirtualBox fetchmail[6180]: 5 Nachrichten (4 gesehene) für address@domain.org bei imap.ionos.de.
Feb 15 14:27:54 andreas-VirtualBox run_email2trac[6279]: initgroups failed
Feb 15 14:27:54 andreas-VirtualBox fetchmail[6180]: Nachricht address@domain.org@imap.ionos.de:5 von 5 wird gelesen (9570 Bytes im Nachrichtenkopf) (10140 Bytes im Nachrichtenkörper) (Log-Meldung unvollständig)
Feb 15 14:27:54 andreas-VirtualBox fetchmail[6180]: Fehler beim Schreiben des Nachrichtentextes
Feb 15 14:27:54 andreas-VirtualBox fetchmail[6180]: MDA-Fehler beim Abholen von address@domain.org@imap.ionos.de
Feb 15 14:27:54 andreas-VirtualBox fetchmail[6180]: Abfragestatus=6 (IOERR)

Did I miss something during installation / configuration progress? Does anyone have an idea of what could be wrong? I'm thankful for every hint!

Thank you!

Best regards, Andreas

Attachments (0)

Change History (3)

comment:1 Changed 4 months ago by bas

  • Status changed from new to assigned
  • Type changed from defect to setup
  • Version changed from 2.8.4 to 2.11.0

Ok I have to read you have followed the fetchmail doc? At our organization we use the postfix setup, So i am not that familiar with this setup.

But what I always asks did you test the setup with the test email:

  • email2trac --project <name> < msg.txt

If this works then is run_email2trac setuid bit set? (chown root run_email2trac; chmod 4755 run_email2trac)

An you are sure that everything runs under the user www-data?

  • ps -eaf | grep apache
Last edited 4 months ago by bas (previous) (diff)

comment:2 follow-up: Changed 4 months ago by anonymous

  • Resolution set to fixed
  • Status changed from assigned to closed

Thanks a lot, chown root run_email2trac and chmod 4755 run_email2trac was the solution!

comment:3 in reply to: ↑ 2 Changed 4 months ago by bas

Replying to anonymous:

Thanks a lot, chown root run_email2trac and chmod 4755 run_email2trac was the solution!

That is good to hear. The error message can be improved. You can also create a merge request ;-)

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.