I am getting an error in the apache logs when a user attempts to resend their email verification message from the pagure interface. For example:
[Wed Nov 30 14:24:47.863165 2016] [wsgi:error] [pid 9221] ******EMAIL****** [Wed Nov 30 14:24:47.863197 2016] [wsgi:error] [pid 9221] From: Michael Watters <pagure@pagure.example.com> [Wed Nov 30 14:24:47.863205 2016] [wsgi:error] [pid 9221] To: michael.watters@example.com [Wed Nov 30 14:24:47.863211 2016] [wsgi:error] [pid 9221] Subject: Confirm new email [Wed Nov 30 14:24:47.863215 2016] [wsgi:error] [pid 9221] in_reply_to: None [Wed Nov 30 14:24:47.863220 2016] [wsgi:error] [pid 9221] mail_id: None [Wed Nov 30 14:24:47.863224 2016] [wsgi:error] [pid 9221] Contents: [Wed Nov 30 14:24:47.863231 2016] [wsgi:error] [pid 9221] Dear wattersmt, [Wed Nov 30 14:24:47.863234 2016] [wsgi:error] [pid 9221] [Wed Nov 30 14:24:47.863252 2016] [wsgi:error] [pid 9221] You have registered a new email on pagure at https://pagure.example.com/. [Wed Nov 30 14:24:47.863260 2016] [wsgi:error] [pid 9221] [Wed Nov 30 14:24:47.863368 2016] [wsgi:error] [pid 9221] To finish your validate this registration, please click on the following [Wed Nov 30 14:24:47.863385 2016] [wsgi:error] [pid 9221] link or copy/paste it in your browser, this link will remain valid only 2 days: [Wed Nov 30 14:24:47.863468 2016] [wsgi:error] [pid 9221] https://pagure.example.com/settings/email/confirm/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX [Wed Nov 30 14:24:47.863495 2016] [wsgi:error] [pid 9221] [Wed Nov 30 14:24:47.863578 2016] [wsgi:error] [pid 9221] The email will not be activated until you finish this step. [Wed Nov 30 14:24:47.863671 2016] [wsgi:error] [pid 9221] [Wed Nov 30 14:24:47.863762 2016] [wsgi:error] [pid 9221] Sincerely, [Wed Nov 30 14:24:47.863800 2016] [wsgi:error] [pid 9221] Your pagure admin. [Wed Nov 30 14:24:47.863845 2016] [wsgi:error] [pid 9221] [Wed Nov 30 14:24:47.863879 2016] [wsgi:error] [pid 9221] *****/EMAIL******
The server itself is able to send mail through our relay and I also receive email when pushing to a project.
The git hook used to notify of a commit uses a different code path than the rest of the notifications in pagure.
The only time when the email is printed in the logs instead of being sent is when EMAIL_SENT in the configuration file is not set to True (unlike what the documentation says, the default is False not True [1], I'll fix that).
EMAIL_SENT
True
False
[1] https://pagure.io/pagure/blob/master/f/pagure/default_config.py#_39
Thanks for finding this! :)
So the default value has been fixed in https://pagure.io/pagure/pull-request/1623 which fixes this ticket.
Thanks for the report!
@pingou changed the status to Closed
Closed