Thanks for all the responses, for some reason the Logging functions were
not working appropriately even at chmod 777. After a reboot this morning
it is now logging correctly, although email doesn't work. I see the
following error messages. Any help would be appreciated
10:56:48 Trac[report] DEBUG: Executing report with SQL "SELECT id AS
report, title FROM report ORDER BY report" ([])
10:56:54 Trac[web_ui] ERROR: Failure sending notification on creation of
ticket #39: (13, 'Permission denied')
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line
144, in _do_create
tn.notify(ticket, newticket=True)
File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 211, in
notify
NotifyEmail.notify(self, ticket.id, subject)
File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 108, in
notify
Notify.notify(self, resid)
File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 45, in
notify
self.begin_send()
File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 116, in
begin_send
self.server = smtplib.SMTP(self.smtp_server, self.smtp_port)
File "/usr/lib/python2.4/smtplib.py", line 241, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.4/smtplib.py", line 303, in connect
raise socket.error, msg
error: (13, 'Permission denied')
So my guess is that it needs a valid user, so I created a "tracmailer"
and used that as a user/pass but still gives me same error. Any ideas?
Thanks
James
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jacob Singh
Sent: Thursday, April 06, 2006 2:00 AM
To: [email protected]
Subject: Re: [Trac] Email Notification for new tickets is not working
I got mine working...
Maybe try not authenticating your SMTP? Qmail is broken by default if
you auth from localhost I believe.
Also, make sure the log is set to debug, you will either see a one
liner:
Trac[Notify] DEBUG: Sending SMTP notification to localhost on port 25
Or a bunch of python errors if anything else goes wrong.
The log dir in your trac env should be set to 777 just to make sure you
are getting the messages. Logging is set-up in conf/trac.ini
Hope that helps,
Jacob
James Molina wrote:
>
> Hello everyone,
>
> I'm pretty new with this Trac stuff, but here it goes.
>
> I set up a new server that will have SVN + Trac instead of my old one
> that had CVS + Bugzilla. Anyways the issue I am having with is that
> when I submit a new ticket it is not sending out an email, I have
> verified that I can connect to Sendmail and send out an email by
> manually going through Telnet and it works perfectly.
>
> [EMAIL PROTECTED] html]# telnet 127.0.0.1 25
>
> Trying 127.0.0.1...
>
> Connected to localhost.localdomain (127.0.0.1).
>
> Escape character is '^]'.
>
> 220 svn ESMTP Sendmail 8.13.4/8.13.4; Wed, 5 Apr 2006 13:45:32 -0700
>
> But when I try to submit a ticket in Trac there is no email response
> even if I am on the smtp_alaway_cc in the Trac.ini.
>
> Here is a portion of my Trac.ini
>
> [notification]
>
> smtp_enabled = true
>
> smtp_replyto = [EMAIL PROTECTED]
>
> smtp_always_cc = MyEmailAddrHere
>
> smtp_server = 127.0.0.1
>
> smtp_from = [EMAIL PROTECTED]
>
> always_notify_reporter = true
>
> The Trac folder is owned by the user Apache:Apache and since I cant
> 'su' to that user I cannot verify I can Telnet into port 25 but I do
> not think this is an issue. Also I have tried pointing to my Exchange
> Server which I know works since I get email notifications for other
> applications around the office, yet I do not receive any email either.
> Also my email address is listed under the "settings" link when you are
> logged into Trac. I am using Trac 0.9.4. If anyone knows why I am not
> receiving emails it would be appreciated, thanks.
>
> James
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Trac mailing list
> [email protected]
> http://lists.edgewall.com/mailman/listinfo/trac
>
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac