1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 eMail bounce system problem

Discussion in 'Troubleshooting and Problems' started by Joeychgo, Sep 1, 2015.

  1. Joeychgo

    Joeychgo Well-Known Member

    It seems the bounce system isn't catching / logging all the bounces. I sent out a pc to all 1800 members this morning. So far, I have received 87 bounced email notices, but the log only shows 7 entries.

  2. Chris D

    Chris D XenForo Developer Staff Member

    Has the situation changed at all since posting this thread?

    This is potentially expected to a point. The EmailBounce process will run via Cron entry every 30 minutes, and when it does run it will only run for a maximum of X seconds (probably around 8 seconds or so).

    Depending on how quickly the process is running, I could see it taking a few runs before catching everything.

    However, if the log entries aren't growing at all and there's still a fair few missing this could be indicating some other issue.
  3. Joeychgo

    Joeychgo Well-Known Member

    No change at all. Still only 7 long entries
  4. Mike

    Mike XenForo Developer Staff Member

    How are you determining there are bounce entries missed? If you're accessing the account, you may be making them unavailable to XF to process (either because they're not available via POP3 or because they're not considered new via IMAP). In general, you won't want to access the account if there are pending messages (though the specifics will vary based on your mail server).

    The bounce log will include every email it reads, even if it can't find relevant details. So if you're not checking the account, that would potentially imply an issue reading the account or an error (a fatal one?) when reading the messages. I assume there are no server error logs in XF, so an error would have to either be a fatal PHP error or something killing the process.
  5. Joeychgo

    Joeychgo Well-Known Member

    No server errors.

    I'm using my site email on my dedicated server. My whm shows 89 failures this morning for that email address and I have 89 bounced email notices in my outlook inbox.
  6. Chris D

    Chris D XenForo Developer Staff Member

    Outlook.com? Or Outlook as in the email client?

    If you have downloaded the messages from the server using IMAP or POP or similar then they may no longer be marked as unread in the actual mailbox on the server.
  7. Joeychgo

    Joeychgo Well-Known Member

    outlook is the email client.
  8. Chris D

    Chris D XenForo Developer Staff Member

    That likely explains it then.

  9. Joeychgo

    Joeychgo Well-Known Member

    then why do I have 7 in the bounced email report on XF?
  10. Mike

    Mike XenForo Developer Staff Member

    Depends on when the account was checked in XF vs when your client may have checked it, variations depending on whether messages were read, etc.

    Note that you need to be using a dedicated account that only handles email bounces so XF can be the sole source checking it. (If you're using IMAP, you may be able to get away with looking at messages processed by XF already, but I wouldn't do that until any issues were confirmed to be resolved.)
  11. Chris D

    Chris D XenForo Developer Staff Member

    Maybe they were picked up before they were downloaded to your email client.

    Ultimately the best thing to do is to have bounces going into a completely separate mailbox. It may be OK to access the mailbox directly (e.g. I can't be certain but I'm pretty sure accessing a mailbox via webmail should be ok as long as the mails remain unread), but downloading them in any way is potentially going to either remove them from the mailbox or mark them in such a way that the bounce processor would ignore them.

    You could set up a limited test to confirm it is working.

    Set up a test user with a fake email that has a fake non existent domain.

    Send them a Conversation.

    Download the bounces to your client.

    Does the bounce get processed by XF? I'm guessing not.

    Second test, close your client and any other clients that may access that mailbox. Send another conversation.

    Run the Email bounce Cron in Tools > Cron Entry.

    Does the bounce get processed? At this point I'm presuming yes.

    If the theory is wrong there may be some other issue but that test seems fair right now.

Share This Page