Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Changing spamd rules in cli

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 1 Posters 797 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.
    • D Offline
      dannyboy1121
      last edited by

      Hi folks,

      I'd been using spamd for a couple of years on my pfsense (2.0.1) VM without any issues. Recently I had to change the setup and move the default gateway (rather than traffic flowing in/out the net via another router, I configured pppoe directly form the box -> modem).

      At this point spamd ceased to work.

      I suspected that the package hadn't dealt with the change in interface well so removed & reinstalled it. Still wouldn't work.

      pfstl -sn

      … showed that the spamd rules were in place (not visible from the GUI) but still set up to forward from the old interface not the new one, in spite of reinstalling.

      As a temporary fix, I amended /tmp/rules.debug so that the rule matched the new interface and ran

      pfctl -f /tmp/rules.debug

      So it's working again but I suspect that this will have to be amended after reboot. But I can't seem to find where spamd maintains / generates the rule set in order to switch the interface?

      Does anyone know how I would configure the firewall rules to make this permanent? I ran viconfig but couldn't find them in there either.

      scratches head

      1 Reply Last reply Reply Quote 0
      • D Offline
        dannyboy1121
        last edited by

        Does anyone have any ideas where these rules are generated from? It appears that my temporary fix is even more temporary than I was hoping.

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