First, you will have to change the port spamd uses since only root accounts can attach to port numbers < 1024.
Second, check the rights to ALL the spamassassin files. Spamd must be able to read, and sometimes write to all the configs, databases, etc. Third... Oh, forget it. Just run spamd as root and use iptables to only allow access to port 783 from 127.0.0.1 and you're about as secure as you're going to get. My $0.02. -Michael >>> Kim Bisgaard <[EMAIL PROTECTED]> 06/17/03 07:45AM >>> Hi, I am trying to run spamd a non-root user. I am using global SA filtering, and run both spamd and spamc as the same user. The problem is that I get a log of errors in the log and I do not know what I have done to get them there (I am not a Perl expert!). First I get a lot of errors when I start spamd (Only the start and end shown here - there are a lot!): Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: auto_report_threshold 30 Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase_highest_score 38220 Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 38220 temple kiff Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 36580 kathmandu temple Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 35770 million mails Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 35710 subject remove Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 33060 further mailings Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 29530 seventh heaven Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 28870 profiled companies Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 28270 removeyou com Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 28230 mailings please Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 26350 never receive Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 16553 click here Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 9903 removed from Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 9793 that you Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 9791 you not Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 8401 for your Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 8294 from our Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 8113 credit card Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 7509 the internet Jun 16 14:16:43 postoffice spamd[7763]: debug: Failed to parse line in SpamAssassin configuration, skipping: spamphrase 7237 help you Jun 16 14:16:43 postoffice spamd[7763]: Failed to run BALANCE_FOR_LONG SpamAssassin test, skipping: ^I(Can't locate object method "check_for_very_long_text" via pack age "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus .pm line 2086. ) Jun 16 14:16:43 postoffice spamd[7763]: debug: running raw-body-text per-line regexp tests; score so far=0.8 Jun 16 14:16:43 postoffice spamd[7763]: debug: running uri tests; score so far=0.4 Jun 16 14:16:43 postoffice spamd[7763]: debug: uri tests: Done uriRE Jun 16 14:16:43 postoffice spamd[7763]: Bareword found where operator expected at /usr/share/spamassassin/20_uri_tests.cf, rule DAILY_PL, line 11, near "25FREEMEGS_U RL_uri_test" Jun 16 14:16:43 postoffice spamd[7763]: ^I(Missing operator before FREEMEGS_URL_uri_test?) Jun 16 14:16:43 postoffice spamd[7763]: Bareword found where operator expected at /usr/share/spamassassin/20_uri_tests.cf, rule E_MAILPROMO_URL, line 172, near "25FR EEMEGS_URL_uri_test" Jun 16 14:16:43 postoffice spamd[7763]: ^I(Missing operator before FREEMEGS_URL_uri_test?) Jun 16 14:16:43 postoffice spamd[7763]: Failed to compile URI SpamAssassin tests, skipping: ^I(syntax error at /usr/share/spamassassin/20_uri_tests.cf, rule E_MAILPR OMO_URL, line 172, near "25FREEMEGS_URL_uri_test" syntax error at /usr/share/spamassassin/20_uri_tests.cf, rule E_MAILPROMO_URL, line 190, near "; }" ) Jun 16 14:16:43 postoffice spamd[7763]: debug: running full-text regexp tests; score so far=0.4 Jun 16 14:16:43 postoffice spamd[7763]: Failed to run RAZOR_CHECK SpamAssassin test, skipping: ^I(Can't locate object method "check_razor" via package "Mail::SpamAss assin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2086. ) Jun 16 14:16:43 postoffice spamd[7763]: Failed to run BASE64_ENC_TEXT SpamAssassin test, skipping: ^I(Can't locate object method "check_for_base64_enc_text" via pack age "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus .pm line 2086. ) Jun 16 14:16:43 postoffice spamd[7763]: Failed to run FROM_AND_TO_SAME SpamAssassin test, skipping: ^I(Can't locate object method "check_for_from_to_equivalence" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgS tatus.pm line 2086. ) Jun 16 14:16:43 postoffice spamd[7763]: debug: all '*To' addrs: Jun 16 14:16:43 postoffice spamd[7763]: Failed to run SUBJ_MISSING SpamAssassin test, skipping: ^I(Can't locate object method "subject_missing" via package "Mail::Sp amAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2086 . ) Jun 16 14:16:43 postoffice spamd[7763]: Failed to run FROM_NAME_EQ_FROM_ADDR SpamAssassin test, skipping: ^I(Can't locate object method "check_from_name_eq_from_addr ess" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin /PerMsgStatus.pm line 2086. ) Jun 16 14:16:43 postoffice spamd[7763]: Failed to run DIFFERENT_REPLY_TO sed to parse line in SpamAss SpamAssassin test, skipping: ^I(Can't locate object method "check_for_spam_reply_to" via pac kage "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatu s.pm line 2086. ) I also get some at each mail-filtereing: Jun 17 11:17:13 postoffice spamd[28407]: Bareword found where operator expected at /usr/share/spamassassin/20_uri_tests.cf, rule E_MAILPROMO_URL, line 172, near "25F REEMEGS_URL_uri_test" Jun 17 11:17:13 postoffice spamd[28407]: ^I(Missing operator before FREEMEGS_URL_uri_test?) Jun 17 11:17:13 postoffice spamd[28407]: Failed to compile URI SpamAssassin tests, skipping: ^I(syntax error at /usr/share/spamassassin/20_uri_tests.cf, rule E_MAILP ROMO_URL, line 172, near "25FREEMEGS_URL_uri_test" syntax error at /usr/share/spamassassin/20_uri_tests.cf, rule E_MAILPROMO_URL, line 190, near "; }" ) Jun 17 11:17:13 postoffice spamd[28407]: debug: running full-text regexp tests; score so far=15.8 Jun 17 11:17:13 postoffice spamd[28407]: Failed to run RAZOR_CHECK SpamAssassin test, skipping: ^I(Can't locate object method "check_razor" via package "Mail::SpamAs sassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2086, <G EN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run BASE64_ENC_TEXT SpamAssassin test, skipping: ^I(Can't locate object method "check_for_base64_enc_text" via pac kage "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatu s.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run FROM_AND_TO_SAME SpamAssassin test, skipping: ^I(Can't locate object method "check_for_from_to_equivalence" vi a package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsg Status.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: debug: all '*To' addrs: [EMAIL PROTECTED] Jun 17 11:17:13 postoffice spamd[28407]: Failed to run SUBJ_MISSING SpamAssassin test, skipping: ^I(Can't locate object method "subject_missing" via package "Mail::S pamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 208 6, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run FROM_NAME_EQ_FROM_ADDR SpamAssassin test, skipping: ^I(Can't locate object method "check_from_name_eq_from_add ress" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassi n/PerMsgStatus.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run DIFFERENT_REPLY_TO SpamAssassin test, skipping: ^I(Can't locate object method "check_for_spam_reply_to" via pa ckage "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStat us.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run CTYPE_JUST_HTML SpamAssassin test, skipping: ^I(Can't locate object method "check_for_content_type_just_html" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerM sgStatus.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: debug: all '*From' addrs: [EMAIL PROTECTED] Jun 17 11:17:13 postoffice spamd[28407]: Failed to run DATE_IN_FUTURE SpamAssassin test, skipping: ^I(Can't locate object method "check_for_forward_date" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run KNOWN_BAD_DIALUPS SpamAssassin test, skipping: ^I(Can't locate object method "check_for_bad_dialup_ips" via pa ckage "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStat us.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run NO_MX_FOR_FROM SpamAssassin test, skipping: ^I(Can't locate object method "check_for_from_mx" via package "Mai l::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2086, <GEN64> line 166. ) Jun 17 11:17:13 postoffice spamd[28407]: Failed to run ROUND_THE_WORLD SpamAssassin test, skipping: ^I(Can't locate object method "check_for_round_the_world_received " via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Pe rMsgStatus.pm line 2086, <GEN64> line 166. ) I hope somebody on the list can direct me to the solution. Best regrads, -- Mr. Kim Bisgaard Oersted Science Data Center Solar-Terrestrial Physics Division Phone: +45 3915 7495 (direct) Danish Meteorological Institute Fax: +45 3915 7460 (division) http://www.dmi.dk/solar-terrestrial/ -- Division homepage http://www.dmi.dk/projects/oersted/ -- Oersted Satellite http://www.dmi.dk/projects/wdcc1/ -- WDC C1 for geo-magnetism These are our official Web addresses - ignore any change in the server name which may occur while browsing this site. Unfortunately, these pages are not reachable via links from the main institute pages - http://www.dmi.dk ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk