Gary V napsal(a):
Jiří wrote:
Mark Martinec napsal(a):
Jiří,
I´m trying to run amavisd-new with postfix and nod32 (20030616p10-5) on
debian sarge but with config file from previous installation (it was
amavis version from debian unstable).
Trying to use a newer version of a config file with an older version
of amavisd-new in many cases will cause amavisd-new to fail to start.
The fact that you are able to start up most likely means your
particular settings are still compatible with the older version.
Mar 21 14:44:56 gate amavis[9408]: (09408-03) ESMTP> 451 4.5.0 Error in
processing, id=09408-03, decoding2-get-file-types FAILED: 'file' utility
(/usr/bin/file) failed, status=1 (256 ) at /usr/sbin/amavisd-new line 3853.
Where can be the problem? The amavis stops the emails even if they are
plain text. Manual running of /usr/bin/file on stored email.txt works fine.
Such test should be run as user vscan (or whatever amavisd runs under)
to be able to spot file access/protection violations.
If running chrooted, a test should be done chrooted as well.
Btw, you must not have Net::Server newer than 0.90, which is
the last version compatible with amavisd-new <= 2.3.3
... although I do not think this was your problem.
Mark
How could I learn my version of Net::Server and how to eventually
downgrade it?
Thanks for reply.
If you are running Sarge you are probably using an older version.
You can determine the version by starting amavisd-new in debug mode
and noticing near the beginning of the debug output. Or try:
perl -MNet::Server -e 'print "$Net::Server::VERSION\n";'
The newest version at the moment from Debian is 0.90. If you installed
from CPAN however you may have a newer version. If you did install
from CPAN (or source) and you are using a newer version, you could
simply install 0.90 over the top of the newer version.
cd /usr/local/src
wget http://search.cpan.org/CPAN/authors/id/R/RH/RHANDOM/Net-Server-0.90.tar.gz
tar xzvf Net-Server-0.90.tar.gz
cd Net-Server-0.90
perl Makefile.PL
make && make test && make install
On a Debian system (and probably others) if you install from CPAN (or
source), that is the copy Perl will find first, so any libnet-server-perl
package you install from Debian will from now on be ignored. This is
just for future reference.
Gary V
Here are my debug details. I wasn´t able to find any major error there:
gate:/var/log# amavisd-new debug
Mar 30 11:08:58 gate amavisd-new[25282]: starting. amavisd-new at gate
amavisd-new-20030616-p10, Unicode aware, LANG=en_US
Mar 30 11:08:58 gate amavisd-new[25282]: Perl version 5.008004
Mar 30 11:08:58 gate amavisd-new[25282]: Module Amavis::Conf 1.15
Mar 30 11:08:58 gate amavisd-new[25282]: Module Archive::Tar 1.29
Mar 30 11:08:58 gate amavisd-new[25282]: Module Archive::Zip 1.16
Mar 30 11:08:58 gate amavisd-new[25282]: Module Compress::Zlib 1.41
Mar 30 11:08:58 gate amavisd-new[25282]: Module Convert::TNEF 0.17
Mar 30 11:08:58 gate amavisd-new[25282]: Module Convert::UUlib 1.06
Mar 30 11:08:58 gate amavisd-new[25282]: Module DB_File 1.808
Mar 30 11:08:58 gate amavisd-new[25282]: Module MIME::Entity 5.420
Mar 30 11:08:58 gate amavisd-new[25282]: Module MIME::Parser 5.420
Mar 30 11:08:58 gate amavisd-new[25282]: Module MIME::Tools 5.420
Mar 30 11:08:58 gate amavisd-new[25282]: Module Mail::Header 1.74
Mar 30 11:08:58 gate amavisd-new[25282]: Module Mail::Internet 1.74
Mar 30 11:08:58 gate amavisd-new[25282]: Module Mail::SpamAssassin 3.000003
Mar 30 11:08:58 gate amavisd-new[25282]: Module Net::Cmd 2.26
Mar 30 11:08:58 gate amavisd-new[25282]: Module Net::DNS 0.57
Mar 30 11:08:58 gate amavisd-new[25282]: Module Net::SMTP 2.29
Mar 30 11:08:58 gate amavisd-new[25282]: Module Net::Server 0.91
Mar 30 11:08:58 gate amavisd-new[25282]: Module Time::HiRes 1.87
Mar 30 11:08:58 gate amavisd-new[25282]: Module Unix::Syslog 0.99
Mar 30 11:08:58 gate amavisd-new[25282]: Found myself:
/usr/sbin/amavisd-new -c /etc/amavis/amavisd.conf
Mar 30 11:08:58 gate amavisd-new[25282]: Lookup::SQL code NOT loaded
Mar 30 11:08:58 gate amavisd-new[25282]: Lookup::LDAP code NOT loaded
Mar 30 11:08:58 gate amavisd-new[25282]: AMCL-in protocol code NOT loaded
Mar 30 11:08:58 gate amavisd-new[25282]: SMTP-in protocol code loaded
Mar 30 11:08:58 gate amavisd-new[25282]: ANTI-VIRUS code loaded
Mar 30 11:08:58 gate amavisd-new[25282]: ANTI-SPAM code loaded
Mar 30 11:08:58 gate amavisd-new[25282]: Net::Server:
2006/03/30-11:08:58 Amavis (type Net::Server::PreForkSimple) starting!
pid(25282)
Mar 30 11:08:58 gate amavisd-new[25282]: Net::Server: Binding to TCP
port 10024 on host 127.0.0.1
Mar 30 11:08:58 gate amavisd-new[25282]: Net::Server: Setting gid to
"109 109"
Mar 30 11:08:58 gate amavisd-new[25282]: Net::Server: Setting uid to "107"
Mar 30 11:08:58 gate amavisd-new[25282]: Net::Server: Setting up
serialization via flock
Mar 30 11:08:58 gate amavisd-new[25282]: Found $file at /usr/bin/file
Mar 30 11:08:58 gate amavisd-new[25282]: No $arc, not using it
Mar 30 11:08:58 gate amavisd-new[25282]: Found $gzip at /bin/gzip
Mar 30 11:08:58 gate amavisd-new[25282]: Found $bzip2 at /usr/bin/bzip2
Mar 30 11:08:58 gate amavisd-new[25282]: No $lzop, not using it
Mar 30 11:08:58 gate amavisd-new[25282]: No $lha, not using it
Mar 30 11:08:58 gate amavisd-new[25282]: No $unarj, not using it
Mar 30 11:08:58 gate amavisd-new[25282]: Found $uncompress at
/bin/uncompress
Mar 30 11:08:58 gate amavisd-new[25282]: No $unfreeze, not using it
Mar 30 11:08:58 gate amavisd-new[25282]: No $unrar, not using it
Mar 30 11:08:58 gate amavisd-new[25282]: No $zoo, not using it
Mar 30 11:08:58 gate amavisd-new[25282]: Found $cpio at /bin/cpio
Mar 30 11:08:58 gate amavisd-new[25282]: Found primary av scanner ESET
Software NOD32 Command Line Interface v 2.51 at /usr/sbin/nod32
Mar 30 11:08:58 gate amavisd-new[25282]: No secondary av scanner: Clam
Antivirus - clamscan
Mar 30 11:08:58 gate amavisd-new[25282]: SpamControl: initializing
Mail::SpamAssassin
debug: SpamAssassin version 3.0.3
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: Final PATH set to:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin
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: config: read file /usr/share/spamassassin/65_debian.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
debug: using "/var/lib/amavis/.spamassassin/user_prefs" for user prefs file
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x96e5db8)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x96fa66c)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x96d65cc)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x96e5db8)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x96fa66c)
implements 'parse_config'
debug: bayes: 25282 tie-ing to DB file R/O
/var/lib/amavis/.spamassassin/bayes_toks
debug: bayes: 25282 tie-ing to DB file R/O
/var/lib/amavis/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200
debug: bayes: 25282 untie-ing
debug: bayes: 25282 untie-ing db_toks
debug: bayes: 25282 untie-ing db_seen
debug: Score set 0 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: 25282 tie-ing to DB file R/O
/var/lib/amavis/.spamassassin/bayes_toks
debug: bayes: 25282 tie-ing to DB file R/O
/var/lib/amavis/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200
debug: bayes: 25282 untie-ing
debug: bayes: 25282 untie-ing db_toks
debug: bayes: 25282 untie-ing db_seen
debug: metadata: X-Spam-Relays-Trusted:
debug: metadata: X-Spam-Relays-Untrusted:
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x96e5db8)
implements 'parsed_metadata'
debug: is DNS available? 0
debug: decoding: no encoding detected
debug: Running tests for priority: 0
debug: running header regexp tests; score so far=0
debug: registering glue method for check_hashcash_double_spend
(Mail::SpamAssassin::Plugin::Hashcash=HASH(0x96fa66c))
debug: all '*From' addrs: [EMAIL PROTECTED]
debug: registering glue method for check_hashcash_value
(Mail::SpamAssassin::Plugin::Hashcash=HASH(0x96fa66c))
debug: all '*To' addrs:
debug: running body-text per-line regexp tests; score so far=-2.276
debug: running uri tests; score so far=-2.276
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x96e5db8)
implements 'check_tick'
debug: running raw-body-text per-line regexp tests; score so far=-2.276
debug: running full-text regexp tests; score so far=-2.276
debug: Running tests for priority: 500
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x96e5db8)
implements 'check_post_dnsbl'
debug: running meta tests; score so far=-2.276
debug: running header regexp tests; score so far=-1.167
debug: running body-text per-line regexp tests; score so far=-1.167
debug: running uri tests; score so far=-1.167
debug: running raw-body-text per-line regexp tests; score so far=-1.167
debug: running full-text regexp tests; score so far=-1.167
debug: Running tests for priority: 1000
debug: running meta tests; score so far=-1.167
debug: running header regexp tests; score so far=-1.167
debug: lock: 25282 created
/var/lib/amavis/.spamassassin/auto-whitelist.lock.gate.sps-pi.cz.25282
debug: lock: 25282 trying to get lock on
/var/lib/amavis/.spamassassin/auto-whitelist with 0 retries
debug: lock: 25282 link to
/var/lib/amavis/.spamassassin/auto-whitelist.lock: link ok
debug: Tie-ing to DB file R/W in
/var/lib/amavis/.spamassassin/auto-whitelist
debug: auto-whitelist (db-based):
[EMAIL PROTECTED]|ip=none scores 0/0
debug: AWL active, pre-score: -1.167, autolearn score: -1.167, mean:
undef, IP: undef
debug: DB addr list: untie-ing and unlocking.
debug: DB addr list: file locked, breaking lock.
debug: unlock: 25282 unlink
/var/lib/amavis/.spamassassin/auto-whitelist.lock
debug: Post AWL score: -1.167
debug: running body-text per-line regexp tests; score so far=-1.167
debug: running uri tests; score so far=-1.167
debug: running raw-body-text per-line regexp tests; score so far=-1.167
debug: running full-text regexp tests; score so far=-1.167
debug: is spam? score=-1.167 required=5
debug: tests=ALL_TRUSTED,MISSING_SUBJECT,NO_REAL_NAME
debug:
subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__SANE_MSGID,__UNUSABLE_MSGID
Mar 30 11:08:59 gate amavisd-new[25282]: SpamControl: done
Mar 30 11:08:59 gate amavisd-new[25282]: Net::Server: Beginning prefork
(2 processes)
Mar 30 11:08:59 gate amavisd-new[25282]: Net::Server: Starting "2" children
Mar 30 11:08:59 gate amavisd-new[25283]: Net::Server: Child Preforked
(25283)
Mar 30 11:08:59 gate amavisd-new[25284]: Net::Server: Child Preforked
(25284)
Mar 30 11:08:59 gate amavisd-new[25282]: Net::Server: Parent ready for
children.
Thanks for help
Jiri
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/