On 02/04/2015 11:06 AM, Sri Ram Kannan wrote:
But I don't know hot to setup smtp server locally so that I can receive
and see the emails generated by Trac syystem ?
You would need to set up a mailserver in your system to send and receive
email. Whether that server merely forwards on to another server or is a
full-fledged mailserver and runs something like an IMAP daemon to allow
you to access it is likely mostly determined by your needs. Explanation
of this task is not really Trac related, and thus is out of scope for
this list, but I'll try to be helpful (see below).
I request someone to update me about this. I'm doing this setup in
ubuntu 14.0.4
I use exim in my setup, and my notes are here:
https://github.com/mattcaron/misc_notes/blob/master/install.linode.ubuntu.12.04
This is for 12.04. 14.04 should be similar.
Item 12 has exim (SMTP) notes. Item 11 has dovecot (IMAP) notes. Item 13
integrates the two. I stress that these are my internal notes, and not a
howto, they should be regarded as expert level documentation. However,
it may provide a starting point to give you searchable terms for
better-written tutorials. There are also reference links in my notes.
Once you have the mailserver set up, email2trac should be simple - you
simply add a router just after the "begin routers" section, which is
like this:
==
# This router only handles local trac@ addresses (for whatever domain).
# It requires the email2trac.py script to exist and passes mails off to
# that script via the trac_transport.
trac_router:
driver = accept
require_files = /usr/local/bin/email2trac.py
local_parts = trac
transport = trac_transport
==
and then, right after the "begin transports" line, you need to add this
transport:
==
# This transport is used for the Trac to e-mail gateway. The order in
# this section doesn't matter; a transport has to be explicitly referred
# to by a router in the routers section in order to be used.
#
# This works by piping e-mails to the email2trac.py script, run as the
# www-data user.
trac_transport:
driver = pipe
command = /usr/local/bin/email2trac.py
current_directory = /tmp
home_directory = /tmp
user = www-data
group = www-data
==
This will take an email of trac@<anything> and send it to email2trac.py.
--
Matthew Caron, Software Build Engineer
Red Lion Controls | www.redlion.net
+1 (518) 877-5173 x138 office
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.