Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SpamD Package Needs Testers

    Scheduled Pinned Locked Moved pfSense Packages
    80 Posts 13 Posters 37.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sullrich
      last edited by

      Just fixed a few issues, please uninstall and reinstall the package using the reinstall package button on the installed packages screen.

      1 Reply Last reply Reply Quote 0
      • D
        dhipo
        last edited by

        ok …

        i did the reinstall, some above ... and
        system logs show

        Apr 17 18:38:15 spamlogd[27859]: exiting
        Apr 17 18:38:15 spamlogd[27859]: exiting
        Apr 17 18:38:09 spamlogd[27635]: exiting

        an trick
        there are not spamd.conf on /usr/local/etc/spamd only spamd.conf.sample and rename to spamd.conf don´t change anything

        other thing …

        /usr/local/libexec/spamd  -G 15:4:864 -n "Dhix Networks Mail" -c 800 -B 700 -w 1 -r 450 -b 127.0.0.1 &

        this line is in /usr/local/etc/rc.d/spamd.sh and the -r parameter is not reconized ...

        /usr/local/libexec/spamd -G 15:4:864 -n "Dhix Networks Mail" -c 800 -B 700 -w 1 -r 450 -b 127.0.0.1 &
        [1] 30746

        spamd: illegal option – r

        usage: spamd [-45bdv] [-B maxblack] [-c maxcon] [-G passtime:greyexp:whiteexp]
                [-h hostname] [-l address] [-M address] [-n name] [-p port]
                [-S secs] [-s secs] [-w window] [-Y synctarget] [-y synclisten]
                [-t table_no] [-m mode]

        then i changed to -m and it starts

        Dhix Networks
        Everything Secure

        http://www.dhix.com.br

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by

          You need to click save on the settings screen to create the .conf file.

          -r option fixed.

          1 Reply Last reply Reply Quote 0
          • B
            blueivy
            last edited by

            Seems to be working fine here so far.

            The service needs to be restarted when anything is changed on the settings page. Could we have a button (similar to SquidGuard) to reset the service on the spamd pages?

            Could we also have the option to see current whitelist, blacklist etc.?

            Adding the external sources doesn't appear to update the counter in the SpamD database page (at the bottom of the page there is a counter for the number of entries in the database) - I assumed the entries from the external sources would be added to the local database?

            These are suggestions more than anything. Great work on the package. Very much appreciated.

            1 Reply Last reply Reply Quote 0
            • B
              blueivy
              last edited by

              Using an alias in the NextMTA field doesn't appear to work (I have surrounded in quotes as per the instructions). If you tell me the command to view the logs I will tell you the exact error that spamd says (it has vanished from the web view of the log).

              Putting in the IP works fine.

              1 Reply Last reply Reply Quote 0
              • S
                sullrich
                last edited by

                The service does restart after changes:

                mwexec("/usr/local/etc/rc.d/spamd.sh stop");
                mwexec("/usr/local/etc/rc.d/spamd.sh start");

                Still need to convert the crontab code over to the new format.  Will do so shortly.

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by

                  @blueivy:

                  Using an alias in the NextMTA field doesn't appear to work (I have surrounded in quotes as per the instructions). If you tell me the command to view the logs I will tell you the exact error that spamd says (it has vanished from the web view of the log).

                  Putting in the IP works fine.

                  Look in /tmp/rules.debug

                  1 Reply Last reply Reply Quote 0
                  • B
                    blueivy
                    last edited by

                    @sullrich:

                    The service does restart after changes:

                    mwexec("/usr/local/etc/rc.d/spamd.sh stop");
                    mwexec("/usr/local/etc/rc.d/spamd.sh start");

                    Still need to convert the crontab code over to the new format.  Will do so shortly.

                    To get the NextMTA to change first of all from what I had {SBSr} to what I needed {SBS} (I made a typo) resulted in the same error in the logs still mentioning {SBSr}. I restarted the service and the error was being reported with the correct alias.

                    When I changed from {SBS} to the actual IP address the error was still shown in the logs with {SBS}. The way I fixed both of these was to manually restart the service.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dhipo
                      last edited by

                      other log …
                      Apr 17 19:13:39 spamlogd[38948]: Can not open db /var/db/spamd: No such file or directory

                      Dhix Networks
                      Everything Secure

                      http://www.dhix.com.br

                      1 Reply Last reply Reply Quote 0
                      • S
                        sullrich
                        last edited by

                        @blueivy:

                        To get the NextMTA to change first of all from what I had {SBSr} to what I needed {SBS} (I made a typo) resulted in the same error in the logs still mentioning {SBSr}. I restarted the service and the error was being reported with the correct alias.

                        When I changed from {SBS} to the actual IP address the error was still shown in the logs with {SBS}. The way I fixed both of these was to manually restart the service.

                        Aha.  Fix coming up shortly…

                        1 Reply Last reply Reply Quote 0
                        • D
                          dhipo
                          last edited by

                          ops error in package 4.3.3
                          when hiting save button
                          Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/spamd.inc:1) in /usr/local/www/pkg_edit.php on line 35

                          Dhix Networks
                          Everything Secure

                          http://www.dhix.com.br

                          1 Reply Last reply Reply Quote 0
                          • S
                            sullrich
                            last edited by

                            @dhipo:

                            ops error in package 4.3.3
                            when hiting save button
                            Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/spamd.inc:1) in /usr/local/www/pkg_edit.php on line 35

                            Just fixed, thanks.

                            1 Reply Last reply Reply Quote 0
                            • S
                              sullrich
                              last edited by

                              Lets keep this thread to bug reports only.  Only folks who are contributing to the bounty will have a voice for feature additions for obvious reasons and I would like to keep that in the other bounty thread.  Thanks.

                              1 Reply Last reply Reply Quote 0
                              • B
                                blueivy
                                last edited by

                                Change NextMTA back to {SBS} and got the error:

                                ===
                                php: : There were error(s) loading the rules: no IP address found for SBS /tmp/rules.debug:44: could not parse host specification pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [44]: rdr pass on re1 proto tcp from <spamd-white>to port smtp -> {SBS} port smtp

                                SBS is an alias. Changing to the IP address works fine (and the service doesn't appear to need restarted this time).</spamd-white>

                                1 Reply Last reply Reply Quote 0
                                • S
                                  sullrich
                                  last edited by

                                  @blueivy:

                                  Cahnge NextMTA back to {SBS} and got the error:

                                  php: : There were error(s) loading the rules: no IP address found for SBS /tmp/rules.debug:44: could not parse host specification pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [44]: rdr pass on re1 proto tcp from <spamd-white>to port smtp -> {SBS} port smtp

                                  SBS is an alias.

                                  Changing to the IP address works fine (and the service doesn't appear to need restarted this time).</spamd-white>

                                  Show me the header of /tmp/rules.debug where the aliases are set.  you should see something mentioning SBS near the top.

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    blueivy
                                    last edited by

                                    @sullrich:

                                    Show me the header of /tmp/rules.debug where the aliases are set.  you should see something mentioning SBS near the top.

                                    ===

                                    System Aliases

                                    loopback = "{ lo0 }"
                                    lan = "{ re0  }"
                                    wan = "{ re1  }"
                                    enc0 = "{ enc0 }"

                                    User Aliases

                                    SBS = "{ 192.168.10.10 }"

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      sullrich
                                      last edited by

                                      For kicks, add another ip to the alias.  Does the problem go away?

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        blueivy
                                        last edited by

                                        @sullrich:

                                        For kicks, add another ip to the alias.  Does the problem go away?

                                        Afraid not:

                                        ===
                                        php: : There were error(s) loading the rules: no IP address found for SBS /tmp/rules.debug:44: could not parse host specification pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [44]: rdr pass on re1 proto tcp from <spamd-white>to port smtp -> {SBS} port smtp

                                        SBS = "{ 192.168.10.10 192.168.10.101 }"

                                        ===</spamd-white>

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          sullrich
                                          last edited by

                                          Not quite understanding this one.  It works here:

                                          mailservers = "{ 10.0.0.25 10.0.0.26 }"
                                          rdr pass on le1 proto tcp from <spamd-white>to port smtp -> {mailservers} port
                                          smtp

                                          pfctl -f /tmp/rules.debug

                                          #</spamd-white>

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            sullrich
                                            last edited by

                                            Actually I am not too sure the {} business is correct.  Try changing your alias to $aliasname.    $SBS

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.