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

XF 1.5 Stopping outgoing notices, on a test board

Discussion in 'Installation, Upgrade, and Import Support' started by adwade, Sep 19, 2015.

  1. adwade

    adwade Active Member

    I successfully performed an initial IMPORT from vB3 to XF last night and it went off without a hitch. Kudos to whomever built that import process. (y)

    However, I got to thinking about what all the new/test board can do and I suppose if I reply to an existing thread that someone was Subscribed to in vB (or Watched in XF) that the board would send them a notice of a new reply. :eek:

    So how do I insure that doesn't happen? I looked at the CRON jobs, but couldn't tell exactly which one might perform that function.

    Along these same lines, while we are testing out this copy of our vB board data WHAT ELSE needs to be turned OFF in order to avoid things like from happening?
     
  2. Mouth

    Mouth Well-Known Member

    Update library/config.php to ensure that sending of emails on your test board is disabled.
     
    adwade likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    PHP:
    $config['enableMail'] = false;
     
    maszd and adwade like this.
  4. adwade

    adwade Active Member

    A BIG Thanxx to both of you-all! I wasn't sure where the config.php file was at, nor the precise syntax needed. (y)
     
  5. 0ptima

    0ptima Well-Known Member

    adwade likes this.
  6. Dan Allen

    Dan Allen Active Member

    Assuming we have not modified Xenforo, and we put
    $config['enableMail'] = false;
    into /library/config.php,

    how can mail get sent from Xenforo?
     
  7. Dakota Storm

    Dakota Storm Well-Known Member

    it doesn't. that code prevents the software from sending any emails.
     
  8. Dan Allen

    Dan Allen Active Member

    I figured that was the intention, but when I searched for $config['enableMail'] the only occurrence of that string found is in the config file and it is there only once. I guess those config values get handle in way that breaks that variable name up, so I am wonder if there on place in xenforo that does all the mailing. The file, libary/XenForo/Mail.php has more than one mail sender. I wondering if that is the only file containing mail senders.

    I need to be certain that mail is not going to go out of this system. Are you certain enough that you would not worry in the slightest if the price your company had to pay is a $34M penalty if even one email goes out during a three month window where we need 10.000 people using the forum without email? I really don't want to be saying "I am sorry about your $34M," and there is not a strict rule like that in place but the stakes are high enough that I need to treat matter with not far the level caution that I would apply to a securing a few million dollars and I really do not want this to be something where I am saying I thought I had it covered but sorry. . We have to keep the mail running for the domain using another system. Maybe we should put email on another IP in addition to disabling email on xenforo. I am just thinking out loud here about solutions outside xenforo.
     
  9. adwade

    adwade Active Member

    While my test system has no penalty, other than embarrassment if emails were to go out, I can say since I added the line of code
    Code:
    $config['enableMail'] = false;
    to my config.php, no emails have ever been sent.
     
    Dan Allen likes this.
  10. Jeremy P

    Jeremy P Well-Known Member

    @Dan Allen, library/XenForo/Mail.php

    Line 165, 207:
    PHP:
            if (!XenForo_Application::get('config')->enableMail)
    As a general tip, just search for the string in between the single quotes since it gets turned into an object somewhere along the way.
     
    Dan Allen likes this.

Share This Page