I-MSCP and rspamd

  • @UncleSam


    Should be fixed. https://gist.github.com/nuxwin…baae7d2482b68126e8206c534
    Changes are https://gist.github.com/nuxwin…3db75bfc3591c4cabfb94da03


    Edit: Since you have done a full reconfiguration which was not success, you have not other choice than updating the listener and reconfiguring again ;)


    Edit: Testing the script through the helper script I given you will only operate of rspamd expected parameters.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin
    Tested both scenarios:

    • Your script: parameters are fine
    • Using reconfigure: parameters are fine but somehow the first milter entry is spamassassin (can this be fixed?)
  • Using reconfigure: parameters are fine but somehow the first milter entry is spamassassin (can this be fixed?)

    Which SA plugin version did you use actually?


    Edit: Ok.. The SA plugin call the postconf() method from i-MSCP Postfix server directly and plugin are processed after the afterMtaBuildConf event is triggered, explaining the problem. Give me few minutes to find the right event to listen to.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • SpamAssasin version: 2.0.1 (which should be up2date)


    But currently after reconfigure I am missing the PolicydSPF plugin in the milter configuration. The reconfigure told me everything worked fine but I think something is not working. But I have no idea if this is related to this listener.

  • Edit: Ok.. The SA plugin invoke postconf() method from i-MSCP Postfix server directly and plugin are processed after the afterMtaBuildConf event is triggered, explaining the problem. Give me few minute to find the the right event to listen to.

    For the problem about SPF plugin parameter that are no longer injected, please could you disable the listener for rspamd (add the disabled suffix to it) and trigger a reconfiguration again and see if that change something?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @UncleSam


    Listener updated. See https://gist.github.com/nuxwin…baae7d2482b68126e8206c534


    Basically, I now listen on the afterSetupDbTasks event which is triggered after i-MSCP plugins processing. I also register the listener with low priority (-100) in case there is other listeners modifying MILTER related parameters. You can read my comments in the listener file.


    Still waiting your feedback for the SPF plugin issue.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin
    Sorry I think I made a mistake. The parameters are there with and without the rspamd listener. For any reason I thought it needs a milter entry ... I think it is too late for me and I need to go to sleep. So the only thing is that rspamd is called after spamassassin but this is not a big problem in my eyes - more a cosmetic thing I think.


    Edit: testing reconfigure of new listener

  • @UncleSam


    There is no MILTER parameter added by the SPF plugin: https://github.com/i-MSCP/plug…ackend/PolicydSPF.pm#L123

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Sorry I think I made a mistake. The parameters are there with and without the rspamd listener. For any reason I thought it needs a milter entry ... I think it is too late for me and I need to go to sleep. So the only thing is that rspamd is called after spamassassin but this is not a big problem in my eyes - more a beauty thing I think.


    Edit: testing reconfigure of new listener

    See my previous answer about SPF. Yes, there are no milter ;)


    For the filter priority, that should be fixed with last listener version.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin
    Yes I know, spf is working another way so everything is fine. I now also checked the reconfigure and the order is now perfect! Nice work and thank you very much for your time!!


    PS: Could you give me a link to the listener where it finally will be available? I do not need it now because I go to sleep now but tomorrow would be great to have it for my documentation :-)