Modify

Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#11428 closed defect (duplicate)

Email not sending

Reported by: sharif.uddin@… Owned by: hasienda
Priority: normal Component: AnnouncerPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12

Description

I am using centos 5 32bit. trac 0.12.7. python 2.4, genshi 0.6. I want users to be able to enter their email and notifications be sent to that email. My main goal was to map username to email in AD but it does not look like I can achieve this. Anyways I have installed announcer plugin with following configuration

[components]
webadmin.* = enabled
ldapauth.* = enabled
ldapplugin.* = enabled
#ldapplugin.api.ldappermissiongroupprovider = enabled
#ldapplugin.api.ldappermissionstore = disabled
ticketdelete.* = enabled
tracopt.ticket.deleter = enabled
tracwysiwyg.* = enabled

announcer.api.announcementsystem = enabled
announcer.distributors.mail.emaildistributor = enabled
announcer.formatters.ticket.ticketformatter = enabled
announcer.formatters.wiki.wikiformatter = enabled
announcer.pref.announcerpreferences = enabled
announcer.producers.attachment.attachmentchangeproducer = enabled
announcer.producers.ticket.ticketchangeproducer = enabled
announcer.producers.wiki.wikichangeproducer = enabled
announcer.resolvers.sessionemail.sessionemailresolver = enabled
announcer.subscribers.ticket_compat.carboncopysubscriber = enabled
announcer.subscribers.ticket_compat.legacyticketsubscriber = enabled
announcer.subscribers.ticket_components.ticketcomponentsubscriber = enabled
announcer.subscribers.ticket_custom.ticketcustomfieldsubscriber = enabled
announcer.subscribers.watch_users.userchangesubscriber = enabled
announcer.subscribers.watchers.watchsubscriber = enabled

[announcer]
admit_domains =
always_notify_component_owner = false
always_notify_owner = false
always_notify_reporter = false
always_notify_updater = false
default_email_format = text/html
email_address_resolvers = SpecifiedEmailResolver, SessionEmailResolver
ignore_domains =
mime_encoding = base64
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = true
smtp_from = trac-no-reply@domain.com
smtp_from_name = Trac
smtp_password =
smtp_port = 25
smtp_replyto = no-reply@domain.com
smtp_server = hero
smtp_subject_prefix = __default__
smtp_timeout = 30
smtp_user =
ticket_email_header_fields = owner, reporter, milestone, component, priority, severity.
ticket_email_subject = Ticket #${ticket.id}: ${ticket['summary']}.
ticket_subject_template = $prefix $ticket.id: $summary
use_public_cc = false
use_short_addr = false
use_tls = false
email_enabled = true

When I log in and click on new ticket i get the following gin the log file

Dec  4 11:46:06 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:07 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:46:07 hero Trac[paradox:api] INFO: Synchronized '(default)' repository in 0.05 seconds
Dec  4 11:46:08 hero Trac[paradox:env] INFO: Reloading environment due to configuration change
Dec  4 11:46:09 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:09 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:46:10 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:10 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:46:12 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:12 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:12 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:46:12 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:46:12 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:12 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:13 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:46:13 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:46:14 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:46:14 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils

When I create new ticket I get

Dec  4 11:47:00 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 11:47:00 hero Trac[paradox:loader] ERROR: Skipping "announcer.email_decorators = announcer.email_decorators":  Traceback (most recent call last):   File "/usr/lib/python2.4/site-packages/Trac-0.12.5-py2.4.egg/trac/loader.py", line 68, in _load_eggs     entry.load(require=True)   File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.4/site-packages/TracAnnouncer-1.0dev_r12503-py2.4.egg/announcer/email_decorators.py", line 7, in ?     from email.utils import parseaddr ImportError: No module named utils
Dec  4 11:47:00 hero Trac[paradox:api] INFO: Synchronized '(default)' repository in 0.06 seconds
Dec  4 11:47:00 hero Trac[paradox:api] INFO: Synchronized '(default)' repository in 0.00 seconds

Can someone advise what I am missing

Attachments (0)

Change History (4)

comment:1 Changed 13 months ago by jun66j5

  • Priority changed from highest to normal
  • Resolution set to duplicate
  • Severity changed from blocker to major
  • Status changed from new to closed

comment:2 Changed 13 months ago by shorif2000

I have applied the patch and the errors above have gone away. however once a user logs in and sets their email on the announcement page no notifications are sent. no errors in log file.

comment:3 Changed 13 months ago by shorif2000

The email is still being picked up from session and not from announcer. My mail log has

Dec  4 14:45:55 hero Trac[paradox:env] INFO: -------------------------------- environment startup [Trac 0.12.5] --------------------------------
Dec  4 14:45:56 hero Trac[paradox:api] INFO: Synchronized '(default)' repository in 0.06 seconds

==> /var/log/maillog <==
Dec  4 14:46:00 hero sendmail[5136]: rB4Ek0XH005136: from=<trac@localhost>, size=7660, class=-60, nrcpts=1, msgid=<NB2HI4B2F4XWS3TUOJQW4ZLUF52HEYLDFR2GSY3LMV2CYNA=@localhost>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Dec  4 14:46:00 hero sendmail[5138]: STARTTLS=client, relay=thor.uk.spectrumasa.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Dec  4 14:46:00 hero sendmail[5138]: rB4Ek0XH005136: to=<sharifu@SPECTRUMASA.COM>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=235660, relay=thor.uk.spectrumasa.com. [172.16.0.19], dsn=2.0.0, stat=Sent (<NB2HI4B2F4XWS3TUOJQW4ZLUF52HEYLDFR2GSY3LMV2CYNA=@localhost> [InternalId=6852396] Queued mail for delivery)

==> /var/log/messages <==
Dec  4 14:46:00 hero Trac[paradox:api] INFO: Synchronized '(default)' repository in 0.00 seconds

comment:4 Changed 13 months ago by rjollos

#11432 closed as a duplicate.

Add Comment

Modify Ticket

Action
as closed The owner will remain hasienda.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.