Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-27 Thread W. Martin Borgert
On 2013-06-26 16:20, ivanelson wrote:
 Your solution solved my problem. The plugin is installed, configured and 
 Ticket are created. 
...
 I just can not define default values for the Ticket.

I'm not sure how to do this. I assume, that the defaults for
tickets in my instance are defined correctly in trac, so that
there is no need to overwrite them in email2trac. (I configured
the system some years ago and forgot many details...)

 My /etc/aliaes 

 # Other aliases
  bananasoft: |/usr/bin/email2trac --project=bananasoft

Note, that in my setup, I'm not using the /etc/aliases file at
all. Not sure, whether you really need it. Probably not, if you
fetch the mail from IMAP and forward it directly to email2trac
via getmail. The /etc/aliases is useful, when you are not using
getmail, IIRC.

Cheers

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-27 Thread Mike Dewhirst

On 27/06/2013 5:43pm, W. Martin Borgert wrote:

On 2013-06-26 16:20, ivanelson wrote:

Your solution solved my problem. The plugin is installed, configured and
Ticket are created.

...

I just can not define default values for the Ticket.


I'm not sure how to do this. I assume, that the defaults for
tickets in my instance are defined correctly in trac, so that
there is no need to overwrite them in email2trac. (I configured
the system some years ago and forgot many details...)


My /etc/aliaes

# Other aliases

bananasoft: |/usr/bin/email2trac --project=bananasoft


Note, that in my setup, I'm not using the /etc/aliases file at
all. Not sure, whether you really need it. Probably not, if you
fetch the mail from IMAP and forward it directly to email2trac
via getmail. The /etc/aliases is useful, when you are not using
getmail, IIRC.


You also need to ensure that any bounces go to an email address which is 
monitored. /etc/aliases are useful for that as well.





Cheers



--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-27 Thread Lukasz Szybalski


On Wednesday, June 26, 2013 6:20:32 PM UTC-5, ivanelson wrote:

 Martin,

 Your solution solved my problem. The plugin is installed, configured and 
 Ticket are created. 

 I just can not define default values for the Ticket.

 [DEFAULT]
 project: /var/trac/projects/bananasoft
 ticket_permission_system: update_restricted_to_participants
 debug: 1
 black_list: MAILER-DAEMON@
 drop_spam : 1
 drop_alternative_html_version: 1
 email_quote: 
 html2text_cmd:
 ignore_trac_user_settings: 0
 inline_properties: 1
 inline_properties_first_wins: 1
 reply_all : 0
 spam_level: 5
 strip_quotes: 0
 strip_signature: 0
 ticket_update: 1
 ticket_update_by_subject: 1
 ticket_update_by_subject_lookback: 30
 umask: 022
 verbatim_format: 1
 log_type: file
 log_file: /tmp/email2trac.log

  

 [bananasoft]
 default_component : TRAC
 default_keywords  : ServiceDesk
 default_priority  : Alta
 default_severity  : Normal
 default_type  : Triagem



Above here bananasoft you are using prefix = default did you specify 
the prefix in the command that send the email 



 My /etc/aliaes 

 # Other aliases
 bananasoft: |/usr/bin/email2trac --project=bananasoft 
 



I would change this to:
bananasoft: |/usr/bin/email2trac --project=bananasoft--ticket_prefix=banana 

 

[bananasoft]
 banana_component : TRAC
 banana_keywords  : ServiceDesk
 banana_priority  : Alta
 banana_severity  : Normal
 banana_type  : Triagem


-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-26 Thread W. Martin Borgert

Quoting Ivanelson Nunes ivanelsonnu...@gmail.com:

I did the installation and configuration by following this [1]site.

My problem is that I do not understand where I set up a mail account that
will receive the messages. And say where these messages should be a Ticket?

Now do not get it where I can configure the e-mail that will receive the
messages and then create the new ticket.

My OS is Ubuntu 12.10 and Trac 1.0. I've tried to configure Postfix and
Fetchmail.

Still do not understand how to configure the MTA :(


The important points are:

1. You need an IMAP(S) server (or POP).
   I can't help you with this issue, sorry.

2. You need to fetch the mail from IMAP(S)/POP and forward it to
   email2trac. I do this using a cron job (every two minutes) using
   getmail4.

   A. For security reasons, I have a user myticketuser (disabled
  password, no login possible), whos cron entry is:

*/2 * * * * /usr/bin/getmail  /dev/null

   B. This user has the following ~/.getmail/getmailrc:

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.myimapserver.com
username = myticketmail
password = WHATEVER
mailboxes = (INBOX,)
move_on_delete = Trash

[destination]
type = MDA_external
path = /usr/bin/sudo
arguments = (-u, www-data, /usr/bin/email2trac)

[options]
delete = True
verbose = 2

   www-data is the user name of the Trac process.

This way, all mail to myticketm...@whateveryouhave.com create
Trac tickets.

HTH.

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-26 Thread Ivanelson Nunes
Martin,

I have an enterprise server email.

The cron job. You configured for the Apache user (www-data) or to the user
myticketuser?

Thank you.

2013/6/26 W. Martin Borgert deba...@debian.org

 Quoting Ivanelson Nunes ivanelsonnu...@gmail.com:

 I did the installation and configuration by following this [1]site.

 My problem is that I do not understand where I set up a mail account that
 will receive the messages. And say where these messages should be a
 Ticket?

 Now do not get it where I can configure the e-mail that will receive the
 messages and then create the new ticket.

 My OS is Ubuntu 12.10 and Trac 1.0. I've tried to configure Postfix and
 Fetchmail.

 Still do not understand how to configure the MTA :(


 The important points are:

 1. You need an IMAP(S) server (or POP).
I can't help you with this issue, sorry.

 2. You need to fetch the mail from IMAP(S)/POP and forward it to
email2trac. I do this using a cron job (every two minutes) using
getmail4.

A. For security reasons, I have a user myticketuser (disabled
   password, no login possible), whos cron entry is:

 */2 * * * * /usr/bin/getmail  /dev/null

B. This user has the following ~/.getmail/getmailrc:

 [retriever]
 type = SimpleIMAPSSLRetriever
 server = imap.myimapserver.com
 username = myticketmail
 password = WHATEVER
 mailboxes = (INBOX,)
 move_on_delete = Trash

 [destination]
 type = MDA_external
 path = /usr/bin/sudo
 arguments = (-u, www-data, /usr/bin/email2trac)

 [options]
 delete = True
 verbose = 2

www-data is the user name of the Trac process.

 This way, all mail to 
 myticketmail@whateveryouhave.**commyticketm...@whateveryouhave.com
 create
 Trac tickets.

 HTH.



-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-26 Thread W. Martin Borgert

Quoting Ivanelson Nunes ivanelsonnu...@gmail.com:

The cron job. You configured for the Apache user (www-data) or to the user
myticketuser?


In my case, the cron job is for user myticketuser. Note, that sudo is
used, so the entry in the /etc/sudoers is:

myticketuser ALL=(www-data) NOPASSWD: /usr/bin/email2trac, /bin/cat

I.e. the myticketuser is allowed to run email2trac and cat as the
www-data user. Otherwise it wouldn't work. (I don't remember why
cat is important, maybe you can try without it.)

Cheers


--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-26 Thread ivanelson
Martin

The getmail4 installed. 

At the prompt is already running. 

I tried using SimplePOP3SSLRetriever, but the script /usr/bin/getmail 
was breaking. Okay, IMAP is working.

I will complete the setup and notice the result.

[]s

Em quarta-feira, 26 de junho de 2013 14h26min22s UTC-3, W. Martin Borgert 
escreveu:

 Quoting Ivanelson Nunes ivanels...@gmail.com javascript:: 
  The cron job. You configured for the Apache user (www-data) or to the 
 user 
  myticketuser? 

 In my case, the cron job is for user myticketuser. Note, that sudo is 
 used, so the entry in the /etc/sudoers is: 

 myticketuser ALL=(www-data) NOPASSWD: /usr/bin/email2trac, /bin/cat 

 I.e. the myticketuser is allowed to run email2trac and cat as the 
 www-data user. Otherwise it wouldn't work. (I don't remember why 
 cat is important, maybe you can try without it.) 

 Cheers 




-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-26 Thread ivanelson
Martin,

Your solution solved my problem. The plugin is installed, configured and 
Ticket are created. 

I just can not define default values for the Ticket.

[DEFAULT]
 project: /var/trac/projects/bananasoft
 ticket_permission_system: update_restricted_to_participants
 debug: 1
 black_list: MAILER-DAEMON@
 drop_spam : 1
 drop_alternative_html_version: 1
 email_quote: 
 html2text_cmd:
 ignore_trac_user_settings: 0
 inline_properties: 1
 inline_properties_first_wins: 1
 reply_all : 0
 spam_level: 5
 strip_quotes: 0
 strip_signature: 0
 ticket_update: 1
 ticket_update_by_subject: 1
 ticket_update_by_subject_lookback: 30
 umask: 022
 verbatim_format: 1
 log_type: file
 log_file: /tmp/email2trac.log

 

 [bananasoft]
 default_component : TRAC
 default_keywords  : ServiceDesk
 default_priority  : Alta
 default_severity  : Normal
 default_type  : Triagem



My /etc/aliaes 

# Other aliases
 bananasoft: |/usr/bin/email2trac --project=bananasoft


See I'm using email2trac instead of run_email2trac

Thanks.
 

Em quarta-feira, 26 de junho de 2013 07h11min03s UTC-3, W. Martin Borgert 
escreveu:

 Quoting Ivanelson Nunes ivanels...@gmail.com javascript:: 
  I did the installation and configuration by following this [1]site. 
  
  My problem is that I do not understand where I set up a mail account 
 that 
  will receive the messages. And say where these messages should be a 
 Ticket? 
  
  Now do not get it where I can configure the e-mail that will receive the 
  messages and then create the new ticket. 
  
  My OS is Ubuntu 12.10 and Trac 1.0. I've tried to configure Postfix and 
  Fetchmail. 
  
  Still do not understand how to configure the MTA :( 

 The important points are: 

 1. You need an IMAP(S) server (or POP). 
 I can't help you with this issue, sorry. 

 2. You need to fetch the mail from IMAP(S)/POP and forward it to 
 email2trac. I do this using a cron job (every two minutes) using 
 getmail4. 

 A. For security reasons, I have a user myticketuser (disabled 
password, no login possible), whos cron entry is: 

 */2 * * * * /usr/bin/getmail  /dev/null 

 B. This user has the following ~/.getmail/getmailrc: 

 [retriever] 
 type = SimpleIMAPSSLRetriever 
 server = imap.myimapserver.com 
 username = myticketmail 
 password = WHATEVER 
 mailboxes = (INBOX,) 
 move_on_delete = Trash 

 [destination] 
 type = MDA_external 
 path = /usr/bin/sudo 
 arguments = (-u, www-data, /usr/bin/email2trac) 

 [options] 
 delete = True 
 verbose = 2 

 www-data is the user name of the Trac process. 

 This way, all mail to mytick...@whateveryouhave.com javascript: 
 create 
 Trac tickets. 

 HTH. 



-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




[Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-25 Thread Ivanelson Nunes
I did the installation and configuration by following this [1]site.

My problem is that I do not understand where I set up a mail account that
will receive the messages. And say where these messages should be a Ticket?

Now do not get it where I can configure the e-mail that will receive the
messages and then create the new ticket.

My OS is Ubuntu 12.10 and Trac 1.0. I've tried to configure Postfix and
Fetchmail.

Still do not understand how to configure the MTA :(

[1] https://subtrac.sara.nl/oss/email2trac

Reference:
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracInstallation
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracMta


@ivanelson
[]s

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)

2013-06-25 Thread Mike Dewhirst

On 26/06/2013 8:18am, Ivanelson Nunes wrote:

I did the installation and configuration by following this [1]site.


Try this:

http://www.davidgrant.ca/setting_up_postfix_to_send_outgoing_mail_on_ubuntu

It worked for me :)

Mike




My problem is that I do not understand where I set up a mail account
that will receive the messages. And say where these messages should be a
Ticket?

Now do not get it where I can configure the e-mail that will receive the
messages and then create the new ticket.

My OS is Ubuntu 12.10 and Trac 1.0. I've tried to configure Postfix and
Fetchmail.

Still do not understand how to configure the MTA :(

[1] https://subtrac.sara.nl/oss/email2trac

Reference:
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracInstallation
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracMta


@ivanelson
[]s

--
You received this message because you are subscribed to the Google
Groups Trac Users group.
To unsubscribe from this group and stop receiving emails from it, send
an email to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.