Re: [Trac] How to test email notifications in local system ? Especially Mail2Trac and Email2Trac plugin ?

110 views
Skip to first unread message

Mike Dewhirst

unread,
Feb 4, 2015, 4:50:18 PM2/4/15
to trac-...@googlegroups.com
On 5/02/2015 3:09 AM, Sri Ram Kannan wrote:
> I do not know how to configure SMTP server to send emails from the trac
> (installed in my localhost) to receive emails ?
>

Here is an excerpt from one of my shell scripts used to prepare servers.
The link explains all. Thank you David Grant ...

#
http://www.davidgrant.ca/setting_up_postfix_to_send_outgoing_mail_on_ubuntu
###
#
#sudo apt-get install postfix
#
# always uncomment the following two lines as a pair
#sudo dpkg-reconfigure postfix
#sudo /etc/init.d/postfix reload
#
#sudo apt-get install mailutils
#sudo nano /etc/aliases
#
# add aliases for local users - root, postmaster and mike
#
#sudo newaliases
#
# echo testing |mail -s "sending internal" mike
# and ensure return-path in the email points to a valid address for bounces
#

This works.

Mike

Mike Dewhirst

unread,
Feb 4, 2015, 4:59:05 PM2/4/15
to trac-...@googlegroups.com
Sorry - I didn't see the other similar thread with answers already
supplied by Matthew.

Please disregard my response.

Mike

Sri Ram Kannan

unread,
Feb 4, 2015, 5:05:20 PM2/4/15
to trac-...@googlegroups.com
Thanks Mike.

While installing postfix, it prompts for domain name .. I dont have one.. Should I give localhost as my domain ?

I'm new to mail server concepts therefore, pls guide me on installing a mail server.

Regards,
Sri.

Dimitri Maziuk

unread,
Feb 4, 2015, 5:12:27 PM2/4/15
to trac-...@googlegroups.com
On 02/04/2015 04:05 PM, Sri Ram Kannan wrote:

> I'm new to mail server concepts therefore, pls guide me on installing a
> mail server.

If you want to receive mail from gmail, you need: a "name" that gmail
can send mail to.

- "name" is the domain or host name that is visible to google and can
accept incoming e-mail,

- "can accept" is
- e-mail is open to the Internet (your ISP is not blocking it) and
- there's e-mail server program waiting for it.

"E-mail server program" is e.g. postfix.

So before you get to installing it, do you have the first two prerequisites?

--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

signature.asc

Mike Dewhirst

unread,
Feb 4, 2015, 5:34:53 PM2/4/15
to trac-...@googlegroups.com
On 5/02/2015 9:05 AM, Sri Ram Kannan wrote:
> Thanks Mike.
>
> While installing postfix, it prompts for domain name .. I dont have
> one.. Should I give localhost as my domain ?

Maybe? If that doesn't succeed you can run dpkg-configure again and try
your machine's name or an invented name or an existing name.
> --
> 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+...@googlegroups.com
> <mailto:trac-users+...@googlegroups.com>.
> To post to this group, send email to trac-...@googlegroups.com
> <mailto:trac-...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/trac-users.
> For more options, visit https://groups.google.com/d/optout.

Sri Ram Kannan

unread,
Feb 4, 2015, 6:00:50 PM2/4/15
to trac-...@googlegroups.com
Thank you mike.

I have installed postfix which the following options:

General type of mail configuration: Local only
Postfix Configuration: user-VirtualBox (Machine name)
Root and Poostmaster mail recipient: root


Then the rest are default values.

Am I right ?

 I'm doing this is to test the email generated by trac when a new ticket is created.

Those generated emails must be viewed only from my local machine and If reply back to the sender of auto generated mail, then email2trac or mail2trac plugin must trigger up .
And it should find the reply content to post it as "comment" in the ticket page. I should do all the operations internally (in my local machine) without any connection to the outside world using internet.

Awaiting for your reply. Thanks a ton.

Regards,
Sri.

Mike Dewhirst

unread,
Feb 4, 2015, 7:06:22 PM2/4/15
to trac-...@googlegroups.com
On 5/02/2015 10:00 AM, Sri Ram Kannan wrote:
> Thank you mike.
>
> I have installed postfix which the following options:
>
> *General type of mail configuration: Local only
> Postfix Configuration: user-VirtualBox (Machine name)
> Root and Poostmaster mail recipient: root *
>
> Then the rest are default values.
>
> Am I right ?

Sri

You seem to be configuring a non-standard sort of setup and I can't
really help you. I suggest you document your steps and proceed by
testing different configurations. Trial and error you might say.

Good luck

Mike


>
> I'm doing this is to test the email generated by trac when a new
> ticket is created.
>
> Those generated emails must be viewed only from my local machine and If
> reply back to the sender of auto generated mail, then *email2trac or
> mail2trac plugin* must trigger up .
> And it should find the*reply content* to post it as "*comment*" in the
> > <mailto:trac-users+...@googlegroups.com>.
> > To post to this group, send email to trac-...@googlegroups.com
> > <mailto:trac-...@googlegroups.com>.
> > Visit this group at http://groups.google.com/group/trac-users
> <http://groups.google.com/group/trac-users>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> 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+...@googlegroups.com
> <mailto:trac-users+...@googlegroups.com>.

Sri Ram Kannan

unread,
Feb 5, 2015, 9:12:43 AM2/5/15
to trac-...@googlegroups.com
Thank you Mike. I will look into it.
>      > To post to this group, send email to trac-...@googlegroups.com
>      > <mailto:trac-...@googlegroups.com>.
>      > Visit this group at http://groups.google.com/group/trac-users
>     <http://groups.google.com/group/trac-users>.
>      > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
> --
> 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+...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages