Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I setup Bugzilla to file/modify bugs by email

2,416 views
Skip to first unread message

Marina Donato

unread,
Feb 18, 2010, 9:25:59 AM2/18/10
to support-...@lists.mozilla.org

Hi.

We run Bugzilla 3.4.4 and would like to try out this feature.

I would much appreciate any help on how to do this?

And any experience with this, bad or good.

Thanks!

Best regards,

Marina

_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

Eric Black

unread,
Feb 18, 2010, 10:11:04 AM2/18/10
to support-...@lists.mozilla.org

> From: Marina Donato [marinad...@hotmail.com]
> Sent: Thursday, February 18, 2010 9:25 AM
> To: support-...@lists.mozilla.org
> Subject: How can I setup Bugzilla to file/modify bugs by email

>
> Hi.
>
>
>
> We run Bugzilla 3.4.4 and would like to try out this feature.
>
> I would much appreciate any help on how to do this?
>
> And any experience with this, bad or good.


email_in.pl is the file that does the actual input, so if you run 'perldoc -F email_in.pl', you'll get most of the information you need. The script is easy to modify if you're familiar with perl. The hardest part of the set up is getting email to your system. I looked on the wiki for some instructions, but it looks a little thin: https://wiki.mozilla.org/Bugzilla:PostfixMTA. These are the steps I followed on linux:

Create a user and home directory for the mail
# useradd -d /var/www/bugmail -m -g apache -p bG8$sdyF -s /bin/bash bugzilla-daemon
# mkdir /var/www/bugmail/Mail
# chown -R bugzilla-daemon:apache /var/www/bugmail/Mail

Create the .procmailrc file in /var/www/bugmail/ and modify it for the new $BUGZILLA_HOME and email_in.pl script:
$ more .procmailrc
#:0 fhw
#| formail -I "From " -a "From "

BUGZILLA_HOME=/var/www/localhost/htdocs/bugzilla

:0
#* ^Subject: .*\[Bug .*\]
#* ^Subject: .*\[[Bb]ug .*\]
RESULT=|(cd $BUGZILLA_HOME && ./email_in.pl -vvv > $HOME/bug_email.out 2>&1)


# Feed mail to stdin of bug_email.pl
#:0 Ec
#* !^Subject: .*[Bug .*]
#RESULT=|(cd $BUGZILLA_HOME && ./bug_email.pl > /tmp/bug_email 2>&1)

# write result to a logfile
:0 c
|echo `date '+%d.%m.%y %H:%M: '` $RESULT >> $HOME/bug_email.log


:0 c
|echo "----------------------------------" >> $HOME/bug_email.log

:0 c
$HOME/bug_email.log

# Move mail to the inbox
:0
$HOME/Mail/INBOX


Install procmail (gentoo example), and configure it:
# emerge procmail
# vi /etc/postfix/main.cf, add mydestination=<hostname>.<domain>, and enable procmail command (with EXTENSION)
# vi /etc/postfix/master.cf
# vi /etc/mail/aliases and added my email for root: (middle of file)
# newaliases
# /etc/init.d/postfix restart

I hope this helps, but it isn't meant to be the steps you'd need to complete on your own system, only an example. If you're not familiar with setting up mail on a server, it's better to grab someone around you that is. I'd be surprised if you find someone who knows something like procmail (that's why I included the example script). The older versions of Bugzilla had two scripts for incoming email, one for adding comments to existing bugs and one for adding new bugs. Those older versions (I think 2.18.3 was one of them) had more information about the setup and the example procmail script, so if you're having trouble, download the old tarball and check it out.

Max Kanat-Alexander

unread,
Mar 17, 2010, 5:31:33 AM3/17/10
to support-...@lists.mozilla.org
On 02/18/2010 07:11 AM, Eric Black wrote:
> These are the steps I followed on linux:
> [snip]

Wow, would you put those on the Wiki somewhere? It would be great to
have that documented.

-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.

Vipin

unread,
Mar 24, 2021, 2:54:55 AM3/24/21
to
Team,

is there any wiki link or any step by step documentation available for this please ?

Thorsten Schöning

unread,
Mar 24, 2021, 8:18:29 AM3/24/21
to support-...@lists.mozilla.org
Guten Tag Vipin,
am Mittwoch, 24. März 2021 um 07:54 schrieben Sie:

> is there any wiki link or any step by step documentation available for this please ?

None I'm aware of, because things heavily depend on the setup one
actually uses. If you already found some old mail to answer on, use
that as a template and asks about things you are unsure about.

https://www.bugzilla.org/docs/4.4/en/html/api/email_in.html

Mit freundlichen Grüßen

Thorsten Schöning

--
AM-SoFT IT-Service - Bitstore Hameln GmbH i.G.
Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK

E-Mail: Thorsten....@AM-SoFT.de
Web: http://www.AM-SoFT.de/

Tel: 05151- 9468- 0
Tel: 05151- 9468-55
Fax: 05151- 9468-88
Mobil: 0178-8 9468-04

AM-SoFT IT-Service - Bitstore Hameln GmbH i.G., Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB neu - Geschäftsführer: Janine Galonska


Für Rückfragen stehe ich Ihnen sehr gerne zur Verfügung.

Mit freundlichen Grüßen

Thorsten Schöning


Tel: 05151 9468 0
Fax: 05151 9468 88
Mobil:
Webseite: https://www.am-soft.de

AM-Soft IT-Service - Bitstore Hameln GmbH i.G. ist ein Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK

AM-Soft IT-Service - Bitstore Hameln GmbH i.G.
Brandenburger Str. 7c
31789 Hameln
Tel: 05151 9468 0

Bitstore IT-Consulting GmbH
Zentrale - Berlin Lichtenberg
Frankfurter Allee 285
10317 Berlin
Tel: 030 453 087 80

CBS IT-Service - Bitstore Kaulsdorf UG
Tel: 030 453 087 880 1

Büro Dallgow-Döberitz
Tel: 03322 507 020

Büro Kloster Lehnin
Tel: 033207 566 530

PCE IT-Service - Bitstore Darmstadt UG
Darmstadt
Tel: 06151 392 973 0

Büro Neuruppin
Tel: 033932 606 090

ACI EDV Systemhaus Dresden GmbH
Dresden
Tel: 0351 254 410

Das Systemhaus - Bitstore Magdeburg GmbH
Magdeburg
Tel: 0391 636 651 0

Allerdata.IT - Bitstore Wittenberg GmbH
Wittenberg
Tel: 03491 876 735 7

Büro Liebenwalde
Tel: 033054 810 00

HSA - das Büro - Bitstore Altenburg UG
Altenburg
Tel: 0344 784 390 97

Bitstore IT – Consulting GmbH
NL Piesteritz
Piesteritz
Tel: 03491 644 868 6

Solltec IT-Services - Bitstore Braunschweig UG
Braunschweig
Tel: 0531 206 068 0

MF Computer Service - Bitstore Gütersloh GmbH
Gütersloh
Tel: 05245 920 809 3

Firmensitz: AM-Soft IT-Service - Bitstore Hameln GmbH i.G. , Brandenburger Str. 7c , 31789 Hameln
Geschäftsführer Janine Galonska






0 new messages