MosaicGroups / mosaic-groups

A Mosaic groups application
GNU General Public License v3.0
6 stars 2 forks source link

Seeing error in login attempts to the google smtp server #121

Open pblair12 opened 7 years ago

pblair12 commented 7 years ago

On the day that groups open and we got the most traffic I see a lot of these in the logs

Apr 23 11:08:05 mosaicgroups app/web.1: error: Error sending email { AuthError: Invalid login - 454 4.7.0 Too many login attempts, please try again later. 144sm11143324qkj.35 - gsmtp Apr 23 11:08:05 mosaicgroups app/web.1: data: '454 4.7.0 Too many login attempts, please try again later. 144sm11143324qkj.35 - gsmtp'

We need to verify that this is a legit error. Did the email ever make it out or was it never sent? If it was throttled by the google gsmtp server then can we increase our limit? If we can't then we will need to come up with a work around. Some work arounds I can think of are:

1) batch up the email messages, login once, send all the batched messages, logout. right now we do a login per email but if we batch them then we will have to log in less. 2) send out less emails? Maybe we don't need to send so many email? this would be a last resort. 3) I am sure there is another smart solution that I am not thinking of right now.... google for other ways that people get around this limitation.

pblair12 commented 7 years ago
  1. possibly mosaic groups could have multiple email account that it sends emails as... but I don't like this idea. It is messy and a big hack. It would be a very last resort measure. Google must have a way around this limitation.
jeffklassen commented 7 years ago

Another option would be to register a new email address such as noreply@mosaicgroups.org with godaddy and use their email servers. Since we are paying them for the domain, perhaps their limits will be higher.