You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by jamluv <ja...@hotmail.com> on 2006/06/22 10:40:03 UTC

Spamassassin fail to start invalid option a

I upgraded to spamassassin 3.0.0 on RH9 but despite an error free install, it
cant start it give the error: invalid option a Failled. When I start spamd
with the D option i get this:

trying to connect to syslog/unix...
no error connecting to syslog/unix
logging enabled:
        facility: mail
        socket:   unix
        output:   syslog
creating INET socket:
        Listen: 128
        LocalAddr: 127.0.0.1
        LocalPort: 783
        Proto: 6
        ReuseAddr: 1
        Type: 1
debug: SpamAssassin version 3.0.0
debug: Score set 0 chosen.
debug: Storable module v2.06 found
debug: Preloading modules with HOME=/tmp/spamd-9618-init
debug: ignore: test message to precompile patterns and load modules
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b9674c)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8b74940)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b9674c)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
inhibited further callbacks
debug: bayes: no dbs present, cannot tie DB R/O:
/tmp/spamd-9618-init/.spamassassin/bayes_toks
debug: Score set 1 chosen.
debug: ---- MIME PARSER START ----
debug: main message type: text/plain
debug: parsing normal part
debug: added part, type: text/plain
debug: ---- MIME PARSER END ----
debug: bayes: no dbs present, cannot tie DB R/O:
/tmp/spamd-9618-init/.spamassassin/bayes_toks
debug: metadata: X-Spam-Relays-Trusted:
debug: metadata: X-Spam-Relays-Untrusted:
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
implements 'parsed_metadata'
debug: is Net::DNS::Resolver available? yes
debug: Net::DNS version: 0.34
debug: trying (3) sun.com...
debug: looking up NS for 'sun.com'
debug: NS lookup of sun.com succeeded => Dns available (set dns_available to
hardcode)
debug: is DNS available? 1
debug: decoding: no encoding detected
debug: URIDNSBL: domains to query:
debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
debug: Running tests for priority: 0
debug: running header regexp tests; score so far=0
debug: registering glue method for check_uridnsbl
(Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4))
debug: registering glue method for check_hashcash_double_spend
(Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b9674c))
debug: registering glue method for check_for_spf_helo_pass
(Mail::SpamAssassin::Plugin::SPF=HASH(0x8b74940))
debug: SPF: message was delivered entirely via trusted relays, not required
debug: registering glue method for check_hashcash_value
(Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b9674c))
debug: all '*To' addrs:
debug: registering glue method for check_for_spf_softfail
(Mail::SpamAssassin::Plugin::SPF=HASH(0x8b74940))
debug: SPF: message was delivered entirely via trusted relays, not required
debug: registering glue method for check_for_spf_pass
(Mail::SpamAssassin::Plugin::SPF=HASH(0x8b74940))
debug: registering glue method for check_for_spf_helo_softfail
(Mail::SpamAssassin::Plugin::SPF=HASH(0x8b74940))
debug: registering glue method for check_for_spf_helo_fail
(Mail::SpamAssassin::Plugin::SPF=HASH(0x8b74940))
debug: running body-text per-line regexp tests; score so far=-2.623
debug: running uri tests; score so far=-2.623
debug: Razor2 is not available
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
implements 'check_tick'
debug: running raw-body-text per-line regexp tests; score so far=-2.623
debug: running full-text regexp tests; score so far=-2.623
debug: Razor2 is not available
debug: Current PATH is:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
debug: Pyzor is not available: pyzor not found
debug: DCCifd is not available: no r/w dccifd socket found.
debug: DCC is not available: no executable dccproc found.
debug: Running tests for priority: 500
debug: RBL: success for 1 of 1 queries
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x83cb0e4)
implements 'check_post_dnsbl'
debug: running meta tests; score so far=-2.623
debug: running header regexp tests; score so far=-1.053
debug: running body-text per-line regexp tests; score so far=-1.053
debug: running uri tests; score so far=-1.053
debug: running raw-body-text per-line regexp tests; score so far=-1.053
debug: running full-text regexp tests; score so far=-1.053
debug: Running tests for priority: 1000
debug: running meta tests; score so far=-1.053
debug: running header regexp tests; score so far=-1.053
debug: lock: 9618 created
/tmp/spamd-9618-init/.spamassassin/auto-whitelist.lock.mwll03.deloitte.co.mw.9618
debug: lock: 9618 trying to get lock on
/tmp/spamd-9618-init/.spamassassin/auto-whitelist with 0 retries
debug: lock: 9618 link to
/tmp/spamd-9618-init/.spamassassin/auto-whitelist.lock: link ok
debug: Tie-ing to DB file R/W in
/tmp/spamd-9618-init/.spamassassin/auto-whitelist
debug: auto-whitelist (db-based):
ignore@compiling.spamassassin.taint.org|ip=none scores 0/0
debug: AWL active, pre-score: -1.053, autolearn score: -1.053, mean: undef,
IP: undef
debug: DB addr list: untie-ing and unlocking.
debug: DB addr list: file locked, breaking lock.
debug: unlock: 9618 unlink
/tmp/spamd-9618-init/.spamassassin/auto-whitelist.lock
debug: Post AWL score: -1.053
debug: running body-text per-line regexp tests; score so far=-1.053
debug: running uri tests; score so far=-1.053
debug: running raw-body-text per-line regexp tests; score so far=-1.053
debug: running full-text regexp tests; score so far=-1.053
debug: is spam? score=-1.053 required=5
debug: tests=ALL_TRUSTED,MISSING_DATE,MISSING_SUBJECT,NO_REAL_NAME
debug:
subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__SANE_MSGID,__UNUSABLE_MSGID
server started on port 783/tcp (running version 3.0.0)
logmsg: server started on port 783/tcp (running version 3.0.0)
logmsg: server successfully spawned child process, pid 9620
logmsg: server successfully spawned child process, pid 9621
logmsg: server successfully spawned child process, pid 9622
logmsg: server successfully spawned child process, pid 9623
logmsg: server successfully spawned child process, pid 9624
server pid: 9618

and it stops there.
I have tried to experiment with different versions of SA, V3.0.6 does the
same, V3.1.1 stops on this: Periodic ping from spamd, waiting 300 sec and
the message loops indefinetly.
--
View this message in context: http://www.nabble.com/Spamassassin-fail-to-start-invalid-option-a-t1828932.html#a4989309
Sent from the SpamAssassin - Users forum at Nabble.com.


Re: Spamassassin fail to start invalid option a

Posted by David Goldsmith <dg...@sans.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jamluv wrote:
> spamc isnt running at all. when i type spamc 2>&1|tee /tmp/error.log it
> doesnt give any errors in error.log, the prompt just remains blank until i
> pres ctrl+c.

spamc is waiting for input.  Change the way you call it to be:

spamc < [some file with email] 2>&1 | tee /tmp/error.log

Dave
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3rc2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmp7F417vU8/9QfkRAogpAJ95QCDVgSP0n/dmeFlWcOwOPnvsCACeLTzJ
EFhWIVANimOD8DR0IcM0BKk=
=fB7a
-----END PGP SIGNATURE-----

Re: Spamassassin fail to start invalid option a

Posted by jdow <jd...@earthlink.net>.
From: "jamluv" <ja...@hotmail.com>
> 
> Thanks it worked!!!!!, it was the spamd options in
> etc/sysconfig/spamassassin. i just removed the -a. can i have a cup of
> coffee now?

Only if incoming email is being spam checked by SpamAssassin - exactly
once.

{^_-}

Re: Spamassassin fail to start invalid option a

Posted by jamluv <ja...@hotmail.com>.
Thanks it worked!!!!!, it was the spamd options in
etc/sysconfig/spamassassin. i just removed the -a. can i have a cup of
coffee now?
--
View this message in context: http://www.nabble.com/Spamassassin-fail-to-start-invalid-option-a-t1828932.html#a4993600
Sent from the SpamAssassin - Users forum at Nabble.com.


Re: Spamassassin fail to start invalid option a

Posted by jdow <jd...@earthlink.net>.
From: "jamluv" <ja...@hotmail.com>
> 
> spamc isnt running at all. when i type spamc 2>&1|tee /tmp/error.log it
> doesnt give any errors in error.log, the prompt just remains blank until i
> pres ctrl+c.

It would help to give spamc some input.

"spamc <testemail"

How does your email setup fall together? Mail comes into your system
somehow. What program is involved? What programs does that program
invoke to filter and deliver mail. It sounds like you are on the
nether end of the learning curve here.

{^_^}

Re: Spamassassin fail to start invalid option a

Posted by jamluv <ja...@hotmail.com>.
spamc isnt running at all. when i type spamc 2>&1|tee /tmp/error.log it
doesnt give any errors in error.log, the prompt just remains blank until i
pres ctrl+c.
--
View this message in context: http://www.nabble.com/Spamassassin-fail-to-start-invalid-option-a-t1828932.html#a4993232
Sent from the SpamAssassin - Users forum at Nabble.com.


Re: Spamassassin fail to start invalid option a

Posted by JamesDR <ro...@bellsouth.net>.
jamluv wrote:
> i did read the readme, install, upgrade and i got all that. but i assumed
> being a clean installation, the new spamassassin script should call spamd
> properly. However besides that you can see that even if i manually call
> spamd without the a option, it doesnt start. see the output.
> --
> View this message in context: http://www.nabble.com/Spamassassin-fail-to-start-invalid-option-a-t1828932.html#a4989906
> Sent from the SpamAssassin - Users forum at Nabble.com.
> 
> 
I may have missed it, but what are all of the command line options you 
are sending to SpamD? And are you sure you aren't using SpamC? The 
normal spamassassin script doesn't call SpamD. SpamC is the tool to use 
to send mails to SpamD. Also, post the command line options for SpamC as 
well (may help in showing why it isn't working like you think it should.)

-- 
Thanks,
JamesDR

Re: Spamassassin fail to start invalid option a

Posted by jamluv <ja...@hotmail.com>.
i did read the readme, install, upgrade and i got all that. but i assumed
being a clean installation, the new spamassassin script should call spamd
properly. However besides that you can see that even if i manually call
spamd without the a option, it doesnt start. see the output.
--
View this message in context: http://www.nabble.com/Spamassassin-fail-to-start-invalid-option-a-t1828932.html#a4989906
Sent from the SpamAssassin - Users forum at Nabble.com.


Re: Spamassassin fail to start invalid option a

Posted by Matt Kettler <mk...@comcast.net>.
jamluv wrote:
> I upgraded to spamassassin 3.0.0 on RH9 but despite an error free install, it
> cant start it give the error: invalid option a Failled. When I start spamd
> with the D option i get this:
>
>   

The -a command-line parameter was removed and is now replaced by a
config-file option use_auto_whitelist.

Please read the UPGRADE file that comes with SA 3.0.0, this covers most
of the common configuration changes you need to be aware of. In the
future, when upgrading be sure to read the file before installing..

http://spamassassin.apache.org/full/3.0.x/dist/UPGRADE