Unable to change spam settings

Issue #548 resolved
Peter Franken created an issue

The spam prepend function has been very aggressive since last update.

I want to change the score from 5 to 7, but when I click save it still says 5 (even after page refresh).

Comments (14)

  1. SB

    2.0.21 still has issue where Mailserver settings cannot be saved.

    It looks like It saves, but if you leave page and return to it, it shows the old value.

    SH Please can you look into this? I am not able to change the settings since 2.0.17 :(

  2. Peter Franken reporter

    Sorry for delay, had the flu.

    I've updated to v2.0.23 but unfortunately the problem persists. I cleared cache and went to /admin/settings/#spam, then changed "Minimum score to prepend subject" from 5 to 6, clicked "Save changes" but the value is still 5, even after reload.

    As a temporary workaround I've changed the value directly in the server.ini file.

  3. SH repo owner

    Are you sure you have 2.0.23? See bottom left menu

    I've tested your server.ini and had no problem with changing settings

  4. Peter Franken reporter

    Yes definitely running 2.0.23, odd.

    I'll test it on another server over the weekend and will report back.

  5. Peter Franken reporter

    Not entirely sure if related but I'm getting the following error page when changing SSL settings. Could be caused by me but looks like a permissions issue.

    Update: I just changed ownership of the data directory chown mail:mail -R /path to data dir on host/ and restarted the container. I'm now able to change all settings, including the spam settings as well as SSL settings.

    Oops! An Error Occurred
    
    The server returned a "500 Internal Server Error".
    
    Something is broken. Please let us know what you were doing when this error occurred.We will fix it as soon as possible. Sorry for any inconvenience caused. 
    
    Can't write to file with owner uid: 1000 (me 0)
    
    
    
    
    RuntimeException 
    
    
    
    in src/AppBundle/Config/Config.php (line 281)  
    
    276.
    277.        if (is_writable($this->importedIniPath)) {
    278.            file_put_contents($this->importedIniPath, $this->export($translator));
    279.        } else {
    280.            if (is_file($this->importedIniPath)) {
    281.                throw new \RuntimeException('Can\'t write to file with owner uid: '.fileowner($this->importedIniPath).' (me '.getmyuid().')');
    282.            } else {
    283.                throw new \RuntimeException('Directory for '.$this->importedIniPath.' is not writable?');
    284.            }
    285.        }
    286.    }
    
    
    Config->save(object(Translator)) in src/AppBundle/Controller/LeController.php (line 53)  
    
    48.
    49.        $form = $this->createForm(LeCertificateType::class, $le);
    50.        $form->handleRequest($request);
    51.
    52.        if($form->isSubmitted() && $form->isValid()) {
    53.            $this->serverConfig->save($translator);
    54.            $reissue = $le->enabled;
    55.        }
    56.
    57.        return [
    58.            'config' => $this->serverConfig,
    
    
    LeController->indexAction(object(Request), object(Translator)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)  
    
    146.        $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
    147.        $controller = $event->getController();
    148.        $arguments = $event->getArguments();
    149.
    150.        // call controller
    151.        $response = \call_user_func_array($controller, $arguments);
    152.
    153.        // view
    154.        if (!$response instanceof Response) {
    155.            $event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
    156.            $this->dispatcher->dispatch(KernelEvents::VIEW, $event);
    
    
    HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)  
    
    63.    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    64.    {
    65.        $request->headers->set('X-Php-Ob-Level', ob_get_level());
    66.
    67.        try {
    68.            return $this->handleRaw($request, $type);
    69.        } catch (\Exception $e) {
    70.            if ($e instanceof RequestExceptionInterface) {
    71.                $e = new BadRequestHttpException($e->getMessage(), $e);
    72.            }
    73.            if (false === $catch) {
    
    
    HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)  
    
    195.        $this->boot();
    196.        ++$this->requestStackSize;
    197.        $this->resetServices = true;
    198.
    199.        try {
    200.            return $this->getHttpKernel()->handle($request, $type, $catch);
    201.        } finally {
    202.            --$this->requestStackSize;
    203.        }
    204.    }
    205.
    
    
    Kernel->handle(object(Request)) in web/app.php (line 16)  
    
    11.//$kernel = new AppCache($kernel);
    12.
    13.// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
    14.//Request::enableHttpMethodParameterOverride();
    15.$request = Request::createFromGlobals();
    16.$response = $kernel->handle($request);
    17.$response->send();
    18.$kernel->terminate($request, $response);
    19.
    
  6. SH repo owner

    @pcjmfranken please also restart container. It should fix rights to multiple directiories which are not mail:mail

  7. Log in to comment