Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#5235 closed defect (invalid)

Cannot sending trac ticket to external user

Reported by: niyi.ademosu@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: notification Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

Submitted is the error message I get when i copy an external email address. Internal email adressess work oK. Can you please help. See below

Best Regards

Python traceback

Traceback (most recent call last):
  File "C:\Python23\lib\site-packages\trac\ModPythonHandler.py", line 195, in handler
    core.dispatch_request(mpr.path_info, args, mpr, env)
  File "/usr/lib/python2.3/site-packages/trac/core.py", line 452, in dispatch_request
  File "c:\python23\lib\site-packages\trac\Module.py", line 44, in run
    self.render()
  File "C:\Python23\lib\site-packages\trac\Ticket.py", line 450, in render
    self.save_changes (id)
  File "C:\Python23\lib\site-packages\trac\Ticket.py", line 379, in save_changes
    tn.notify(ticket, newticket=0, modtime=now)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 228, in notify
    NotifyEmail.notify(self, ticket['id'], subject)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 131, in notify
    Notify.notify(self, resid)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 81, in notify
    self.send(to)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 346, in send
    NotifyEmail.send(self, rcpt, hdrs)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 160, in send
    self.server.sendmail(self.from_email, rcpt, msg.as_string())
  File "C:\Python23\Lib\smtplib.py", line 687, in sendmail
    raise SMTPRecipientsRefused(senderrs)
SMTPRecipientsRefused: {'mrniyi@gmail.com': (550, '5.7.1 Unable to relay for mrniyi@gmail.com')}

Attachments (1)

trac.txt (1.4 KB ) - added by niyi@… 18 years ago.

Download all attachments as: .zip

Change History (7)

by niyi@…, 18 years ago

Attachment: trac.txt added

comment:1 by anonymous, 18 years ago

Resolution: invalid
Status: newclosed

it says your mail server refuses to send mails from the mailadress you entered in trac.ini. maybe you choose one which is allowed to send emails to outside.

comment:2 by anonymous, 18 years ago

Resolution: invalid
Status: closedreopened

hi Thanks for the swift response. This is the only smtp server we have and works perfectly with exchange (but it has an internal IP address). Could this be the problem.

Best Regards Niyi

comment:3 by asmodai@…, 18 years ago

Trac is receiving a response from the SMTP server that says it will not relay. Basically your mailserver is refusing any email from your Trac install.

This problem has, in my opinion and experience, nothing to do with Trac but everything with your MTA (Mail Transfer Agent) and is, I think, outside the scope of the Trac project.

That it works with Exchange means, quite frankly, nothing. Could be that it only allows connections from that IP address.

comment:4 by Emmanuel Blot, 18 years ago

Description: modified (diff)

comment:5 by Emmanuel Blot, 18 years ago

Component: generalnotification
Resolution: invalid
Status: reopenedclosed

Yes, this is not related to Trac, but either to the way you have configured Trac or to the configuration of the server that denies mail relay for some reason.

If you need some help configuring Trac, please ask for support to the MailingList and do not forget to add the relevant conf. section ([notification] section from trac.ini) to your email.

This is an installation/environment issue, not a Trac bug.

comment:6 by ThurnerRupert, 18 years ago

the error message is quite clear: Unable to relay for mrniyi@…'.

niyi entered the gmail address as sender in the trac.ini. trac sends the email with "from: niyi@gmail" and the company mailserver refuses to send emails to the world with that sender address. this then would be open to send any email from anybody to anybody.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.