Are ou using SELinux? This could prevent applications from connecting via 
network and such things. 

Take a look at your /var/log/messages if you see something like 
...kernel: audit(1232092552.772:4071): avc:  denied...

Peter

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im 
Auftrag von Bin
Gesendet: Freitag, 16. Januar 2009 09:19
An: Trac Users
Betreff: [Trac] Re: How can I set the Trac to send email from localhost


Now I set smtp_enabled = true, then get the following error:

2009-01-16 16:16:43,967 Trac[web_ui] ERROR: Failure sending notification on 
change to ticket #4: (111, 'Connection refused') Traceback (most recent call 
last):
  File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 563, in 
_do_save
    tn.notify(ticket, newticket=False, modtime=now)
  File "/usr/lib/python2.4/site-packages/trac/ticket/notification.py",
line 129, in notify
    NotifyEmail.notify(self, ticket.id, subject)
  File "/usr/lib/python2.4/site-packages/trac/notification.py", line 216, in 
notify
    Notify.notify(self, resid)
  File "/usr/lib/python2.4/site-packages/trac/notification.py", line 114, in 
notify
    self.begin_send()
  File "/usr/lib/python2.4/site-packages/trac/notification.py", line 278, in 
begin_send
    self.server = smtplib.SMTP(self.smtp_server, self.smtp_port)
  File "/usr/lib/python2.4/smtplib.py", line 244, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.4/smtplib.py", line 306, in connect
    raise socket.error, msg
error: (111, 'Connection refused')


error: (111, 'Connection refused'), anyone know this error?






On Jan 16, 10:51 am, Bin <[email protected]> wrote:
> I can send email from this box using "mail" command from the command 
> line,and the outgoing name will be r...@domainname, but not from Trac.
>
> I am using RHEL 5, some other information needed?
>
> On Jan 15, 5:08 pm, Emmanuel Blot <[email protected]> wrote:
>
> > > But it doesn't work, and no error log of trac.
>
> > > Any one can help with this?
>
> > Do you have a SMTP server up and running on localhost?
> > Are you able to post a message with the "mail" command to the same address?
> > Please also describe your environment: OS, ...
>
> > Cheers,
> > Manu


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to