Custom Query (1173 matches)
Results (4 - 6 of 1173)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#849 | invalid | yeowch when greylisted by local smtp server | ||
Description |
I set up GMG on a new site running postfix smtp server with postgrey greylisting. When GMG sends a verification email to a new user@domain address, the email is greylisted by my local smtp server and GMG throws an error. The accounts are created fine (they can still log in), and after waiting the requisite time for greylisting, my GMG instance can successfully email these addresses. I've marked this as minor, as anyone who does encounter this will likely have configured greylisting on purpose and should be able to figure out how to fix it. However, it would be neat if GMG were aware of greylisting and had a slightly smarter behaviour. Perhaps instead of defaulting to a yeowch page, it could display a message such as "account was created but email could not be sent." Logs follow with identifiable information scrubbed. /var/log/mediagoblin/mediagoblin.log: Starting server in PID 18739. Error - <class 'smtplib.SMTPRecipientsRefused'>: {u'user@domain.tld': (450, '4.2.0 <user@domain.tld>: Recipient address rejected: "Greylisted')} URL: http://domain.tld/auth/register/ File '/srv/mediagoblin/mediagoblin-0.6.2-dev/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/exceptions/errormiddleware.py', line 144 in __call__ app_iter = self.application(environ, sr_checker) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py', line 203 in __call__ return app(environ, start_response) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/app.py', line 263 in __call__ return self.call_backend(environ, start_response) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/app.py', line 240 in call_backend response = controller(request) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/decorators.py', line 303 in wrapper return controller(request, *args, **kwargs) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/decorators.py', line 361 in wrapper return controller(request, *args, **kwargs) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/auth/views.py', line 51 in register user = register_user(request, register_form) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/auth/tools.py', line 148 in register_user send_verification_email(user, request) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/auth/tools.py', line 103 in send_verification_email rendered_email) File '/srv/mediagoblin/mediagoblin-0.6.2-dev/mediagoblin/tools/mail.py', line 129 in send_email return mhost.sendmail(from_addr, to_addrs, message.as_string()) File '/usr/lib64/python2.7/smtplib.py', line 735 in sendmail raise SMTPRecipientsRefused(senderrs) SMTPRecipientsRefused: {u'user@domain.tld': (450, '4.2.0 <user@domain.tld>: Recipient address rejected: "Greylisted')} /var/log/mail.log: Feb 4 02:04:33 localhost postfix/smtpd[18751]: connect from localhost.localdomain[127.0.0.1] Feb 4 02:04:33 localhost postgrey[14819]: action=greylist, reason=new, client_name=localhost.localdomain, client_address=127.0.0.1, sender=mediagoblin@localdomain, recipient=user@domain.tld Feb 4 02:04:33 localhost postgrey[14819]: cleaning up old logs... Feb 4 02:04:33 localhost postgrey[14819]: cleaning up old entries... Feb 4 02:04:33 localhost postgrey[14819]: cleaning main database finished. before: 16, after: 3 Feb 4 02:04:33 localhost postgrey[14819]: cleaning clients database finished. before: 13, after: 2 Feb 4 02:04:33 localhost postfix/smtpd[18751]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 450 4.2.0 <user@domain.tld>: Recipient address rejected: "Greylisted; from=<mediagoblin@localdomain> to=<user@domain.tld> proto=ESMTP helo=<[xxx.xxx.xxx.xxx]> |
|||
#936 | cant-reproduce | wtforms dependency error in setup.py | ||
Description |
git cloned master a few minutes ago. setup.py depends on wtforms without specifying version. So I used 1.0.1, the most common wtforms version found (e.g. on Ubuntu 14.04 released 4 months ago). Error follows. $ gmg dbupdate Traceback (most recent call last): File "/usr/local/bin/gmg", line 9, in <module> load_entry_point('mediagoblin==0.6.2.dev', 'console_scripts', 'gmg')() File "/var/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 108, in main_cli setup_func = import_component(command_struct['setup']) File "/var/mediagoblin/mediagoblin/tools/common.py", line 34, in import_component __import__(module_name) File "/var/mediagoblin/mediagoblin/gmg_commands/shell.py", line 21, in <module> from mediagoblin.gmg_commands import util as commands_util File "/var/mediagoblin/mediagoblin/gmg_commands/util.py", line 18, in <module> from mediagoblin import app File "/var/mediagoblin/mediagoblin/app.py", line 29, in <module> from mediagoblin.tools import common, session, translate, template File "/var/mediagoblin/mediagoblin/tools/template.py", line 34, in <module> from mediagoblin.meddleware.csrf import render_csrf_form_token File "/var/mediagoblin/mediagoblin/meddleware/csrf.py", line 44, in <module> class CsrfForm(Form): File "/var/mediagoblin/mediagoblin/meddleware/csrf.py", line 49, in CsrfForm [validators.InputRequired()]) AttributeError: 'module' object has no attribute 'InputRequired' On wtforms 1.0.1 there is only wtforms.validators.Required. Either change code to stay with wtforms 1.0.1 (most commonly found), or be explicit that this version is not acceptable in setup.py - wtforms 2 seems have this class. |
|||
#34 | FIXED | write up instructions in hackinghowto for virtualenv | ||
Description |
Using buildout has some problems. So we need to write up instructions in the hacking howto for setting up a build/development environment using virtualenv --no-site-packages. |