Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: [Release] Rspamd web interface plugin for DirectAdmin - v0.1

  1. #1
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105

    Thumbs up [Release] Rspamd web interface plugin for DirectAdmin - v0.1

    If you already have Rspamd, the fast, free and open-source spam filtering system, installed on a DirectAdmin server, you might try a web interface, which provides basic functions for setting metric actions, scores, viewing statistic and learning for Rspamd.

    By default the Web-UI is not accessible from outside, and it might be a challenge to access it securely over HTTPs.

    Poralix have prepared a plugin for DirectAdmin to allow administrators to manage Rspamd without much efforts.

    RELEASE PAGE

    Here is a guide on how to get the plugin installed into the control panel and access it on an admin level:

    - https://help.poralix.com/articles/rs...ctadmin-plugin

    INFORMATION

    - Version: 0.1.0
    - Last modified: Sat Apr 27 21:14:05 +07 2019
    - Update URL: https://files.poralix.com/get/freeso.../rspamd.tar.gz
    - Version URL: https://files.poralix.com/version/freesoftware/rspamd
    - Rspamd Web-UI home page: https://rspamd.com/webui/

    INSTALLATION

    Run the following commands as root to install the plugin from a git repository:

    Code:
    cd /usr/local/directadmin/plugins/
    git clone https://github.com/poralix/rspamd.git
    cd rspamd/scripts/
    ./install.sh
    AUTHORS

    - Rspamd with the web interface is written by Vsevolod Stakhov
    - Plugin for Directadmin is written by Alex S Grebenschikov

    Try the plugin and share your experience.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  2. #2
    Join Date
    Jul 2013
    Posts
    150
    I had before spamasssin so i edited options.conf to disable spamassasin and enabled rspamd
    after that i did the plugin installation , went ok
    when i click on the plugin i get an error :

    {"error":"An error occured!"}

    EDIT:Apperently changging things in options isnt enough

    so i did

    cd /usr/local/directadmin/custombuild
    ./build update
    ./build set spamd rspamd
    ./build rspamd
    ./build exim_conf

    Error is gone now, how can we test of the rspamd works well , isti better then spamassasin ?
    Last edited by Active8; 05-04-2019 at 08:49 AM.

  3. #3
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    You can check the logs and history in the web-gui, and see how the things go. It's expected to run faster with less resource usage.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  4. #4
    Join Date
    Jul 2013
    Posts
    150
    hmm nothing in the webgui, in the email address i dont see anything about a scan for spam

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    Check /var/log/rspamd/rspamd.log directly. What you have there?
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  6. #6
    Join Date
    Jul 2013
    Posts
    150
    Code:
    2019-05-04 18:37:25 #26883(controller) <174fec>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
    2019-05-04 18:38:29 #26883(controller) <16edaf>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
    2019-05-04 18:38:29 #26883(controller) <ca9507>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
    2019-05-04 18:48:41 #26883(controller) <7d79a8>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
    2019-05-04 18:48:41 #26883(controller) logger; file_log_function: Last message repeated 36 times
    2019-05-04 18:48:41 #26883(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
    2019-05-04 18:56:03 #26883(controller) <0d14ff>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
    2019-05-04 18:56:03 #26883(controller) <9ca3d0>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
    2019-05-04 18:56:06 #26883(controller) <fc14a9>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
    2019-05-04 18:56:07 #26883(controller) <b87445>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1

  7. #7
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    The rspamd is running, according to the logs.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  8. #8
    Join Date
    Jul 2013
    Posts
    150
    weired email header shows this:

    Code:
    Message-ID: <005d01d5029d$6edf8100$4c9e8300$@ww.com>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_005E_01D502AE.32685100"
    X-Mailer: Microsoft Outlook 16.0
    Thread-Index: AdUCnWjVxc9oc1vzQWqaN2HJI4gx9w==
    Content-Language: nl
    X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
    X-Authenticated-Id: info@www.com
    Forward-Confirmed-ReverseDNS: Reverse and forward lookup success on 1:1:1:1, -10 Spam score
    SPFCheck: Server passes SPF test, -30 Spam score
    SpamTally: Final spam score: unset because ESF not run (SpamAssassin unset, whitelist, or skippped)
    in historylog i see:
    Code:
    5/4/2019, 7:19:24 PM	controller	4516	csession	6856f7	got error on IO with server fuzzy2.rspamd.com(88.99.142.95:11335), on write, 1, Operation not permitted
    5/4/2019, 7:18:54 PM	controller	4516	csession	3cbb88	got error on IO with server fuzzy1.rspamd.com(88.99.142.95:11335), on write, 1, Operation not permitted
    Last edited by Active8; 05-04-2019 at 10:34 AM.

  9. #9
    Join Date
    Apr 2009
    Posts
    2,247
    @Active8, Maybe you should not disable SpamAassassin as you did? The way I interpret this feature (https://directadmin.com/features.php?id=2286) is that SpamAassassin should be left and not disabled when using Rspamd, but I could be wrong of course.

  10. #10
    Join Date
    Jul 2013
    Posts
    150
    Hi Ditto, in options.conf for spamd you MUST select one of them, so I dont think that rspmand can work along spamassassin, maybe Alex can bring some light in here

  11. #11
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    Rpsamd is a binary replacement of SpamAssassin.

    Before installing rspamd check a server to meet the Requirements:

    - DirectAdmin Version 1.56.0 or higher
    - CentOS
    - Exim
    - EasySpamFighter 1.17+
    - exim.conf 4.5+

    Full instructions on how to install rspamd will be as the following:

    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build set eximconf yes
    ./build set eximconf_release 4.5
    ./build set blockcracking yes
    ./build set easy_spam_fighter yes
    ./build set spamd rspamd
    ./build set exim yes
    ./build exim
    ./build rspamd
    ./build exim_conf
    More details:

    - https://help.poralix.com/articles/ho...on-directadmin
    - https://www.directadmin.com/features.php?id=2286
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  12. #12
    Join Date
    Jul 2013
    Posts
    150
    Hi Alex, thanks for clarifying
    My test server has these requirements , but i missed this build :

    ./build set blockcracking yes

    I will try that and let you know

  13. #13
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    Hardly can blockcracking change anything in your case, it's only for outgoing emails.

    You might check this thread https://forum.directadmin.com/showthread.php?t=56709 as well.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  14. #14
    Join Date
    Jul 2013
    Posts
    150
    Tried again the way you gave but still no luck
    Code:
    2019-05-06 19:30:09 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
    2019-05-06 19:30:57 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
    2019-05-06 19:31:18 #14016(controller) <1ccygw>; monitored; rspamd_monitored_propagate_error: servfail on resolving dwl.dnswl.org, disable object
    2019-05-06 19:31:18 #14016(controller) <aezujf>; cfg; rspamd_worker_monitored_on_change: broadcast monitored update for 1ccygwo8byjjy64p53ed6j3sxizfgnr: dead
    2019-05-06 19:31:18 #14017(normal) <aezujf>; cfg; rspamd_worker_monitored_handler: updated monitored status for 1ccygwo8byjjy64p53ed6j3sxizfgnr: dead
    2019-05-06 19:31:20 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
    2019-05-06 19:31:28 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
    2019-05-06 19:31:28 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_propagate_error: invalid return on resolving multi.uribl.com, disable object
    2019-05-06 19:31:28 #14016(controller) <aezujf>; cfg; rspamd_worker_monitored_on_change: broadcast monitored update for 3nxzfegumbi67tq1kjtuupxnd493zxt: dead
    2019-05-06 19:31:28 #14017(normal) <aezujf>; cfg; rspamd_worker_monitored_handler: updated monitored status for 3nxzfegumbi67tq1kjtuupxnd493zxt: dead

  15. #15
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    Run each command one by one and control output results. Probably you have errors after any of them. Post last 10-20 lines from each of the following:

    Code:
    ./build exim
    
    
    ./build rspamd
    
    
    ./build exim_conf
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  16. #16
    Join Date
    Nov 2003
    Location
    germany
    Posts
    127
    Hey Alex. Thanks for the great plugin.

    Do you already have experience with the "ALL Servers" to enter other servers there?

    Thanks Mario

  17. #17
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    Hello Mario,

    You're welcome. Not tested yet, so I have nothing to say about it yet. What issues do you have with it?
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  18. #18
    Join Date
    Jul 2013
    Posts
    150
    Just figured out that spamassasin was not enabled for that user


    Sorry for the trouble, everything works fine, thank you Alex for the hard work
    Last edited by Active8; 05-07-2019 at 09:41 AM.

  19. #19
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105
    Thank you for your experience, that's appretiated. It's one more important step to check to on a way to make rspamd running. So we need to check and make sure AntiSpam tools are enabled on per user level in Directadmin.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  20. #20
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,105

    A new version: 0.1.1 released to work with Rspamd 1.9.3+

    A new version: 0.1.1 released to work with Rspamd 1.9.3+


    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •