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

    /usr/bin/ftp required for spamd but missing

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 3.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.
    • R
      rcarr
      last edited by

      I installed the spamd pkg.  However, it looks like it isn't updating the blacklists and whitelists:

      spamd-setup -d

      whitelist whitelist 9 entries
      blacklist blacklist 0 entries
      Getting http://www.openbsd.org/spamd/traplist.gz
      blacklist U-of-A-Traplist 0 entries
      Getting http://www.openbsd.org/spamd/chinacidr.txt.gz
      blacklist China-CIDR 0 entries
      Getting http://www.openbsd.org/spamd/koreacidr.txt.gz
      blacklist Korea-CIDR 0 entries
      Getting http://www.openbsd.org/spamd/spews_list_level1.txt.gz
      blacklist Spews-Level-1 0 entries
      Getting http://www.dnswl.org/data/rbldnsd-dnswl
      whitelist DNSWL 0 entries

      I discovered this post

      http://lists.soekris.com/pipermail/soekris-tech/2005-September/009265.html

      where a user experiences something similar.  He discovers the problem is that spamd needs ftp.

      http://lists.soekris.com/pipermail/soekris-tech/2005-September/009273.html

      ftp is not present on my full install of pfsense.  To test the ftp theory, I did:

      cd /usr/local/bin

      ln -s ./fetch ftp

      spamd-setup -d

      whitelist whitelist 9 entries
      blacklist blacklist 0 entries
      Getting http://www.openbsd.org/spamd/traplist.gz
      ftp: illegal option – V
      usage: fetch [-146AFMPRUadlmnpqrsv] [-N netrc] [-o outputfile]
                  [-S bytes] [-B bytes] [-T seconds] [-w seconds]
                  [-h host -f file [-c dir] | URL …]
      blacklist U-of-A-Traplist 0 entries
      Getting http://www.openbsd.org/spamd/chinacidr.txt.gz
      ftp: illegal option -- V
      usage: fetch [-146AFMPRUadlmnpqrsv] [-N netrc] [-o outputfile]
                  [-S bytes] [-B bytes] [-T seconds] [-w seconds]
                  [-h host -f file [-c dir] | URL …]
      blacklist China-CIDR 0 entries
      Getting http://www.openbsd.org/spamd/koreacidr.txt.gz
      ftp: illegal option -- V
      usage: fetch [-146AFMPRUadlmnpqrsv] [-N netrc] [-o outputfile]
                  [-S bytes] [-B bytes] [-T seconds] [-w seconds]
                  [-h host -f file [-c dir] | URL …]
      blacklist Korea-CIDR 0 entries
      Getting http://www.openbsd.org/spamd/spews_list_level1.txt.gz
      ftp: illegal option -- V
      usage: fetch [-146AFMPRUadlmnpqrsv] [-N netrc] [-o outputfile]
                  [-S bytes] [-B bytes] [-T seconds] [-w seconds]
                  [-h host -f file [-c dir] | URL …]
      blacklist Spews-Level-1 0 entries
      Getting http://www.dnswl.org/data/rbldnsd-dnswl
      ftp: illegal option -- V
      usage: fetch [-146AFMPRUadlmnpqrsv] [-N netrc] [-o outputfile]
                  [-S bytes] [-B bytes] [-T seconds] [-w seconds]
                  [-h host -f file [-c dir] | URL …]
      whitelist DNSWL 0 entries

      Clearly, spamd-setup wants to use /usr/bin/ftp.  Isn't it supposed to be part of pfsense's FreeBSD 6 distro?

      I can't pkg_add it, since it's supposed to be part of the base system.  Is there somewhere I can get this?

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

        You can fetch it from http://www.pfsense.com/~sullrich/extra/ftp

        I have added it to the default installation going forward.

        1 Reply Last reply Reply Quote 0
        • R
          rcarr
          last edited by

          Thanks very much!  I appreciate it.

          1 Reply Last reply Reply Quote 0
          • R
            rcarr
            last edited by

            That fixed it.  Thanks again, Scott.

            spamd-setup -d

            whitelist whitelist 10 entries
            blacklist blacklist 1 entries
            Getting http://www.openbsd.org/spamd/traplist.gz
            blacklist U-of-A-Traplist 32928 entries
            Getting http://www.openbsd.org/spamd/chinacidr.txt.gz
            blacklist China-CIDR 431 entries
            Getting http://www.openbsd.org/spamd/koreacidr.txt.gz
            blacklist Korea-CIDR 270 entries
            Getting http://www.openbsd.org/spamd/spews_list_level1.txt.gz
            blacklist Spews-Level-1 14482 entries
            whitelist DNSWL 19619 entries

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

              Good deal!

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