From: Bill L. <wr...@gm...> - 2019-05-27 14:32:45
|
On 5/27/2019 10:10 AM, Lonnie Abelbeck wrote: > > >> On May 27, 2019, at 8:58 AM, Bill Lewis <wr...@gm...> wrote: >> >> On 5/26/2019 8:35 PM, Lonnie Abelbeck wrote: >>>> On May 26, 2019, at 3:15 PM, Bill Lewis <wr...@gm...> wrote: >>>> >>>> Hello all, >>>> >>>> What controls how long an email sits in the msmtpqueue before being sent out? >>>> >>>> It seems to take quite a while (minutes) before sending. >>>> >>>> Bill >>> Outbound emails should be forwarded almost immediately, unless there is some sort of error. >>> If there is an error, the email(s) is queued and retried every 5 minutes. >>> Lonnie >> >> It turns out there were dozen of old emails in that queue. Going back many months. When I finally configured the mail server, my outgoing msgs seemed to be taking a long time, vs sending instantly from another system configured the same way. >> >> I then noticed the 'mail' script sends immediately for non-root users >> vs. scheduling. So I sent looking for a time delay. And I changed that >> 5 minutes to 30 seconds to see what would happen. >> >> Because of all this, the system sent out a ton of failed sends to Gmail, and they locked my account. Only then did I discover all the msgs in the spool dir. Killing all that and waiting about an hour, Gmail started working again. And sending promptly. >> >> Bill > > Just so I understand, your system generated emails before you configured the "Outbound SMTP Mail Relay:" so they were piling-up over time. > > You configured "Outbound SMTP Mail Relay:" and all the queued emails got sent at once and Google decided you were spamming and locked your account, which in turn generated more email errors keeping mail in the queue. > > Cleaning out the queue and waiting an hour, things worked again. > > Did I understand correctly ? > > Lonnie Yes, except one detail. The new emails were generated by me, while playing with the whole thing. Bill |