pre67vw
  •  pre67vw
  • 56% (Neutral)
  • YAF Camper Topic Starter
2012-04-13T14:23:28Z
Another issue that I have is that the notifications are in the language of the last poster on the thread. So not only do people get multiple emails, but they can't read them sometimes either...
squirrel
2012-04-13T14:34:57Z
Originally Posted by: pre67vw 

I didn't have the problem a single time when I was on 1.9.4 RC1, now it's becoming a real issue.

It's on the same server with the same SMTP settings, the only thing that's changed is YAF 😞



Do you have any way to try a different MTA for your mail? setup a test account on another mail provider and set it in yaf and restart and see if the queue clears and duplicates stop?

That was one thing that changed in our configuration that sticks out where we're not getting 'duplicate emails anymore' since we moved our site --

If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Thantis
2012-04-15T23:56:12Z
So I might have found a solve for at least some of the people with this problem. Squirrel mentioned changing his users notifications so that they wouldn't receive them. I recently made changes to the database to change my user base's settings on notifications and I changed all rows to notify for all posts/forums. Thinking back on this, by doing so, I set the guest account to be notified in this manner also, but the guest account doesn't have an email address specified by default, which of course makes sense, but if Yaf is trying to send an email to a blank email address might this not be the cause? I have set an catch-all "no-reply@host.com" email address to the guest account and modified the notification for guest accounts back to the default. This seems to have corrected my problem. I'm sure this isn't the same problem everyone is having, but it might be worth taking a look into.
squirrel
2012-04-16T00:42:28Z
Originally Posted by: Thantis 

So I might have found a solve for at least some of the people with this problem. Squirrel mentioned changing his users notifications so that they wouldn't receive them. I recently made changes to the database to change my user base's settings on notifications and I changed all rows to notify for all posts/forums. Thinking back on this, by doing so, I set the guest account to be notified in this manner also, but the guest account doesn't have an email address specified by default, which of course makes sense, but if Yaf is trying to send an email to a blank email address might this not be the cause? I have set an catch-all "no-reply@host.com" email address to the guest account and modified the notification for guest accounts back to the default. This seems to have corrected my problem. I'm sure this isn't the same problem everyone is having, but it might be worth taking a look into.



Which leads indirectly to if there is an email stuck in the queue and the queue doesn't complete, successful mails inside that same queue should be removed. I have to look at the source code and just how the queue is processed and cleared. It's an area I have no knowledge but would be nice to know how it works at this point.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
squirrel
2012-04-16T02:48:07Z
Let me ask this of the devs:

The exceptions and errors responses I see in the source code show usage of the "DEBUG" flag. If I compile in debug mode and load it up, where will I find the 'debug' error messages? Do they go to the event log of YAF or are they on screen or what?

In the source code, it looks like all messages in the table are loaded into a dictionary object, spooled to the mailsender, then deleted on a second 'trip' through the dictionary. I am most likely wrong but that's how I read the code. If this is the case, is there any way to get some 'output' from the sendmail task as to if it's having issues somewhere? Would I get that from debug mode? My theory is taking my 'live data' and getting it onto a dev server of mine, load up the debug compiled code, then testing things out with the sendmail task (such as bad emails, high number of messages, and so on) to try to figure out what's keeping successful messages from being removed if they're sent...


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
tha_watcha
2012-04-16T12:03:46Z
Quote:

Thinking back on this, by doing so, I set the guest account to be notified in this manner also, but the guest account doesn't have an email address specified by default, which of course makes sense, but if Yaf is trying to send an email to a blank email address might this not be the cause?



No this shouldn't be a problem there is a check if the user is a guest or not before the messages are collected

Quote:

The exceptions and errors responses I see in the source code show usage of the "DEBUG" flag. If I compile in debug mode and load it up, where will I find the 'debug' error messages? Do they go to the event log of YAF or are they on screen or what?



Yes but currently the code seems wrong normally it should also log email exceptions when not in debug mode but thats not the case. Thats the reason why the event log will be always empty when the send mail threading isnt working.

To finally solve the Problem with the Multiple Mails or Mails not send at all, we need to turn on the logger for this, to hopefully shed some light in to this Problem.
UserPostedImage
bbobb
  •  bbobb
  • 100% (Exalted)
  • YAF Developer
2012-04-16T12:22:19Z
Maybe a good idea would be to add a host setting which allows debugging output in all modes.
francoz
2012-04-16T12:31:02Z
Another 2 cent to this issue: I was facing again multiple email problems even using my new mail server, where initially these seemed to have disappeared.
I have setup the mail server to receive non delivery reports and found that a very active user had a non-existant mail address. After changing this with an updated working one all is fine.
tha_watcha
2012-04-16T12:58:30Z
Originally Posted by: bbobb 

Maybe a good idea would be to add a host setting which allows debugging output in all modes.



Agreed, would be easily to add. I add it later.

I enabled the Logger for the Threaded Send Mail Function
UserPostedImage
squirrel
2012-04-16T13:41:10Z
Originally Posted by: francoz 

Another 2 cent to this issue: I was facing again multiple email problems even using my new mail server, where initially these seemed to have disappeared.
I have setup the mail server to receive non delivery reports and found that a very active user had a non-existant mail address. After changing this with an updated working one all is fine.




So are you saying you fixed a bad email address also that was clogging the queue and now it's behaving normally?
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
francoz
2012-04-16T15:40:42Z
Originally Posted by: squirrel 

Originally Posted by: francoz 

Another 2 cent to this issue: I was facing again multiple email problems even using my new mail server, where initially these seemed to have disappeared.
I have setup the mail server to receive non delivery reports and found that a very active user had a non-existant mail address. After changing this with an updated working one all is fine.




So are you saying you fixed a bad email address also that was clogging the queue and now it's behaving normally?



Exactly.
My forum has 830 users and it is quite easy to keep under control bad email addresses.
But thinking better about it this can hardly be the issue. The mail server should take the message from the client (YAF Forum application) and LATER try to send it to the recipient, so the queue should not clog for this reason.
I am sure there are no connection issues with my previous mail server (it was the one from my provider, on my same subnet, fiber connectivity, no problems at all connecting from another site via Exchange on a quite busy environment) but there could be some about the way YAF connects to it, for example for too frequent sessions opened.
Just my guess, since there is actually no log to examine.
squirrel
2012-04-16T15:56:25Z
Originally Posted by: francoz 

Originally Posted by: squirrel 

Originally Posted by: francoz 

Another 2 cent to this issue: I was facing again multiple email problems even using my new mail server, where initially these seemed to have disappeared.
I have setup the mail server to receive non delivery reports and found that a very active user had a non-existant mail address. After changing this with an updated working one all is fine.




So are you saying you fixed a bad email address also that was clogging the queue and now it's behaving normally?



Exactly.
My forum has 830 users and it is quite easy to keep under control bad email addresses.
But thinking better about it this can hardly be the issue. The mail server should take the message from the client (YAF Forum application) and LATER try to send it to the recipient, so the queue should not clog for this reason.
I am sure there are no connection issues with my previous mail server (it was the one from my provider, on my same subnet, fiber connectivity, no problems at all connecting from another site via Exchange on a quite busy environment) but there could be some about the way YAF connects to it, for example for too frequent sessions opened.
Just my guess, since there is actually no log to examine.



See I don't know how the mail task in YAF accounts for communications with the mail server over 'network' - and how it records 'communication' errors. The issue seems to be occurring during communication with SMTP via "network" if there is some form of error transmitting a particular message, the whole queue is left intact in the table instead of the 'successfully' communicated messages being cleared as success is received.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
JP
  •  JP
  • 100% (Exalted)
  • YAF Leader
2012-04-27T18:21:10Z
Unfortunately the issue still exists with 1.9.6.1 rtw and even beyond...

"It used to work but it is now broken" - How many times have I not said that during my 27 years in the computer business... 😄

I myself use a Merak mail server on the same machine as the forum as the SMTP relay, and have had this issue after 1.9.4, so I don't really believe in the "bad email address" theory. I get all bounces from bad addresses and do not see any connection between a bounce on eg a watched topic and a sudden barrage of 10 new registrations mails for a single user with the same timestamp...

Could it be that the mail process spawns a new thread for every new sendmail in the queue, and if there is some delay in sending there are several threads sending the same mail, due to small delays in the SMTP contact? Ie reading the same first in queue item from the database? Resulting in parallel work instead of strictly sequential?

Just a crazy idea, since I don't know how it works but love speculating in wild theories based on earlier experiences ... 😄
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
francoz
2012-04-29T11:27:18Z
Have to quote JP: removing bad addresses from users' accounts does not solve the problem.
This behaviour is inconsistent: sometimes mailing works fine, sometimes two emails arrive, sometimes five, or six, or seven...
I have changed four mail servers with no apparent effects.
Hopefully developers should investigate on this issue, it is quite annoying for users.
pre67vw
  •  pre67vw
  • 56% (Neutral)
  • YAF Camper Topic Starter
2012-05-03T11:51:43Z
Originally Posted by: francoz 


Hopefully developers should investigate on this issue, it is quite annoying for users.



Yes! I think it needs to be done as a priority, it's so annoying now that I'm looking for alternatives to YAF.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved