I'm not sure where the problem lies at the moment, this may be a Xenforo issue, but thought I'd run it passed this forum first.
I moved the website to a new server, little configuration was required as both server are similar. the forum was running fine, but later found out the connection to the mail server wasn't there, this was a server config. So nothing to do with the forum.
In the Xenforo server error log, there were many failed attempts to send an email. Its a small forum, only a few people have asked for an email reply when a thread was replied to. So there was about 10 email due to go out. As these emails couldn't go out, for some reason they got re-added to be sent again. so some members got the same email over 100 times, and it was still resending over and over. To stop this happening again I have edited setting on the server to only allow 250 emails per hour, this is plenty for regular use and even covers the newsletter that gets sent out.
So thinking that I have sorted users getting multiple emails. A few weeks of no issues. Until this morning, sent a newsletter using DragonByte Mail yesterday. A users email address had changed so couldn't be delivered,
Checking the Xenforo server log
So what solution am i looking for? well this may not be a DragonByte mail issue, and more of a queuing issue from Xenforo. If an email fails, then pop it in the log and don't re-add it to the queue, the queue shouldn't grow exponentially like that, and I don't know the cause of it. Maybe there is a setting issue else I'm sure someone would have pointed this out before if its a true bug.
I moved the website to a new server, little configuration was required as both server are similar. the forum was running fine, but later found out the connection to the mail server wasn't there, this was a server config. So nothing to do with the forum.
In the Xenforo server error log, there were many failed attempts to send an email. Its a small forum, only a few people have asked for an email reply when a thread was replied to. So there was about 10 email due to go out. As these emails couldn't go out, for some reason they got re-added to be sent again. so some members got the same email over 100 times, and it was still resending over and over. To stop this happening again I have edited setting on the server to only allow 250 emails per hour, this is plenty for regular use and even covers the newsletter that gets sent out.
So thinking that I have sorted users getting multiple emails. A few weeks of no issues. Until this morning, sent a newsletter using DragonByte Mail yesterday. A users email address had changed so couldn't be delivered,
Checking the Xenforo server log
- Swift_TransportException: Email to test@mydomain.co.uk failed: Expected response code 250 but got code "554", with message "554 5.7.0 Your message could not be sent. The limit on the number of allowed outgoing messages was exceeded. Try again later. "
- src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383
- Generated by: Unknown account
- 1 Aug 2020 at 9:09 AM
So what solution am i looking for? well this may not be a DragonByte mail issue, and more of a queuing issue from Xenforo. If an email fails, then pop it in the log and don't re-add it to the queue, the queue shouldn't grow exponentially like that, and I don't know the cause of it. Maybe there is a setting issue else I'm sure someone would have pointed this out before if its a true bug.