[AMaViS-user] (!!)TROUBLE in check_mail, but must continue (1)
Hello, Acutally I run a postfix 2.5.4 and amavisd-new 2.5.4 on a centos 4 box. We got these error : /(!!)TROUBLE in check_mail, but must continue (1): main_log_entry FAILED: Can't use stri ng (1) as a HASH ref while strict refs in use at /usr/sbin/amavisd line 3134, GEN78 line 648. /In our logs, mails are scanned with no problem but this warning is very annoying because all of the amavis temporary directories are not suppressed : /(!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20090629T105243-24158 / I can't see what is the problem, it seems that it's in fish_out_ip_from_received function on this line: /for (grep {defined} (@$fields_ref{qw(from-tcp from from-com)}))/ Here is a sample of amavisd.conf file to help: /use strict; $max_servers = 20;# num of pre-forked children (2..15 is common), -m $daemon_user = amavis; # (no default; customary: vscan or amavis), -u $daemon_group = amavis; # (no default; customary: vscan or amavis), -g $insert_received_line = 0;# don't behave like MTA: don't insert 'Received:' header $mydomain = 'domain.com'; # a convenient default for other settings $TEMPBASE = $MYHOME/tmp; # working directory, needs to exist, -T $ENV{TMPDIR} = $TEMPBASE;# environment variable TMPDIR, used by SA, etc. $QUARANTINEDIR = /var/virusmails; $db_home = $MYHOME/db; # dir for bdb nanny/cache/snmp databases, -D $log_level = 2; # verbosity 0..5, -d $log_recip_templ = undef;# disable by-recipient level-0 log entries $DO_SYSLOG = 1; # log via syslogd (preferred) $syslog_facility = 'mail'; # Syslog facility as a string # e.g.: mail, daemon, user, local0, ... local7 $syslog_priority = 'debug'; # Syslog base (minimal) priority as a string, $enable_db = 1; # enable use of BerkeleyDB/libdb (SNMP and nanny) $enable_global_cache = 1;# enable use of libdb-based cache if $enable_db=1 $nanny_details_level = 1;# nanny verbosity: 1: traditional, 2: detailed @lookup_sql_dsn = ( ['DBI:mysql:database=Toto;host=127.0.0.1;port=3306', 'toto', 'toto'] ); $sql_select_policy = 'SELECT IF(do.do_antispam=\'Y\', \'N\', IF(ut.ut_antis=\'Y\', \'N\', \'Y\')) as bypass_spam_checks,' . ' IF(do.do_antiv=\'Y\', \'N\', IF(ut.ut_antiv=\'Y\', \'N\', \'Y\')) as bypass_virus_checks,' . ' ut_id as id'. ' FROM utilisateurs ut, domaines do' . ' WHERE ut.do_id=do.do_id AND ut.ut_nomboite = SUBSTRING_INDEX(%a,\'@\',1) AND do.do_nom = SUBSTRING_INDEX(%a,\'@\',-1)'; $sql_select_white_black_list = undef; @local_domains_maps = ( [.$mydomain] ); # list of all local domains @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 ); $unix_socketname = $MYHOME/amavisd.sock; $inet_socket_port = [10024,10026,10040]; # listen on multiple TCP ports $interface_policy{'10026'} = 'ARCHIVE-SMTP'; $interface_policy{'10040'} = 'RELAY-SMTP'; # Configuration Amavis en ARCHIVE SMTP $policy_bank{'ARCHIVE-SMTP'} = { log_level = 5, }; $policy_bank{'RELAY-SMTP'} = { bypass_virus_checks_maps = [ 0 ], final_virus_destiny = D_DISCARD, bypass_spam_checks_maps = [ 0 ], spam_kill_level_maps = [6.2], spam_dsn_cutoff_level_maps = [15], final_spam_destiny = D_DISCARD, final_bad_header_destiny = undef, }; $policy_bank{'MYNETS'} = { # mail originating from @mynetworks originating = 1, # is true in MYNETS by default, but let's make it explicit os_fingerprint_method = undef, # don't query p0f for internal clients }; $interface_policy{'SOCK'} = 'AM.PDP-SOCK'; $policy_bank{'AM.PDP-SOCK'} = { protocol = 'AM.PDP', auth_required_release = 0, # do not require secret_id for amavisd-release }; $sa_tag_level_deflt = undef; # add spam info headers if at, or above that level $sa_tag2_level_deflt = 5.0; # add 'spam detected' headers at that level $sa_kill_level_deflt = 5.0; # triggers spam evasive actions (e.g. blocks mail) #$sa_tag2_level_deflt = 6.2; # add 'spam detected' headers at that level #$sa_kill_level_deflt = 6.2; # triggers spam evasive actions (e.g. blocks mail) $sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent # $sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off $penpals_bonus_score = 8;# (no effect without a @storage_sql_dsn database) $penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam $sa_mail_body_size_limit = 400*1024; # don't waste time on SA if mail is larger $sa_local_tests_only = 0;# only tests which do not require internet access? $virus_admin = undef; $mailfrom_notify_admin = virusale...@$mydomain; # notifications sender $mailfrom_notify_recip = virusale...@$mydomain; # notifications sender $mailfrom_notify_spamadmin = spam.poli...@$mydomain; # notifications sender $mailfrom_to_quarantine = ''; # null return path; uses original sender if undef @addr_extension_virus_maps = ('virus'); @addr_extension_banned_maps =
Re: [AMaViS-user] (!!)TROUBLE in check_mail, but must continue (1)
Sébastien, Acutally I run a postfix 2.5.4 and amavisd-new 2.5.4 on a centos 4 box. We got these error : /(!!)TROUBLE in check_mail, but must continue (1): main_log_entry FAILED: Can't use stri ng (1) as a HASH ref while strict refs in use at /usr/sbin/amavisd line 3134, GEN78 line 648. /In our logs, mails are scanned with no problem but this warning is very annoying because all of the amavis temporary directories are not suppressed : /(!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20090629T105243-24158 / I can't see what is the problem, it seems that it's in fish_out_ip_from_received function on this line: /for (grep {defined} (@$fields_ref{qw(from-tcp from from-com)}))/ I don't remember any know problems in that area. Could you please check if your subroutines 'sub parse_received' and 'sub fish_out_ip_from_received' are the same as in my original distribution tarball? You may want to add some debugging printouts, e.g.: --- amavisd~2008-04-10 16:18:49.0 +0200 +++ amavisd 2009-06-29 13:39:04.0 +0200 @@ -3123,5 +3123,7 @@ # for my $f (sort {$s{$a}=$s{$b}} keys %fld) # { do_log(5, %-8s - /%s/, $f,$fld{$f}) } - \%fld; + my($result) = \%fld; + do_log(0, TEST1 parse_received, result=%s, $result); + $result; } @@ -3129,6 +3131,8 @@ my($received) = @_; my($fields_ref) = parse_received($received); + do_log(0, TEST2 fish_out_ip_from_received, got %s, $fields_ref); my($ip); local($1); for (grep {defined} (@$fields_ref{qw(from-tcp from from-com)})) { +do_log(0, TEST3 field %s, $_); if (/ \[ (\d{1,3} (?: \. \d{1,3}){3}) (?: \. \d{4,5} )? \] /x) { $ip = $1; last; Mark -- ___ 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/
Re: [AMaViS-user] (!!)TROUBLE in check_mail, but must continue (1)
Mark, Here is the diff -u from your 2.5.4 source tarball and from my rpm. I wonder how this could have been changed, I'll ask my teammates why. I think that is a human mistake, and that is not from rpmforge packagers. It's seems that with your original code everything is OK. Thanks a lot for helping me and excuse me for wasting your time. --- amavisd.fromtarball2009-06-29 13:57:07.0 +0200 +++ /usr/sbin/amavisd2008-11-10 11:37:08.0 +0100 @@ -3123,6 +3123,8 @@ # for my $f (sort {$s{$a}=$s{$b}} keys %fld) # { do_log(5, %-8s - /%s/, $f,$fld{$f}) } \%fld; + + do_log(2, premier - /%s/, $fld{'from-tcp'}); } sub fish_out_ip_from_received($) { Sebastien Mark Martinec a écrit : Sébastien, Acutally I run a postfix 2.5.4 and amavisd-new 2.5.4 on a centos 4 box. We got these error : /(!!)TROUBLE in check_mail, but must continue (1): main_log_entry FAILED: Can't use stri ng (1) as a HASH ref while strict refs in use at /usr/sbin/amavisd line 3134, GEN78 line 648. /In our logs, mails are scanned with no problem but this warning is very annoying because all of the amavis temporary directories are not suppressed : /(!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20090629T105243-24158 / I can't see what is the problem, it seems that it's in fish_out_ip_from_received function on this line: /for (grep {defined} (@$fields_ref{qw(from-tcp from from-com)}))/ I don't remember any know problems in that area. Could you please check if your subroutines 'sub parse_received' and 'sub fish_out_ip_from_received' are the same as in my original distribution tarball? You may want to add some debugging printouts, e.g.: --- amavisd~ 2008-04-10 16:18:49.0 +0200 +++ amavisd 2009-06-29 13:39:04.0 +0200 @@ -3123,5 +3123,7 @@ # for my $f (sort {$s{$a}=$s{$b}} keys %fld) # { do_log(5, %-8s - /%s/, $f,$fld{$f}) } - \%fld; + my($result) = \%fld; + do_log(0, TEST1 parse_received, result=%s, $result); + $result; } @@ -3129,6 +3131,8 @@ my($received) = @_; my($fields_ref) = parse_received($received); + do_log(0, TEST2 fish_out_ip_from_received, got %s, $fields_ref); my($ip); local($1); for (grep {defined} (@$fields_ref{qw(from-tcp from from-com)})) { +do_log(0, TEST3 field %s, $_); if (/ \[ (\d{1,3} (?: \. \d{1,3}){3}) (?: \. \d{4,5} )? \] /x) { $ip = $1; last; Mark -- ___ 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/ -- ___ 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/
[AMaViS-user] TROUBLE in check_mail: quar+notif FAILED
Hi, A while ago, I changed over to storing my quarantine, etc. in a mysql db. So far it has worked wonderfully except for one problem. The DB has grown to about 5GB (ibdata file), and every night, when I am using the script included in the README.mysql to get rid of old entries, I get the following error: Sep 9 03:18:54 george.eliot.priv.at /usr/sbin/amavisd[14068]: (14068) (!!)TROUBLE in check_mail: quar+notif FAILED: temporarily unable to quarantine: 451 4.5.0 Storing to sql db as mail_id MSQokJpLajBT failed: writing mail text to SQL failed: Error closing, flush: sql inserting text failed, sql exec: err=1205, S1000, DBD::mysql::st execute failed: Lock wait timeout exceeded; try restarting transaction at (eval 87) line 166, GEN106 line 718. at (eval 89) line 224, GEN106 line 718. at (eval 89) line 92, GEN106 line 718. at (eval 89) line 355., id=14068 at /usr/sbin/amavisd line 11673. I realise this is a SQL issue, I was just wondering if anyone has experience with this, or better still a solution. The script that runs is the following: DELETE FROM msgs WHERE time_num UNIX_TIMESTAMP()-30*24*60*60; DELETE FROM msgs WHERE time_num UNIX_TIMESTAMP()-60*60 AND content IS NULL; DELETE FROM quarantine WHERE NOT EXISTS (SELECT 1 FROM msgs WHERE mail_id=quarantine.mail_id); DELETE FROM msgrcpt WHERE NOT EXISTS (SELECT 1 FROM msgs WHERE mail_id=msgrcpt.mail_id); DELETE FROM maddr WHERE NOT EXISTS (SELECT 1 FROM msgsWHERE sid=id) AND NOT EXISTS (SELECT 1 FROM msgrcpt WHERE rid=id); I am using amavisd-new-2.6.1. The machine gets a really high load, when it does the above, so much so, that sometimes I also get the following errors: Sep 9 03:48:46 george.eliot.priv.at /usr/sbin/amavisd[17556]: (17556) (!!)TROUBLE in process_request: Can't write response to socket: Broken pipe, fileno=13 at (eval 82) line 145. Sep 9 03:50:31 george.eliot.priv.at /usr/sbin/amavisd[21872]: (21872) (!!)TROUBLE in check_mail: creating_partsdir FAILED: Can't create directory /var/amavis/tmp/afm891dgsv019798/parts: No such file or directory at /usr/sbin/amavisd line 9734. Sep 9 03:50:31 george.eliot.priv.at /usr/sbin/amavisd[21872]: (21872) (!!)TROUBLE in process_request: Can't write response to socket: Broken pipe, fileno=13 at (eval 82) line 145. This unfortunately happens pretty much every night, and I am afraid, I may be loosing important mails! Any help would be appreciated. Thanks, .peter - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: quar+notif FAILED
Peter, A while ago, I changed over to storing my quarantine, etc. in a mysql db. So far it has worked wonderfully except for one problem. The DB has grown to about 5GB (ibdata file), and every night, when I am using the script included in the README.mysql to get rid of old entries, I get the following error: Sep 9 03:18:54 george.eliot.priv.at /usr/sbin/amavisd[14068]: (14068) (!!)TROUBLE in check_mail: quar+notif FAILED: temporarily unable to quarantine: 451 4.5.0 Storing to sql db as mail_id MSQokJpLajBT failed: writing mail text to SQL failed: Error closing, flush: sql inserting text failed, sql exec: err=1205, S1000, DBD::mysql::st execute failed: Lock wait timeout exceeded; try restarting transaction... I realise this is a SQL issue, I was just wondering if anyone has experience with this, or better still a solution. My solution to this problem was to switch SQL logging to PostgreSQL. An order of magnitude faster purge, and amavisd is able to do its job even during SQL purging. An alternative solution with MySQL is to partition a database e.g. into weekly subtables - then a purge becomes a quick DROP and CREATE operation. Seems to be rarely practiced because of its complexity to a database administrator, but is should definitely be the snappiest solution. I am using amavisd-new-2.6.1. The machine gets a really high load, when it does the above, so much so, that sometimes I also get the following errors: Sep 9 03:48:46 george.eliot.priv.at /usr/sbin/amavisd[17556]: (17556) (!!)TROUBLE in process_request: Can't write response to socket: Broken pipe, fileno=13 at (eval 82) line 145. This happens when processing a mail by amavisd takes longer than MTA is willing to wait. Try increasing the smtp_data_done_timeout for the Postfix smtp service feeding amavisd. Extremely long processing times are worth investigating, feeding a mail sample to a command line spamassassin. Perhaps there are certain rules or stale DNS/RBL services that can be eliminated. Moving a large Bayes from a file-based database to MySQL also helps greatly. Sep 9 03:50:31 george.eliot.priv.at /usr/sbin/amavisd[21872]: (21872) (!!)TROUBLE in check_mail: creating_partsdir FAILED: Can't create directory /var/amavis/tmp/afm891dgsv019798/parts: No such file or directory at /usr/sbin/amavisd line 9734. Are you purging /var/amavis/tmp/ with some cron job? It must take care not to delete any temporary directories that are in use by running amavisd child processes. This unfortunately happens pretty much every night, and I am afraid, I may be loosing important mails! No mail is lost. When a failure occurs, a message stays in a MTA queue for a retry. If it was a temporary failure it is likely that on the next MTA attempt the message will get through. In the first case (Can't write response to socket) a recipient may receive the same message more than once. When a cause of a catastrophic failure is due to a contents of a mail triggering some programming error, than mail processing will likely cause the same failure on every attempt. After a couple of days MTA gives up and sends a NDN back to a sender. It is worth keeping an eye on the jobs in a MTA queue to see if there are any entries which failed on feeding to amavisd, investigate and fix the cause. Some SARE complex regexp rules or third part SA plugins are likely causes for such rare events. Mark - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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/
[AMaViS-user] TROUBLE in check_mail
Hello list, I'm using postfix version 2.4.5 with amavisd-new version 2.5.2. Yesterday I found this lines in my logfile. Can somebody tell me what is this about? Jan 10 17:52:32 server amavis[5767]: (05767-03) smtp resp to MAIL (pip): Jan 10 17:53:32 server amavis[5767]: (05767-03) Negative SMTP resp to DATA: Jan 10 17:53:42 server amavis[5767]: (05767-03) Negative SMTP resp. to QUIT: Jan 10 17:53:42 server amavis[5767]: (05767-03) (!)FWD via SMTP: gbounce-4033871375-674-400122013-1199982671302 @bounce.nl.weltbild.de - [EMAIL PROTECTED],BODY=7BIT Jan 10 17:53:42 server amavis[5767]: (05767-03) (!!)TROUBLE in check_mail, but must continue (1): delivery-notification FAILED: Assert failed: 0, 2, at /usr/sbin/amavisd line 6848, GEN16 line 570. Jan 10 17:53:42 server amavis[5767]: (05767-03) (!!)TROUBLE in process_request: wrap_smtp_resp: bad SMTP response code: '' at /usr/sbin/amavisd line 3536, GEN16 line 570. Jan 10 17:53:42 server amavis[5767]: (05767-03) (!)Requesting process rundown after fatal error Jan 10 17:53:42 server amavis[5767]: (05767-03) (!)TempDir removal: tempdir is to be PRESERVED: /var/amavis/tmp/amavis-20080110T173606-05767 Thank you. Bye Stefan - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail
Hi Marc, thank you. Again you were right. RPM told me I had 5.420 installed. Amavisd found an older version, which I had installed by hand a long time ago. Comes from messy administration! All's fine now, .peter Are you sure that amavisd finds this version? Check its log at startup (or start with 'amavisd debug' and abort after few screenfuls), check for: amavis[62710]: Module MIME::Entity5.420 amavis[62710]: Module MIME::Parser5.420 amavis[62710]: Module MIME::Tools 5.420 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/
[AMaViS-user] TROUBLE in check_mail
Hi, TROUBLE in check_mail: mime_decode-1 FAILED: Can't locate object method max_parts via package MIME::Parser at /usr/sbin/amavisd line 5933, GEN20 line 17. This is using anything higher than amavisd-new.2.4.3 As sson as I update to 2.4.4 this problem appears. My perl-MIME-tools is 5.420 perl is 5.8.3 OS is FC1 I have tried amavisd-new-2.5.1 and the result is the same. Does anyone have a hint, what might be the problem. Thanks, .peter - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail
Peter, TROUBLE in check_mail: mime_decode-1 FAILED: Can't locate object method max_parts via package MIME::Parser at /usr/sbin/amavisd line 5933, GEN20 line 17. This is using anything higher than amavisd-new.2.4.3 As soon as I update to 2.4.4 this problem appears. My perl-MIME-tools is 5.420 perl is 5.8.3 OS is FC1 I have tried amavisd-new-2.5.1 and the result is the same. amavisd-new-2.4.4 release notes - limit recursion in MIME::Parser to $MAXFILES to prevent MIME parser from fully traversing degenerate cases of broken MIME messages which can take excessive amount of time and memory; reported and a sample provided by Joshua Goodall, solution suggested by David F. Skoll; This requires MIME::Parser 5.420. My perl-MIME-tools is 5.420 Are you sure that amavisd finds this version? Check its log at startup (or start with 'amavisd debug' and abort after few screenfuls), check for: amavis[62710]: Module MIME::Entity5.420 amavis[62710]: Module MIME::Parser5.420 amavis[62710]: Module MIME::Tools 5.420 It could be that you have two versions of MIME-Tools installed. Mark - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/
[AMaViS-user] TROUBLE in check_mail
hi, when sending a 23MB file through amavisd-new/amavisd-milter/sendmail i get the following reproducable error: amavis.log: TROUBLE in check_mail: parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 48) line 154. mail.log: stat=Error in processing, id=20067, parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 48) line 154. the file is a properly zipped (windows) executable (setup.exe). amavisd-new tells me on startup that it uses an Internal decoder for .zip # file setup.zip setup.zip: Zip archive data, at least v2.0 to extract # unzip setup.zip Archive: setup.zip inflating: setup.exe any ideas of what is going wrong? thanks in advance - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail
when sending a 23MB file through amavisd-new/amavisd-milter/sendmail i get the following reproducable error: TROUBLE in check_mail: parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 48) line 154. the file is a properly zipped (windows) executable (setup.exe). any ideas of what is going wrong? Which version of the file(1) utility? It should be fairly recent, current version is 4.17 ( ftp://ftp.astron.com/pub/file/ ) Otherwise, check the log at level 5, and see what is the output produced by file(1) (as logged by amavisd). Mark - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail
At 11:13 24.10.2006, you wrote: when sending a 23MB file through amavisd-new/amavisd-milter/sendmail i get the following reproducable error: TROUBLE in check_mail: parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 48) line 154. the file is a properly zipped (windows) executable (setup.exe). any ideas of what is going wrong? Which version of the file(1) utility? It should be fairly recent, current version is 4.17 ( ftp://ftp.astron.com/pub/file/ ) 4.14 Otherwise, check the log at level 5, and see what is the output produced by file(1) (as logged by amavisd). upgraded from file-4.14 to file-4.17 and it solved the error. thanks MK Mark - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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/
[AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED:
Hello, the following error occurs when I try to send a mail. amavis[28515]: (28515-02)(!!) TROUBLE in check_mail: mime_decode-1 FAILED: MIME::Parser: can't open tmpfile: Invalid argument amavis[28515]: (28515-02)(!) PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20060421T121500-28516 The system is FC3, postfix-2.1.5-5, amavisd-new-2.4.0-3, Qpopper Two days ago this error came up, no update or changes at the config was done this days. It seems the tempfile will be created ok but as soon as it's trying to parse the file, this errors occurs. /usr/sbin/amavisd[6824]: (06824-01) TempDir::prepare: creating directory /var/amavis/tmp/amavis-20060421T205326-06824 /usr/sbin/amavisd[6824]: (06824-01) TempDir::prepare_file: creating file /var/amavis/tmp/amavis-20060421T205326-06824/email.txt parse errors /usr/sbin/amavisd[6824]: (06824-01) Extracting mime components /usr/sbin/amavisd[6824]: (06824-01) TROUBLE in check_mail: mime_decode-1 FAILED: MIME::Parser: can't open tmpfile: Invalid argument /usr/sbin/amavisd[6824]: (06824-01) sending SMTP response: 451 4.5.0 Error in processing, id=06824-01, mime_decode-1 \ FAILED: MIME::Parser: can't open tmpfile: Invalid argument /usr/sbin/amavisd[6824]: (06824-01) ESMTP 451 4.5.0 Error in processing, id=06824-01, mime_decode-1 FAILED: MIME::Parser: \ can't open tmpfile: Invalid argument I installed Amavisd-new and the Perl and CPAN parts again, NO success :-( a helpfull hint would be very fine :-) thanks Daniel Krueger --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Josh, (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. As the message says, the file or its directory does not exist. Are you sure it exists? If running chrooted, it must exist relative to the jail root. Where did the .. before the filename come from? Mark --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
The file p001 does *not* exist. It may have been created, but immediately deleted. Either way it does not exist when Body.pm tries to open it. It's not running chrooted and I don't know where the .. came from. That was a direct copy/paste of the amavisd-new debug output. We're reinstalling the box this morning so I'm hopefull this problem will not resurface. - Josh On 10/12/05, Mark Martinec [EMAIL PROTECTED] wrote: Josh, (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. As the message says, the file or its directory does not exist. Are you sure it exists? If running chrooted, it must exist relative to the jail root. Where did the .. before the filename come from? Mark --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Mark wrote: Josh, (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. As the message says, the file or its directory does not exist. Are you sure it exists? If running chrooted, it must exist relative to the jail root. Where did the .. before the filename come from? Mark That's why you make the big bucks Mark. He must have made an inadvertent editing error: $MYHOME = '../var/lib/amavis'; I'm not sure I ever would have noticed. Gary V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Just to update anyone following this - the reinstall has fixed the problem. I think it was as simple as having the rogue .. in there. We're on to the next leg of setup here. Thanks for all the help and patience. I'll be back if we can't get it all set up the way we want :) - Josh On 10/12/05, Josh Catlin [EMAIL PROTECTED] wrote: The file p001 does *not* exist. It may have been created, but immediately deleted. Either way it does not exist when Body.pm tries to open it. It's not running chrooted and I don't know where the .. came from. That was a direct copy/paste of the amavisd-new debug output. We're reinstalling the box this morning so I'm hopefull this problem will not resurface. - Josh On 10/12/05, Mark Martinec [EMAIL PROTECTED] wrote: Josh, (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. As the message says, the file or its directory does not exist. Are you sure it exists? If running chrooted, it must exist relative to the jail root. Where did the .. before the filename come from? Mark -- Josh Catlin [EMAIL PROTECTED] -- --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
[AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Warning: I'm very new to Linux so hopefully the error I'm hitting is merely due to inexperience and not something more involved. Debian - current stable postfix - 2.1.5-9 amavisd-new - 20030616p10-5 spamassassin - 3.0.3-2 I'm setting up a Debian anti-spam, anti-virus gateway as described in the excellent walkthrough provided at www.freespamfilter.org. I've finished setting up postfix, amavisd-new, pyzor, razor, DCC and SpamAssassin. I have not yet set up ClamAV. At this point everything looks good running amavisd-new debug until I send in a test email. The mail hits the Debian box and makes it through various steps ok up until the MIME extraction section. Here are the relevant debug lines: Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Extracting mime components Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Issued a new file name: p001 Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) sending SMTP response: 451 4.5.0 Error in processing, id=01102-01, mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) timer stopped after DATA end Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) PRESERVING EVIDENCE in ../var/lib/amavis/amavis-20051011T113838-01102 At someone's suggestion, I tried the following: amavisd-new stop apt-get --reinstall install libmime-perl chown -R amavis:amavis /var/lib/amavis chmod -R 0750 /var/lib/amavis amavisd-new start This had no effect - I still get the same error. I can't tell if the parts (i.e. p001) are never getting created or if they are created and then immediately deleted before Body.pm has a chance to open the files. Where should I look to find the cause of this? I know people may need more info from my setup before they can pin down the problem so please let me know what you need to see. Thanks for any help you can offer. -- Josh Catlin --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Josh wrote: Warning: I'm very new to Linux so hopefully the error I'm hitting is merely due to inexperience and not something more involved. Debian - current stable postfix - 2.1.5-9 amavisd-new - 20030616p10-5 spamassassin - 3.0.3-2 I'm setting up a Debian anti-spam, anti-virus gateway as described in the excellent walkthrough provided at www.freespamfilter.org. I've finished setting up postfix, amavisd-new, pyzor, razor, DCC and SpamAssassin. I have not yet set up ClamAV. At this point everything looks good running amavisd-new debug until I send in a test email. The mail hits the Debian box and makes it through various steps ok up until the MIME extraction section. Here are the relevant debug lines: Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Extracting mime components Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Issued a new file name: p001 Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) sending SMTP response: 451 4.5.0 Error in processing, id=01102-01, mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) timer stopped after DATA end Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) PRESERVING EVIDENCE in ../var/lib/amavis/amavis-20051011T113838-01102 At someone's suggestion, I tried the following: amavisd-new stop apt-get --reinstall install libmime-perl chown -R amavis:amavis /var/lib/amavis chmod -R 0750 /var/lib/amavis amavisd-new start This had no effect - I still get the same error. I can't tell if the parts (i.e. p001) are never getting created or if they are created and then immediately deleted before Body.pm has a chance to open the files. Where should I look to find the cause of this? I know people may need more info from my setup before they can pin down the problem so please let me know what you need to see. Thanks for any help you can offer. -- Josh Catlin I believe this may apply: http://marc.theaimsgroup.com/?l=amavis-userm=108496949300770w=2 On my Debian machine, I show: sfm:~# ls -ld /tmp drwxrwxrwt4 root root 2048 Oct 11 16:00 /tmp sfm:~# ls -ld /var/tmp drwxrwxrwt3 root root 1024 Oct 5 11:13 /var/tmp Gary V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Gary wrote: Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Issued a new file name: p001 Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. I believe this may apply: http://marc.theaimsgroup.com/?l=amavis-userm=108496949300770w=2 On my Debian machine, I show: sfm:~# ls -ld /tmp drwxrwxrwt4 root root 2048 Oct 11 16:00 /tmp sfm:~# ls -ld /var/tmp drwxrwxrwt3 root root 1024 Oct 5 11:13 /var/tmp You can check that the amavisd-new user can write to these: cd /tmp su amavis -c touch 1 rm 1 cd /var/tmp su amavis -c touch 1 rm 1 should not give you errors. Gary V Gary V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Ok just checked those and I think things are ok there. ls -ld /tmp gives me this: drwxrwxrwt 2 root root 4096 2005-10-11 16:05 /tmp ls -ld /var/tmp gives me this: drwxrwxrwt 3 root root 4096 2005-10-10 10:10 /var/tmp I'm not running under chroot either. Neither of these tests give any errors either: cd /tmp su amavis -c touch 1 rm 1 cd /var/tmp su amavis -c touch 1 rm 1 On 10/11/05, Gary V [EMAIL PROTECTED] wrote: I believe this may apply: http://marc.theaimsgroup.com/?l=amavis-userm=108496949300770w=2 On my Debian machine, I show: sfm:~# ls -ld /tmp drwxrwxrwt4 root root 2048 Oct 11 16:00 /tmp sfm:~# ls -ld /var/tmp drwxrwxrwt3 root root 1024 Oct 5 11:13 /var/tmp Gary V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
Gary wrote: Josh wrote: Warning: I'm very new to Linux so hopefully the error I'm hitting is merely due to inexperience and not something more involved. Debian - current stable postfix - 2.1.5-9 amavisd-new - 20030616p10-5 spamassassin - 3.0.3-2 I'm setting up a Debian anti-spam, anti-virus gateway as described in the excellent walkthrough provided at www.freespamfilter.org. I've finished setting up postfix, amavisd-new, pyzor, razor, DCC and SpamAssassin. I have not yet set up ClamAV. At this point everything looks good running amavisd-new debug until I send in a test email. The mail hits the Debian box and makes it through various steps ok up until the MIME extraction section. Here are the relevant debug lines: Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Extracting mime components Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Issued a new file name: p001 Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) sending SMTP response: 451 4.5.0 Error in processing, id=01102-01, mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) timer stopped after DATA end Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) PRESERVING EVIDENCE in ../var/lib/amavis/amavis-20051011T113838-01102 At someone's suggestion, I tried the following: amavisd-new stop apt-get --reinstall install libmime-perl chown -R amavis:amavis /var/lib/amavis chmod -R 0750 /var/lib/amavis amavisd-new start This had no effect - I still get the same error. Thanks for any help you can offer. http://marc.theaimsgroup.com/?l=amavis-userm=108496949300770w=2 Then again this link may not apply, since the problem line is: $IO = FileHandle-new($path) || die write-open $path: $!; Since this box is not in production, you might try stopping amavisd-new, removing any left over amavis-200510... temp directories and deleting any junk from the Postfix deferred queue, and trying again. 'postsuper -d ALL deferred' to clean up Postfix. Check amavisd.conf, make sure there is no typo here: $daemon_user = 'amavis'; $daemon_group = 'amavis'; (I know this setup uses 'amavis') BTW, I also had Josh do: mkdir /var/lib/amavis/tmp mkdir /var/lib/amavis/db mkdir /var/lib/amavis/var chown -R amavis:amavis /var/lib/amavis chmod -R 750 /var/lib/amavis I also know that Josh has sufficient ram for his configuration, so I am out of ideas. Gary V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...
$daemon_user = 'amavis'; $daemon_group = 'amavis'; Both lines are correct in the amavisd.conf file. I think I may do a clean install tomorrow and see if that can can clear things up. On 10/11/05, Gary V [EMAIL PROTECTED] wrote: Gary wrote: Josh wrote: Warning: I'm very new to Linux so hopefully the error I'm hitting is merely due to inexperience and not something more involved. Debian - current stable postfix - 2.1.5-9 amavisd-new - 20030616p10-5 spamassassin - 3.0.3-2 I'm setting up a Debian anti-spam, anti-virus gateway as described in the excellent walkthrough provided at www.freespamfilter.org. I've finished setting up postfix, amavisd-new, pyzor, razor, DCC and SpamAssassin. I have not yet set up ClamAV. At this point everything looks good running amavisd-new debug until I send in a test email. The mail hits the Debian box and makes it through various steps ok up until the MIME extraction section. Here are the relevant debug lines: Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Extracting mime components Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) Issued a new file name: p001 Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) sending SMTP response: 451 4.5.0 Error in processing, id=01102-01, mime_decode-1 FAILED: write-open ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001: No such file or directory at /usr/share/perl5/MIME/Body.pm line 414. Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) timer stopped after DATA end Oct 11 11:38:38 spambox.mydomain.com /usr/sbin/amavisd-new[1102]: (01102-01) PRESERVING EVIDENCE in ../var/lib/amavis/amavis-20051011T113838-01102 At someone's suggestion, I tried the following: amavisd-new stop apt-get --reinstall install libmime-perl chown -R amavis:amavis /var/lib/amavis chmod -R 0750 /var/lib/amavis amavisd-new start This had no effect - I still get the same error. Thanks for any help you can offer. http://marc.theaimsgroup.com/?l=amavis-userm=108496949300770w=2 Then again this link may not apply, since the problem line is: $IO = FileHandle-new($path) || die write-open $path: $!; Since this box is not in production, you might try stopping amavisd-new, removing any left over amavis-200510... temp directories and deleting any junk from the Postfix deferred queue, and trying again. 'postsuper -d ALL deferred' to clean up Postfix. Check amavisd.conf, make sure there is no typo here: $daemon_user = 'amavis'; $daemon_group = 'amavis'; (I know this setup uses 'amavis') BTW, I also had Josh do: mkdir /var/lib/amavis/tmp mkdir /var/lib/amavis/db mkdir /var/lib/amavis/var chown -R amavis:amavis /var/lib/amavis chmod -R 750 /var/lib/amavis I also know that Josh has sufficient ram for his configuration, so I am out of ideas. Gary V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/ -- Josh Catlin [EMAIL PROTECTED] -- --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
[AMaViS-user] TROUBLE in check_mail
Hello, this morning, I saw this kind of messages in my maillog file. I had a probleme between 21:00 and 02:00. amavis[2014]: (02014-10) TROUBLE in check_mail: mime_decode-1 FAILED: MIME::Parser: can't flush: Auc un espace disponible sur le p\351riph\351rique at /usr/lib/perl5/site_perl/5.8.0/MIME/Parser.pm line 789, GEN119 line 157. amavis[2014]: (02014-10) PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20051009T210410-02014 to=x, relay=127.0.0.1[127.0.0.1], dela y=0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02014-10, mime_decode-1 FAILED: MIME::Parser: can't flush: Aucun espace disponible sur le p\351riph\351rique at /usr/lib/perl5/site_perl/5.8.0/MIME/Pars er.pm line 789, GEN119 line 157. (in reply to end of DATA command)). During my investigation, I saw that I have more than 1 directories in my temporary directory /var/amavis/tmp. First of all, I 'd like to know if the messages have been sent to their recipients. My second question is why so much old directories haven't been deleted ? Thanks for your help . -- --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
Re: [AMaViS-user] TROUBLE in check_mail
Rachid, amavis[2014]: (02014-10) TROUBLE in check_mail: mime_decode-1 FAILED: MIME::Parser: can't flush: Aucun espace disponible sur le peripherique at /usr/lib/perl5/site_perl/5.8.0/MIME/Parser.pm line 789 During my investigation, I saw that I have more than 1 directories in my temporary directory /var/amavis/tmp. See http://www.ijs.si/software/amavisd/#faq-gen First of all, I 'd like to know if the messages have been sent to their recipients. Most likely these message are still in the MTA's queue, waiting to be delivered - unless the situation is persisting for more then several days and MTA timed out, sending a non-delivery notification to the sender. In any case, mail was not lost - it either was or will be delivered, or the sender received a non-delivery notification. It is likely there were much fewer the 1 messages stumbling across a problem, but on each retry a new directory was left over. You should really investigate and fix the cause, not just sweep the trash under a carpet. My second question is why so much old directories haven't been deleted ? Yes, these directories should be deleted (preferably when amavisd is not running to avoid removing currently active working directories) - but you will want to investigate the cause for failure, in which case the logs and the files retained can help in troubleshooting. Mark --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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/
[AMaViS-user] TROUBLE in check_mail
Hi, This morning I have several enteries like following in /var/log/syslog == Sep 6 01:03:20 mailgate1 amavis[363]: [ID 702911 mail.error] (00363-07) TROUBLE in check_mail: parts_decode_ex t FAILED: run_command (open pipe): Can't fork at /usr/local/lib/perl5/5.8.5/sun4-solaris/IO/File.pm line 176, GEN6 line 6001. at /usr/local/sbin/amavisd line 1851, GEN6 line 6001. Sep 6 01:05:03 mailgate1 amavis[398]: [ID 702911 mail.error] (00398-08) TROUBLE in check_mail: parts_decode_ex t FAILED: run_command (open pipe): Can't fork at /usr/local/lib/perl5/5.8.5/sun4-solaris/IO/File.pm line 176. a t /usr/local/sbin/amavisd line 1851. Sep 6 01:05:06 mailgate1 amavis[517]: [ID 702911 mail.error] (00517-04) TROUBLE in check_mail: parts_decode_ex t FAILED: run_command (open pipe): Can't fork at /usr/local/lib/perl5/5.8.5/sun4-solaris/IO/File.pm line 176, GEN6 line 2122. at /usr/local/sbin/amavisd line 1851, GEN6 line 2122. == Also I have following in /var/adm/messages == Sep 6 05:48:01 mailgate1 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File system full, swap space limit exc eeded Sep 6 07:19:16 mailgate1 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File system full, swap space limit exc eeded Sep 6 07:19:55 mailgate1 last message repeated 1 time Sep 6 08:37:03 mailgate1 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File system full, swap space limit exc eeded Sep 6 09:05:37 mailgate1 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File system full, swap space limit exc eeded == Finally amaisd-new (2.3.2) stopped responding and I need to restart the server (Solaris 8). Can any one hight what causes this swap FS problem? I have two GB of Swap and the server is running fine since more than one month. MJ --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ 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/