Opened 9 years ago
Last modified 8 years ago
#12735 new defect
New user registration: verification e-mail doesn't sent by
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description (last modified by )
I'm using TracAccountManager-0.4.4 on my fresh installation of trac-1.0.10. Account manager is configured in according to official cookbook: CookBook/AccountManagerPluginConfiguration.
After new user registration and first attempt to login, new user doesn't receive verification e-mail; the snippet of trac-log file pasted below (attempt to register 'tester' user):
2016-04-11 12:51:05,933 Trac[loader] DEBUG: Loading acct_mgr.notification from /apps/trac/lib/python2.7/site-packages/TracAccountManager-0.4.4-py2.7.egg 2016-04-11 12:51:06,169 Trac[notification] INFO: Sending notification through SMTP at localhost:25 to [u'tracadmin@myhost'] 2016-04-11 12:52:21,638 Trac[notification] INFO: Email address w/o domain: tester 2016-04-11 12:52:21,638 Trac[notification] INFO: no recipient for a ticket notification
Mention here, that system trying to send e-mail to 'tester', however during registration I've provided correct e-mail.
Another e-mail notifications (ticket creation, and even new account creation notify, see snippet above) works correct.
Attachments (0)
Change History (4)
comment:1 Changed 9 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 8 years ago by
Owner: | Steffen Hoffmann deleted |
---|
comment:3 Changed 8 years ago by
comment:4 Changed 8 years ago by
After some tests, it seems that my problem is related to the use of the plugin combined with UserManagerPlugin.
In fact, the way for getting user email is pre-empted by this plugin so Trac found no email for my 'test_register' account because this account has not been created trough its interface (no 'enabled' entry for 'test_register')
2017-05-25 16:15:46,497 Trac[api] DEBUG: CHANGE_LISTENER: <acct_mgr.api.AccountManager object at 0x23b6a90>(user_email_verification_requested) 2017-05-25 16:15:46,497 Trac[api] INFO: Email verification requested for user: test_register 2017-05-25 16:15:46,497 Trac[api] DEBUG: CHANGE_LISTENER: <acct_mgr.notification.AccountChangeListener object at 0x24bca10>(user_email_verification_requested) 2017-05-25 16:15:46,570 Trac[util] DEBUG: SQL: SELECT sid FROM session_attribute WHERE name='enabled' and value='1' ... 2017-05-25 16:15:46,662 Trac[notification] INFO: Email address w/o domain: test_register 2017-05-25 16:15:46,662 Trac[notification] INFO: no recipient for a ticket notification
So in UserManagerPlugin administration interface, I imported my bunch of preregistered accounts and QED I got my email verification message.
2017-05-25 16:21:07,431 Trac[api] DEBUG: CHANGE_LISTENER: <acct_mgr.api.AccountManager object at 0x2ae4a90>(user_email_verification_requested) 2017-05-25 16:21:07,431 Trac[api] INFO: Email verification requested for user: test_register 2017-05-25 16:21:07,431 Trac[api] DEBUG: CHANGE_LISTENER: <acct_mgr.notification.AccountChangeListener object at 0x2be9a10>(user_email_verification_requested) 2017-05-25 16:21:07,504 Trac[util] DEBUG: SQL: SELECT sid FROM session_attribute WHERE name='enabled' and value='1' ... 2017-05-25 16:21:09,105 Trac[notification] INFO: Sending notification through SMTP at localhost:25 to [u'...@...']
But I obtained also a collateral damage as all 'last_visit' entries in 'session' database were updated to the import time, I digress but it was far from perfect.
Finally I preferred uninstall UserManagerPlugin because it is probably not steady and a bit tricky to work with AccountManagerPlugin at this moment and it doesn't handle the registration module.
I bring up this issue because I face exactly the same now.
I use 0.4.4 tag release and nothing goes wrong for previous accounts, the verification email is send. But when registering a new account, nothing happens when the account is created, and if I ask for resending the email after connection I get a confirmation text under the header on the webpage with the right address but I do not receive the message on my mailbox.