No Emails on Notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • The_Hawk
    Member
    • Aug 2008
    • 54
    • 4.0.0

    [Forum] No Emails on Notifications

    I'm having issues with me emails all of a sudden.

    It seems that new registration emails work fine and if I run diagnostics on the email it reports no errors (and the email comes through). But notifications are not working for subscribed threads or PM's (or admin/mods listed to get notifications on new thread creation).


    I just upgraded to vBulletin 4.2.0 PL3 (from PL2) which didn't resolve the issue.

    I am running PHP Version 5.4.13 and mySQL Version 5.5.30, both of which were updated recently and just might be the cause of the problem. The strange part being that some emails work fine, others are not??

    Is there a scheduled task or something I could be missing?
    Or a setting somewhere that sets these types of messages?
    Or an error log somewhere that might tell me what is going on?
  • Hartmut
    Senior Member
    • Nov 2007
    • 2870
    • 4.2.x

    #2
    In general, vBulletin 4 has issues with PHP 5.4 and we officially don't support PHP 5.4 at this time. Did you change some settings?
    No private support, only PM me when I ask for it. Support in the forums only.

    Comment

    • The_Hawk
      Member
      • Aug 2008
      • 54
      • 4.0.0

      #3
      mySQL and PHP were only updated in preparation for a move to vBulletin 5 given they are listed as the recommended versions (it's also worth noting the VB4 system requirements page only says "PHP version 5.2.0 or greater"). The plan was to spend some time testing the new system to make sure it could do everything we need/want and get it looking just right before doing a cut over. MySQLi was also installed.

      In any case, the upgrade caused a couple of issues with warnings being displayed to the public about "Strict Standards: Non-static method..." the messages were disabled and that problem was solved.

      Otherwise there were no other changes made and there doesn't appear to be anything in the cPanel error log.

      I have tried disabling all plug ins (of which there are only a couple) with no luck.

      Switching to SMTP instead of php mail also makes no difference.

      It's very strange that new registration and test emails are going through, but there is no messages for subscriptions (I've also just tested and I'm not getting notification on PM's I have received). On a side note Tapatalk is getting notifications... it's just emails that aren't working.

      Comment

      • The_Hawk
        Member
        • Aug 2008
        • 54
        • 4.0.0

        #4
        To add to that, I have just received a couple of "New Post" notifications... problem is they are over 48 hours late yet are show as only just being sent (and received by me a couple of minutes later).

        Comment

        • The_Hawk
          Member
          • Aug 2008
          • 54
          • 4.0.0

          #5
          Update:

          Something didn't quite sit right that the notifications I was getting were sent at exactly 10 minute increments. A little more digging seems to show that the problem was caused by the "Mailqueue system" and cron based sending.

          For some reason the notification emails seem to have backed up, then only sending the default of 10 messages per 10 minutes that's only 60 messages per hour so catching up was either very slow or unlikely. Turning off cron based sending sent the server into meltdown for a few minutes as I assume it instantly tried to send every outstanding message. Personally I received over 50 messages so there must have been more than a few in there.

          Subsequent testing seems to show emails sending instantly now.

          This leaves me with two questions.

          1, Is there anyway to view the queue of waiting messages?

          and maybe alternatively

          2. Why bother with cron based sending at all? What's the implication of leaving things to send as and when needed?

          Comment

          • George L
            Former vBulletin Support
            • May 2000
            • 32996
            • 3.8.x

            #6
            Maybe my blog article at http://vbtechsupport.com/2003/ might help if you have ssh telnet access and a dedicated server or VPS server to run the bash shell script which will also log stats to log directory at /root/vbmailqueuelogs so you can monitor mail queue size over time and adjust your admincp settings accordingly.

            You'll get output like

            Code:
            root@ [~/tools]# ./vbmailqueue.sh count
            
            
            ------------------------------------------------------------------
            
            
            vbmailqueue.sh 0.0.3 - George Liu (eva2000) vbtechsupport.com
            
            
            ------------------------------------------------------------------
            
            
            As at: Mon Jun  4 07:51:04 CDT 2012
            
            
            ------------------------------------------------------------------
            
            
            First Mail Queue ID: 14181939
            
            
            Last Mail Queue ID: 14181940
            
            
            ------------------------------------------------------------------
            
            
            vBulletin Mail Queue row size is: 2
            
            
            ------------------------------------------------------------------
            
            
            vBulletin email settings are set as follows:
            
            
            +----------------+------------+--------------------+--------------+
            
            
            | varname        | grouptitle | value              | defaultvalue |
            
            
            +----------------+------------+--------------------+--------------+
            
            
            | smtp_pass      | email      |                    |              |
            
            
            | smtp_tls       | email      | ssl                | none         |
            
            
            | smtp_user      | email      | [email protected] |              |
            
            
            | smtp_port      | email      | 465                | 25           |
            
            
            | smtp_host      | email      | smtp.gmail.com     |              |
            
            
            | use_smtp       | email      | 0                  |              |
            
            
            | utf8encode     | email      | 0                  | 0            |
            
            
            | usebulkheader  | email      | 0                  | 0            |
            
            
            | needfromemail  | email      | 0                  |              |
            
            
            | bounceemail    | email      |                    |              |
            
            
            | mail_delay     | email      | 0                  | 0            |
            
            
            | emailsendnum   | email      | 5000               | 50           |
            
            
            | mailqueue      | email      | 1                  | 1            |
            
            
            | emailfloodtime | email      | 10                 | 60           |
            
            
            | usemailqueue   | email      | 1                  | 1            |
            
            
            | secureemail    | email      | 1                  | 1            |
            
            
            | enableemail    | email      | 1                  | 1            |
            
            
            | displayemails  | email      | 1                  | 1            |
            
            
            +----------------+------------+--------------------+--------------+
            
            
            ------------------------------------------------------------------
            
            
            Stats Output saved at:
            
            
            /root/vbmailqueuelogs/mailqueue_040612-075104.log
            
            
            ------------------------------------------------------------------
            
            
            total 4.0K
            
            -rw-r--r-- 1 root root 2.2K Jun  4 07:51 mailqueue_040612-075104.log
            ------------------------------------------------------------------

            If you are on shared hosting without SSH / Telnet access, you can check your mail queue size, via vB AdminCP -> Maintenance -> Diagnostics -> System Information -> Table Status. Find the mailqueue table and check row size.



            :: Always Back Up Forum Database + Attachments BEFORE upgrading !
            :: Nginx SPDY SSL - World Flags Demo [video results]
            :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

            Comment

            • BirdOPrey5
              Senior Member
              • Jul 2008
              • 9613
              • 5.6.3

              #7
              In the Admin CP under the Welcome to the vBulletin Admin Control Panel section the last option on the right should be Queued emails.

              Comment

              • The_Hawk
                Member
                • Aug 2008
                • 54
                • 4.0.0

                #8
                Thanks guys, that gives me some options.

                The second question still remains, why bother queueing at all?

                Comment

                • BirdOPrey5
                  Senior Member
                  • Jul 2008
                  • 9613
                  • 5.6.3

                  #9
                  Sending mail can big down a server. On a busy site it is better for performance to stagger emails rather than send them all at once.

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...