Bugzilla has an Inbound Email Interface but setting up is not documented, at least I couldn’t find it.
Here is how I did it
- Make sure all of the optional E-mail/MIME perl modules are installed as listed by checksetup.pl
- install procmail and MTA of your choice I used postfix
apt-get install procmail
- Create a user and added to apache group
useradd -m -G www-data bug-mail
- Create /home/bug-mail/.procmail as follows
$cat /home/bug-mail/.procmail LOGFILE=/home/bug-mail/procmail.log :0: * ^To:.*bug-mail@yourdomain.com |/path/to/bugzilla/email_in.pl -vvv
or specify some defaults in the config
$cat /home/bug-mail/.procmail LOGFILE=/home/bug-mail/procmail.log :0: * ^To:.*bug-mail@yourdomain.com |/path/to/bugzilla/email_in.pl -vvv --default product=TestProduct --override version=2.5
How it works
I am not an expert but this is my understanding of how this works.
- Procmail will invoke the .procmail file everytime an email is received for the user.
- “:0:” means the first rule in the file and use a local lock file
- “* ^To:.*bug-mail@yourdomain.com” this condition means match emails with the bug-mail@yourdomain.com in the To section
- “|/path/to/bugzilla/email_in.pl” invoke the email_in.pl and pass the email content to it
- email_in.pl will process the email content received
That’s it, happy bug creations!!!
7 December 2013 at 13:18
Hi rojanu,
Your blog is good. But since i am very new to bugzilla. I could not be able to understand. If you give more details on this it would be appreciated. How do you read an email and create a bug ?
7 December 2013 at 14:03
I have updated the blog to try explain how it works. if that’s not what you meant, you’ll have to ask a more specific question
25 August 2014 at 14:42
Hi, any suggestions on how to set this up on windows?
27 August 2014 at 08:03
Please check
https://wiki.mozilla.org/Bugzilla:Win32Install
https://wiki.mozilla.org/Bugzilla:Win32InstallPackages
27 August 2014 at 13:18
No, I meant how to setup email_in.pl script on a windows machine. There is no procmail for windows. I am trying to figure out alternative clients/methods that could be used to enable this feature.