Re: [AMaViS-user] Error with Compress::Raw::Zlib: defines neither package nor VERSION

2010-10-12 Thread Andreas Schulze
Am 12.10.2010 10:14 schrieb Zhang Huangbin:
 Hi, all.
 
 I'm running Amavisd-new-2.6.4, and get this error:
 
 (!)Decoding of p002 (Zip archive data, at least v2.0 to extract) failed, 
 leaving it unpacked: Compress::Raw::Zlib defines neither package nor 
 VERSION--version check failed at (eval 103) line 467
 
I don't know if it solved your problem but I have use Compress::Raw::Zlib; as 
one of the last statements in amavisd.conf.

-- 
Andreas Schulze
Internetdienste | P532

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail info @datev.de | Internet www.datev.de
Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg 
Nr.70
Vorstand
Prof. Dieter Kempf (Vorsitzender)
Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender)
Dipl.-Kfm. Michael Leistenschneider
Jörg Rabe v. Pappenheim
Dipl.-Vw. Eckhard Schwarzer
Vorsitzender des Aufsichtsrates: Reinhard Verholen


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


Re: [AMaViS-user] Error with Compress::Raw::Zl ib: defines neither package nor VERSION

2010-10-12 Thread Mark Martinec
Huangbin,

 I'm running Amavisd-new-2.6.4, and get this error:
  (!)Decoding of p002 (Zip archive data, at least v2.0 to extract) failed,
  leaving it unpacked: Compress::Raw::Zlib defines neither package nor
  VERSION--version check failed at (eval 103) line 467
 [...]
 But I have 2.030 installed:
 # rpm -qa perl-Compress-Raw-Zlib
 perl-Compress-Raw-Zlib-2.030-1.el5.rf

perl-Compress-Zlib has been replaced with perl-IO-Compress.
Just comment-out the Compress::Raw::Zlib-VERSION(2.017) line:

--- amavisd~2009-06-25 14:39:01.0 +0200
+++ amavisd 2010-10-12 11:34:40.207725223 +0200
@@ -22889,5 +22889,5 @@
   ll(4)  do_log(4, Unzipping %s, $part-base_name);
   # avoid DoS vulnerability in  2.017
-  Compress::Raw::Zlib-VERSION(2.017);  # required minimal version, or die
+  # Compress::Raw::Zlib-VERSION(2.017);  # module not loaded
   snmp_count('OpsDecByArZipAttempt');
   my($zip) = Archive::Zip-new;


Mark

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


Re: [AMaViS-user] Error with Compress::Raw::Zlib: defines neither package nor VERSION

2010-10-12 Thread Zhang Huangbin

On Oct 12, 2010, at 5:40 PM, Mark Martinec wrote:
 
 perl-Compress-Zlib has been replaced with perl-IO-Compress.
 Just comment-out the Compress::Raw::Zlib-VERSION(2.017) line:
 
 --- amavisd~  2009-06-25 14:39:01.0 +0200
 +++ amavisd   2010-10-12 11:34:40.207725223 +0200

Thanks Mark :)


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


[AMaViS-user] Error with Compress::Raw::Zlib: defines neither package nor VERSION

2010-10-11 Thread Zhang Huangbin
Hi, all.

I'm running Amavisd-new-2.6.4, and get this error:

(!)Decoding of p002 (Zip archive data, at least v2.0 to extract) failed, 
leaving it unpacked: Compress::Raw::Zlib defines neither package nor 
VERSION--version check failed at (eval 103) line 467

Amavisd RELEASE NOTES mentions:

- require a minimal version 2.017 of Compress::Raw::Zlib when unpacking a
  zip archive (by Archive::Zip) to avoid an archive (e.g. in an infected mail)
  from causing amavisd process to hang; thanks to Alexander 'Leo' Bergolth
  for troubleshooting the memory allocation issue in a zip library;

But I have 2.030 installed:

# rpm -qa perl-Compress-Raw-Zlib
perl-Compress-Raw-Zlib-2.030-1.el5.rf

Any idea?

Another article mentions that it's caused by amavisd v2.6.4:
http://www.claudiokuenzler.com/blog/90
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


Re: [AMaViS-user] Error message after upgrading Amavisd and Clamav

2010-07-02 Thread d h


 You are confusing p5-Compress-Raw-Zlib (which is at 2.027) with
 p5-Compress-Zlib.


That did it! Everything seems to be fine now.  Allthough it looks like

Amavisd is  very slow now. But many people aren't working

today so the reall test is going to be monday.

 

 
  
_
Je e-mail en meer, ook onderweg. Meld je gratis aan voor Windows Live Hotmail.
https://signup.live.com/signup.aspx?id=60969
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


[AMaViS-user] Error message after upgrading Amavisd and Clamav

2010-07-01 Thread d h

Hi all.
 
Due to several problems (sometimes received “status=sent (250
 2.1.0 Ok” error messages, not queuing it to Exchange) I have 
upgraded: (on FreeBSD 7.0)
 
- Clamav to 0.96
- Libtool to 2.2
- Postfix to 2.7.1
- p5-Mail-DKIM
- Amavisd-new to 2.6.4
 
Everyting went well, Amavisd is very fast again (was slow 
cause of a slow CLI scanner) and my error messages are gone.
 
But when I test the scanner with Eicar, I get this error message 
with the zip files: “Compress::Raw::Zlib version 2.017 required--
this is only version 2.012”
 
I have been searching for a while how I can upgrade it, please 
correct me if I am wrong, but I found out I needed to upgrade 
“p5-Compress-Zlib-2.015”. But  as you can see, this is only 2.015. 
 
I also see some messages that the error message is a bug in 
Amavisd-new, I have been installing the latest version yesterday.
 
Thanks,
 
Richard   
_
Hotmail: betrouwbare e-mail met krachtige spambescherming.
https://signup.live.com/signup.aspx?id=60969
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


Re: [AMaViS-user] Error message after upgrading Amavisd and Clamav

2010-07-01 Thread Michael Scheidell
On 7/1/10 7:59 AM, d h wrote:
 Hi all.

 Due to several problems (sometimes received “status=sent (250
   2.1.0 Ok” error messages, not queuing it to Exchange) I have
 upgraded: (on FreeBSD 7.0)

 - Clamav to 0.96
 - Libtool to 2.2
 - Postfix to 2.7.1
 - p5-Mail-DKIM
 - Amavisd-new to 2.6.4


did you use ports to do the upgrade? ports SHOULD have complained about 
any minimum dependencies and not let you finish.But when I test the 
scanner with Eicar, I get this error message
 with the zip files: “Compress::Raw::Zlib version 2.017 required--
 this is only version 2.012”


its a mess when this happens, you have to (almost) manually track down 
all the dependencies (portupgrade -Rrna amavisd-new p5-Mail-SpamAssassin)

do man portupgrade for more info.

last time this happened to me, when upgrading and testing one of the SA 
ports versions, it took a day of trial and error.
you MIGHT have your ports tree and database corrupted, and there might 
be some missing links.


-- 
Michael Scheidell, CTO
Phone: 561-999-5000, x 1259
  *| *SECNAP Network Security Corporation

* Certified SNORT Integrator
* 2008-9 Hot Company Award Winner, World Executive Alliance
* Five-Star Partner Program 2009, VARBusiness
* Best in Email Security,2010: Network Products Guide
* King of Spam Filters, SC Magazine 2008

__
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.secnap.com/products/spammertrap/
__  

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


Re: [AMaViS-user] Error message after upgrading Amavisd and Clamav

2010-07-01 Thread Michael Scheidell
On 7/1/10 7:59 AM, d h wrote:
 Hi all.

 Due to several problems (sometimes received “status=sent (250
   2.1.0 Ok” error messages, not queuing it to Exchange) I have
 upgraded: (on FreeBSD 7.0)

 - Clamav to 0.96
 - Libtool to 2.2
 - Postfix to 2.7.1
 - p5-Mail-DKIM
 - Amavisd-new to 2.6.4

check all these:
pkg_info | grep -i zlib

p5-Compress-Raw-Zlib-2.027 Low-Level Interface to zlib compression library
p5-Compress-Zlib-2.015 Perl5 interface to zlib compression library
p5-IO-Compress-Zlib-2.015 Perl5 interface for reading and writing of 
(g)zip files
p5-IO-Zlib-1.10 IO:: style interface to Compress::Zlib

and:

pkg_info -cQ 'p5-IO-Compress-Base=2.0.12'


(ps, all best are off on 7.0 it is not officially supported on ports 
anymore.  7.3 seems to be pretty stable)
pps, I am the official ports maintainer for the freebsd spamassassin 
port.  but if this is on 7.0, like I said, you could have problems

-- 
Michael Scheidell, CTO
Phone: 561-999-5000, x 1259
  *| *SECNAP Network Security Corporation

* Certified SNORT Integrator
* 2008-9 Hot Company Award Winner, World Executive Alliance
* Five-Star Partner Program 2009, VARBusiness
* Best in Email Security,2010: Network Products Guide
* King of Spam Filters, SC Magazine 2008

__
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.secnap.com/products/spammertrap/
__  

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org


Re: [AMaViS-user] Error message after upgrading Amavisd and Clamav

2010-07-01 Thread Sahil Tandon
On Thu, 2010-07-01 at 11:59:20 +, d h wrote:

 But when I test the scanner with Eicar, I get this error message 
 with the zip files: “Compress::Raw::Zlib version 2.017 required--
 this is only version 2.012”
  
 I have been searching for a while how I can upgrade it, please 
 correct me if I am wrong, but I found out I needed to upgrade 
 “p5-Compress-Zlib-2.015”. But  as you can see, this is only 2.015. 

You are confusing p5-Compress-Raw-Zlib (which is at 2.027) with
p5-Compress-Zlib.

-- 
Sahil Tandon sa...@freebsd.org

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

[AMaViS-user] Error Starting Amavisd-New [Debian]

2010-03-05 Thread Carlos Mennens
I configured Amavisd-new this morning and was getting ready to start
the daemon when the thing shot up an error:

r...@mail:/# /etc/init.d/amavis restart
Stopping amavisd: (not running).
Starting amavisd: Error in config file /etc/amavis/conf.d/50-user:
syntax error at /etc/amavis/conf.d/50-user line 55, near 1;
(failed).

I checked my configuration file where it references the error and I
don't think I modified beyond the line it's complaining about.

# Do not modify anything below this line -
1;  # ensure a defined return
~

Nothing else is referenced beyond the '~' you see above. Did I
accidently add that '1;' to the '50-user' file?

I did a Google search and couldn't find anything related except a few
Ubuntu threads...

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Error Starting Amavisd-New [Debian]

2010-03-05 Thread Alexander Wirt
Carlos Mennens schrieb am Freitag, den 05. März 2010:

 I configured Amavisd-new this morning and was getting ready to start
 the daemon when the thing shot up an error:
 
 r...@mail:/# /etc/init.d/amavis restart
 Stopping amavisd: (not running).
 Starting amavisd: Error in config file /etc/amavis/conf.d/50-user:
 syntax error at /etc/amavis/conf.d/50-user line 55, near 1;
 (failed).
 
 I checked my configuration file where it references the error and I
 don't think I modified beyond the line it's complaining about.
 
 # Do not modify anything below this line -
 1;  # ensure a defined return
Could you provide the whole file? (Maybe to paste.debian.net or some other
pastebin)

Alex

-- 
Alexander Wirt, formo...@formorer.de 
CC99 2DDD D39E 75B0 B0AA  B25C D35B BC99 BC7D 020A

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Error Starting Amavisd-New [Debian]

2010-03-05 Thread Alexander Wirt
Carlos Mennens schrieb am Freitag, den 05. März 2010:

 On Fri, Mar 5, 2010 at 10:15 AM, Alexander Wirt formo...@debian.org wrote:
  Could you provide the whole file? (Maybe to paste.debian.net or some other
  pastebin)
 
  Alex
 
 Sure.
 
 http://paste.debian.net/62608/
@keep_decoded_original_maps is not closed. 

there is a )); missing at the end. 

See http://paste.debian.net/62610/. 

Alex



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Error Starting Amavisd-New [Debian]

2010-03-05 Thread Carlos Mennens
On Fri, Mar 5, 2010 at 11:04 AM, Alexander Wirt formo...@debian.org wrote:
 @keep_decoded_original_maps is not closed.

 there is a )); missing at the end.

 See http://paste.debian.net/62610/.

Sorry I missed that. Thank you!

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Error release objects

2009-09-28 Thread Mark Martinec
Jason,

 When I attempt to release some mail (but not all) I am seeing this
 error:

 mail:/var/amavis# /opt/amavisd/sbin/amavisd-release pqDpQoPXKTKq

 450 4.5.0 Failure: Can't open sql obj for reading: No such file or
 directory at (eval 96) line 375, GEN31 line 4.

 Additionally, I can find the message in 'msgs':
  select * from msgs where mail_id = 'pqDpQoPXKTKq';
 However, it's not in the quarantine table:
  select * from quarantine where mail_id = 'pqDpQoPXKTKq';
  Empty set (0.00 sec)

So it is not in the SQL quarantine, and amavisd-release can't
release it for this reason.

 Well, I see why this happened now. It never saved the data.  I'm
 assuming this is an amavis failure and not a local configuration
 failure. But suggestions welcome!

 Sep 21 16:39:56 mail amavis[24395]: (24395-04) local delivery:  -
   bad-header-quarantine, mbx=/var/amavis/virusmails/badh-pqDpQoPXKTKq

This was quarantined to a file-based quarantine:
  /var/amavis/virusmails/badh-pqDpQoPXKTKq
and not to SQL.

What is your setting for $bad_header_quarantine_method ?
It should be:
  $bad_header_quarantine_method = 'sql:';
if you want it to quarantine to SQL.


 Sep 22 10:35:09 mail amavis[15635]: (15635-01) (!!)policy_server FAILED:
   Unsafe filename 'badh-pqDpQoPXKTKq\000\000\000\000\000\000\000\000...

This is most unusual. Seems like these null characters must have
crept into an AM.PDP release request as generated by amavisd-release.
A log level 5 from amavisd at the time of a release would be helpful.

  Mark

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error release objects

2009-09-28 Thread Jason Gauthier
Mark,


So it is not in the SQL quarantine, and amavisd-release can't
release it for this reason.

 Well, I see why this happened now. It never saved the data.  I'm
 assuming this is an amavis failure and not a local configuration
 failure. But suggestions welcome!

 Sep 21 16:39:56 mail amavis[24395]: (24395-04) local delivery:  -
   bad-header-quarantine, mbx=/var/amavis/virusmails/badh-pqDpQoPXKTKq

This was quarantined to a file-based quarantine:
  /var/amavis/virusmails/badh-pqDpQoPXKTKq
and not to SQL.

What is your setting for $bad_header_quarantine_method ?
It should be:
  $bad_header_quarantine_method = 'sql:';
if you want it to quarantine to SQL.

I did not have this! It must have changed from my versions somewhere.

 Sep 22 10:35:09 mail amavis[15635]: (15635-01) (!!)policy_server
FAILED:
   Unsafe filename
'badh-pqDpQoPXKTKq\000\000\000\000\000\000\000\000...

This is most unusual. Seems like these null characters must have
crept into an AM.PDP release request as generated by amavisd-release.
A log level 5 from amavisd at the time of a release would be helpful.

If I can reproduce this, I will send it your way.

Thanks!

Jason

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error release objects

2009-09-24 Thread Jason Gauthier

Jason Gauthier wrote:
 All,

   I moved to 2.6 from a 2.5 based application.  I made all the schema
 changes I could reverse engineer from the RELEASE NOTES and
 README.sql.mysql files. (or whatever it was called).
 I did not change my configuration in any way aside from that.

 When I attempt to release some mail (but not all) I am seeing this
 error:

 mail:/var/amavis# /opt/amavisd/sbin/amavisd-release pqDpQoPXKTKq

 450 4.5.0 Failure: Can't open sql obj for reading: No such file or
 directory at (eval 96) line 375, GEN31 line 4.


Well, I see why this happened now. It never saved the data.  I'm
assuming this is an amavis failure and not a local configuration
failure. But suggestions welcome!


Sep 21 16:39:56 mail amavis[24395]: (24395-04) local delivery:  -
bad-header-quarantine, mbx=/var/amavis/virusmails/badh-pqDpQoPXKTKq
Sep 21 16:39:56 mail amavis[24395]: (24395-04) Passed BAD-HEADER,
[208.247.100.71] [202.81.145.130] 1...@321 - 5...@765, quarantine:
badh-pqDpQoPXKTKq, Message-ID:
1928276.423.1253565149054.javamail.r...@domain.localdomain, mail_id:
pqDpQoPXKTKq, Hits: -5.299, size: 50260, queued_as: 6721B2480CA, 4272 ms
Sep 22 10:35:09 mail amavis[15635]: (15635-01) (!!)policy_server FAILED:
Unsafe filename
'badh-pqDpQoPXKTKq\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0...

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error release objects

2009-09-24 Thread Jason Gauthier
Jason Gauthier wrote:
 All,

   I moved to 2.6 from a 2.5 based application.  I made all the schema
 changes I could reverse engineer from the RELEASE NOTES and
 README.sql.mysql files. (or whatever it was called).
 I did not change my configuration in any way aside from that.

 When I attempt to release some mail (but not all) I am seeing this
 error:

 mail:/var/amavis# /opt/amavisd/sbin/amavisd-release pqDpQoPXKTKq

 450 4.5.0 Failure: Can't open sql obj for reading: No such file or
 directory at (eval 96) line 375, GEN31 line 4.


Well, I see why this happened now. It never saved the data.  I'm
assuming this is an amavis failure and not a local configuration
failure. But suggestions welcome!


Sep 21 16:39:56 mail amavis[24395]: (24395-04) local delivery:  -
bad-header-quarantine, mbx=/var/amavis/virusmails/badh-pqDpQoPXKTKq
Sep 21 16:39:56 mail amavis[24395]: (24395-04) Passed BAD-HEADER,
[208.247.100.71] [202.81.145.130] 1...@321 - 5...@765, quarantine:
badh-pqDpQoPXKTKq, Message-ID:
1928276.423.1253565149054.javamail.r...@domain.localdomain, mail_id:
pqDpQoPXKTKq, Hits: -5.299, size: 50260, queued_as: 6721B2480CA, 4272 ms
.Sep 22 10:35:09 mail amavis[15635]: (15635-01) (!!)policy_server
FAILED: Unsafe filename
'badh-pqDpQoPXKTKq\000\000\000\000\000\000\000\000\000\000\000\000\000\
000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0...

I apologize for repeat postings.  This is good information!  =)

I wiped my database. Started clean.  I am receiving emails, that amavisd
claims has a bad header (Although, I'm not convinced). But they are not
releasable.

/opt/amavisd/sbin/amavisd-release xPpBONwHSKfr
450 4.5.0 Failure: Can't open sql obj for reading: No such file or
directory at (eval 96) line 375, GEN216 line 4.

Well, I think I have taken this as far as I can.   I hope someone has
some idea on solving this!

(I also confirmed the bad headers are wrong :(  I might have to revert
versions, as good mail is getting stuck and was not before!)


Thanks,

Jason





--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error release objects

2009-09-23 Thread Jason Gauthier
All,

 

  I moved to 2.6 from a 2.5 based application.  I made all the schema
changes I could reverse engineer from the RELEASE NOTES and
README.sql.mysql files. (or whatever it was called).

 

I did not change my configuration in any way aside from that.

 

When I attempt to release some mail (but not all) I am seeing this
error:

 

mail:/var/amavis# /opt/amavisd/sbin/amavisd-release pqDpQoPXKTKq

450 4.5.0 Failure: Can't open sql obj for reading: No such file or
directory at (eval 96) line 375, GEN31 line 4.

 

Additionally, I can find the message in 'msgs':

 

select * from msgs where mail_id = 'pqDpQoPXKTKq';

1 row in set (0.00 sec)

 

However, it's not in the quarantine table:

 

select * from quarantine where mail_id = 'pqDpQoPXKTKq';

Empty set (0.00 sec)

 

Any help appreciated.   Thanks!

 

Jason

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error release objects

2009-09-23 Thread Michael Scheidell
Jason Gauthier wrote:
 All,

  

   I moved to 2.6 from a 2.5 based application.  I made all the schema
 changes I could reverse engineer from the RELEASE NOTES and
 README.sql.mysql files. (or whatever it was called).

  

 I did not change my configuration in any way aside from that.

  

 When I attempt to release some mail (but not all) I am seeing this
 error:

  

 mail:/var/amavis# /opt/amavisd/sbin/amavisd-release pqDpQoPXKTKq

 450 4.5.0 Failure: Can't open sql obj for reading: No such file or
 directory at (eval 96) line 375, GEN31 line 4.

   

what did you do with partition_tag?
what did you do with multi field keys?

if its in msgs, did it assign a partition tag or just the default 0?

_
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.spammertrap.com
_

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error release objects

2009-09-23 Thread Jason Gauthier
Jason Gauthier wrote:
 All,

   I moved to 2.6 from a 2.5 based application.  I made all the schema
 changes I could reverse engineer from the RELEASE NOTES and
 README.sql.mysql files. (or whatever it was called).
 I did not change my configuration in any way aside from that.

 When I attempt to release some mail (but not all) I am seeing this
 error:

 mail:/var/amavis# /opt/amavisd/sbin/amavisd-release pqDpQoPXKTKq

 450 4.5.0 Failure: Can't open sql obj for reading: No such file or
 directory at (eval 96) line 375, GEN31 line 4.


what did you do with partition_tag?

Nothing.  I just added the field to the tables.  It is defaulted to 0.
I did not add anything to the config to accommodate using multiple
partitions.

what did you do with multi field keys?
I don't remember reading anything about any of these. So, I guess
nothing. I don't know what they are.

if its in msgs, did it assign a partition tag or just the default 0?
It's just 0!



_
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.spammertrap.com

_


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register
now#33;
http://p.sf.net/sfu/devconf
___
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/ 

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error in Log RE fork

2009-09-15 Thread Mark Martinec
Kevin,

 On a test server I'm getting messages like:
 
 server.example.com /usr/sbin/amavisd-new[3925]: (03925-02) LMTP 451
 4.5.0 Error in processing, id=03925-02, parts_decode_ext FAILED: file(1)
 utility (/usr/bin/file) error: run_command (open pipe): Can't fork at
 /usr/lib/perl/5.10/IO/File.pm line 66, GEN31 line 301. at
 /usr/sbin/amavisd-new line 2892, GEN31 line 301.
 
 The only thing I can find is related to swap space - and as this is a
 test server with only 127MB swap then may be this is the issue.  I'll
 see if it happens on the live sever which has more swap space.
 
 Just wondered if anyone has come across this - the only link I can find
 is at: http://laurent.ca/?p=33

Right, lack of sufficient virtual memory (swap space) is a common
reason for fork() failing.

  Mark 

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Error in Log RE fork

2009-09-14 Thread Kevin Bailey
Hi,

On a test server I'm getting messages like:

server.example.com /usr/sbin/amavisd-new[3925]: (03925-02) LMTP 451 
4.5.0 Error in processing, id=03925-02, parts_decode_ext FAILED: file(1) 
utility (/usr/bin/file) error: run_command (open pipe): Can't fork at 
/usr/lib/perl/5.10/IO/File.pm line 66, GEN31 line 301. at 
/usr/sbin/amavisd-new line 2892, GEN31 line 301.

The only thing I can find is related to swap space - and as this is a 
test server with only 127MB swap then may be this is the issue.  I'll 
see if it happens on the live sever which has more swap space.

Just wondered if anyone has come across this - the only link I can find 
is at:

http://laurent.ca/?p=33

Cheers,


-- 
*Kevin Bailey*
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbai...@freewayprojects.com mailto:kbai...@freewayprojects.com
Phone: +44 (0)1752 267090
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Error: nested MAIL

2009-07-31 Thread Stefan Förster
* Diego Gil diego_do...@yahoo.com.ar wrote:
 p...@pepe.com: host localhost [127.0.0.1] said: 503 5.5.1 Failed, 
  id = 28470-17-14, from MTA ([127.0.0.1]: 10025): 503 5.5.1 Error: nested 
 MAIL 
  command (in reply to end of DATA command) 

You said you were using Debian, right? Edit the file

/etc/amavis/conf.d/50-user

and add the following two lines:

$smtp_connection_cache_enable = 0;
$smtp_connection_cache_on_demand = 0;

Save the file and issue the command

/etc/init.d/amavis restart


Ciao
Stefan

P.S: Perhaps the init.d script is called /etc/init.d/amavisd-new, I'm
not 100% sure.
P.P.S: You could also go to packages.debian.org and grab amavisd 2.6.4
from unstable. The session management bug should be fixed there.
P.P.P.S: I actually forgot what I wanted to write.
-- 
Stefan Förster http://www.incertum.net/ Public Key: 0xBBE2A9E9
Recursive: Adj. See Recursive

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Error: nested MAIL

2009-07-30 Thread Diego Gil


Update to lenny and etch problems started ... 


I have major problems with Amavis and do not know if courier-imap and postfix 
are also involved. 


The current version I'm using are: 


amavisd-new 1:2.6.1. dfsg-1 
postfix 2.5.5-1.1 
courier-imap-ssl 4.4.0-2 


Error 




Sometimes sending an email from my local account to another account in
my local domain. Normally I connect to remotely using TLS with SAS. But
I think I also had this error logged in my mailbox from my lan. 


If you do so, please include this problem report. You can 
delete your own text from the attached returned message. 


    The mail system 


p...@pepe.com: host localhost [127.0.0.1] said: 503 5.5.1 Failed, 
 id = 28470-17-14, from MTA ([127.0.0.1]: 10025): 503 5.5.1 Error: nested 
MAIL 
 command (in reply to end of DATA command) 




I appreciate any help. 



  

¡Viví la mejor experiencia en la web!
Descargá gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=ar
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Error reading mail header section: Bad file descriptor

2009-07-12 Thread Mike Cappella
On 7/10/09 2:37 PM, Mark Martinec wrote:
 Mike,

 I saw this today in the logs:

 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) LMTP::10024
 /var/amavis/tmp/amavis-20090708T235357-17707:
 bugzilla-dae...@mozilla.org  -  m...@cappella.us  SIZE=2909 Received:
 from glacier.mikecappella.com ([127.0.0.1]) by localhost
 (glacier.mikecappella.com [127.0.0.1]) (amavisd-new, port 10024) with
 LMTP form...@cappella.us; Thu,  9 Jul 2009 02:09:27 -0700 (PDT)
 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) Checking: D4HKAqV2JfxO
 [63.245.208.146]bugzilla-dae...@mozilla.org  -  m...@cappella.us
 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) p001 1 Content-Type:
 text/plain, size: 1241 B, name:
 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) Error reading mail
 header section: Bad file descriptor

 which seems like it came from from:

  $!==0  or   # returning EBADF at EOF is a perl bug
$!==EBADF ? do_log(0,Error reading mail header section: $!)

  : die Error reading mail header section: $!;

 in inspect_a_bounce_message().  The message was not a bounce message (it
 came from the mozilla bugzilla mailing list).

 So, the question is: did amavis mis-interpret the content?  This is the
 first time I've have seen this error.

 did amavis mis-interpret the content?

 Probably not. See 'sub inspect_a_bounce_message'. Apart from recognizing
 standard notifications, it tries to guess on some other auto-notification
 nonstandard forms. Perhaps the 'From' was a 'postmaster'?
 
 Mark
 

I finally received another that trigger the message.

The From header wasn't postmaster, but the message was a single part, 
auto-notification message, containing header:

 Auto-Submitted: auto-generated

which sets triggered is_auto.

I duplicated the code segment that detected the error condition, and fed 
it the single-part mail message but was unable to reproduce the error. 
There's probably something I'm not doing correctly to reproduce/simulate.

I suppose the real question I had, since the error is output at log 
level 0, was about whether it is of concern, and understanding what is 
triggering it.

I can forward the message offlist.

Thanks,
Mike

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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] Error reading mail header section: Bad file descriptor

2009-07-12 Thread Mark Martinec
Mike,

  Jul  9 02:09:27 glacier amavis[17707]: (17707-13)
Error reading mail header section: Bad file descriptor
 
  which seems like it came from from:
 
   $!==0  or   # returning EBADF at EOF is a perl bug
 $!==EBADF ? do_log(0,Error reading mail header section: $!)
   : die Error reading mail header section: $!;
 
  in inspect_a_bounce_message().

 I suppose the real question I had, since the error is output at log
 level 0, was about whether it is of concern, and understanding what is
 triggering it.

No reason for concern, this message is to be ignored.

It is a result of a known perl bug, presumably fixed in 5.10.1,
where at eof it sometimes inappropriately leaves EBADF as a status.
Most other applications just ignore the status after getline,
amavisd checks it and logs it if EBADF, and throws exception on
other errors.

  Mark

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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] Error reading mail header section: Bad file descriptor

2009-07-10 Thread Mike Cappella
I saw this today in the logs:

Jul  9 02:09:27 glacier amavis[17707]: (17707-13) LMTP::10024 
/var/amavis/tmp/amavis-20090708T235357-17707: 
bugzilla-dae...@mozilla.org - m...@cappella.us SIZE=2909 Received: 
from glacier.mikecappella.com ([127.0.0.1]) by localhost 
(glacier.mikecappella.com [127.0.0.1]) (amavisd-new, port 10024) with 
LMTP for m...@cappella.us; Thu,  9 Jul 2009 02:09:27 -0700 (PDT)
Jul  9 02:09:27 glacier amavis[17707]: (17707-13) Checking: D4HKAqV2JfxO 
[63.245.208.146] bugzilla-dae...@mozilla.org - m...@cappella.us
Jul  9 02:09:27 glacier amavis[17707]: (17707-13) p001 1 Content-Type: 
text/plain, size: 1241 B, name:
Jul  9 02:09:27 glacier amavis[17707]: (17707-13) Error reading mail 
header section: Bad file descriptor

which seems like it came from from:

$!==0  or   # returning EBADF at EOF is a perl bug
  $!==EBADF ? do_log(0,Error reading mail header section: $!)
: die Error reading mail header section: $!;

in inspect_a_bounce_message().  The message was not a bounce message (it 
came from the mozilla bugzilla mailing list).

So, the question is: did amavis mis-interpret the content?  This is the 
first time I've have seen this error.

Thanks,
Mike

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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] Error reading mail header section: Bad file descriptor

2009-07-10 Thread Mark Martinec
Mike,

 I saw this today in the logs:

 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) LMTP::10024
 /var/amavis/tmp/amavis-20090708T235357-17707:
 bugzilla-dae...@mozilla.org - m...@cappella.us SIZE=2909 Received:
 from glacier.mikecappella.com ([127.0.0.1]) by localhost
 (glacier.mikecappella.com [127.0.0.1]) (amavisd-new, port 10024) with
 LMTP for m...@cappella.us; Thu,  9 Jul 2009 02:09:27 -0700 (PDT)
 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) Checking: D4HKAqV2JfxO
 [63.245.208.146] bugzilla-dae...@mozilla.org - m...@cappella.us
 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) p001 1 Content-Type:
 text/plain, size: 1241 B, name:
 Jul  9 02:09:27 glacier amavis[17707]: (17707-13) Error reading mail
 header section: Bad file descriptor

 which seems like it came from from:

 $!==0  or   # returning EBADF at EOF is a perl bug
   $!==EBADF ? do_log(0,Error reading mail header section: $!)

 : die Error reading mail header section: $!;

 in inspect_a_bounce_message().  The message was not a bounce message (it
 came from the mozilla bugzilla mailing list).

 So, the question is: did amavis mis-interpret the content?  This is the
 first time I've have seen this error.

 did amavis mis-interpret the content?

Probably not. See 'sub inspect_a_bounce_message'. Apart from recognizing
standard notifications, it tries to guess on some other auto-notification
nonstandard forms. Perhaps the 'From' was a 'postmaster'?

  Mark

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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] Error with mysql

2009-07-01 Thread Sasa
Hi, I use amavisd-new-2.2.1 with Maia/MySQL Server/Postfix/Clamv and 
sometimes I have this error:

A00301A195  1037884 Tue Jun 30 16:19:29  acco...@domain.com
(host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=22278-02, 
spam_scan FAILED: DBD::mysql::st execute failed: Got a packet bigger than 
'max_allowed_packet' bytes at /usr/sbin/amavisd line 3790, GEN10 line 
36191. (in reply to end of DATA command))

This error is caused from amavis or not ? How can I resolve this problem ?
Thanks.

--

   Salvatore.



--
___
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] ERROR: MISSING REQUIRED BASIC MODULES

2009-05-22 Thread Eric Magutu
Hi,
Thanks it is my site_perl tree. How do I repopulate it?

On Thu, May 21, 2009 at 9:05 PM, Eric W. Bates er...@vineyard.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Eric Magutu wrote:
 Hi,
 I just updated to amavisd-new-2.6.3-1 running on RHEL3. When I try to
 start amavisd I get the following error
 /sbin/service amavisd start
 Starting Mail Virus Scanner (amavisd): ERROR: MISSING REQUIRED BASIC MODULES:
   IO::Stringy
   Unix::Syslog
   Compress::Zlib
   MIME::Words
   MIME::Head
   MIME::Body
   MIME::Entity
   MIME::Parser
   MIME::Decoder
   MIME::Decoder::Base64
   MIME::Decoder::Binary
   MIME::Decoder::QuotedPrint
   MIME::Decoder::NBit
   MIME::Decoder::UU
   MIME::Decoder::Gzip64
   Net::Server
   Net::Server::PreFork
 BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237.

 When I run perl -MCPAN  -e shell and try to install the module it
 tells me the latest version is already installed.
 cpan[1] install IO::Stringy
 CPAN: Storable loaded ok (v2.13)
 Going to read /root/.cpan/Metadata
   Database was generated on Wed, 20 May 2009 16:27:15 GMT
 IO::Stringy is up to date (2.110).



 Can someone tell me how to solve the problem?

 Well, I would first confirm that the Stringy.pm does exist in
 /usr/local/lib/perl5/site_perl/5.8.8/IO/Stringy.pm (or whatever your
 perl lib path should be).

  ** r...@king1 ** ~ ** Thu May 21 13:56:07
 # locate Stringy.pm
 /k12/local/lib/perl5/site_perl/5.8.8/IO/Stringy.pm

 It's possible that you have version weirdness. I've always found it
 somewhat annoying; but when you upgrade perl from 5.a.b -- 5.c.d, you
 have to completely repopulate your site_perl tree because the old path
 is available by default (you can hack that...).

 I might also create a little script:

  ** r...@king1 ** ~ ** Thu May 21 12:52:49
 # perl -e 'use IO::Stringy;'

 And confirm that it runs without errors.

 In which case, you can conclude that IO::Stringy is, in fact, properly
 installed.

 If it's not installed, use CPAN's force option and reinstall and see if
 that helps.

 If it IS installed, then you have to wonder where amavisd is looking for
 the library.  You can print out @INC and make sure the listed paths
 include the one where Stringy.pm lives.

  ** r...@king1 ** ~ ** Thu May 21 14:04:10
 # perl -e 'print join(\n, @INC)'
 /usr/local/lib/perl5/5.8.8/BSDPAN
 /usr/local/lib/perl5/site_perl/5.8.8/mach
 /usr/local/lib/perl5/site_perl/5.8.8
 /usr/local/lib/perl5/site_perl/5.8.2
 /usr/local/lib/perl5/site_perl/5.005
 /usr/local/lib/perl5/site_perl
 /usr/local/lib/perl5/5.8.8/mach
 /usr/local/lib/perl5/5.8.8

 - --
 Eric W. Bates
 Educomp, Inc.
 e...@educompmv.com (please note new address)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkoVl8sACgkQD1roJTQ4LlEbFgCfRQ20DyuZgZoHOjGxPUjPh3kI
 c2QAnR2SrDXcocLm+EqI3fuLGhIGrVsT
 =kTGR
 -END PGP SIGNATURE-




-- 
Regards,
Eric Magutu

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
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] ERROR: MISSING REQUIRED BASIC MODULES

2009-05-22 Thread Eric W. Bates


Eric Magutu wrote:
 Hi,
 Thanks it is my site_perl tree. How do I repopulate it?
 

Meaning the module is actually missing?

cpan has a 'force' option; so you can make cpan reinstall in spite of 
what it thinks with force install IO::Stringy

or

you could install the module the old fashioned way:
download it from http://cpan.org/
decompress it in your /usr/local/src tree
run perl Makefile.pl
run make install

or

A lot of distros (e.g. FreeBSD) have a lot of the modules in their 
package collection:

cd /usr/ports/devel/p5-IO-stringy
make install clean


-- 
Eric W. Bates
er...@vineyard.net

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
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] ERROR: MISSING REQUIRED BASIC MODULES

2009-05-22 Thread Eric Magutu
Hi,
this is the output from perl -V

Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
osname=linux, osvers=2.4.21-4.elsmp, archname=i686-linux
uname='linux server.com 2.4.21-4.elsmp #1 smp fri oct 3 17:52:56
edt 2003 i686 i686 i386 gnulinux '
config_args='-de'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/include/gdbm'
ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux
3.2.3-20)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.2'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Jan 25 2006 11:14:24
  %ENV:

PERL5LIB=/usr/local/lib/perl5/site_perl/5.8.6/i686-linux:/usr/local/lib/perl5/site_perl/5.8.6
  @INC:
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/5.8.6/i686-linux
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl


but the version install is
# rpm -qa perl
perl-5.8.8-12

I tried to force reinstall but no change

When i search for the package with yum
# yum search stringy
Gathering header information file(s) from server(s)
Server: CentOS-3ES - Base
Server: Dag-RHEL-Yum
Server: Red Hat Enterprise 3ES - RPMforge.net - dag
Server: Red Hat Linux 3ES - Updates
Finding updated packages
Downloading needed headers
Looking in available packages for a providing package
No packages found
Looking in installed packages for a providing package
Installed package: perl-IO-stringy.noarch 0:2.110-7.el3.at matches with
 perl-IO-stringy
1 results returned

On Fri, May 22, 2009 at 3:48 PM, Eric W. Bates er...@vineyard.net wrote:


 Eric Magutu wrote:

 Hi,
 Thanks it is my site_perl tree. How do I repopulate it?


 Meaning the module is actually missing?

 cpan has a 'force' option; so you can make cpan reinstall in spite of what
 it thinks with force install IO::Stringy

 or

 you could install the module the old fashioned way:
 download it from http://cpan.org/
 decompress it in your /usr/local/src tree
 run perl Makefile.pl
 run make install

 or

 A lot of distros (e.g. FreeBSD) have a lot of the modules in their package
 collection:

 cd /usr/ports/devel/p5-IO-stringy
 make install clean


 --
 Eric W. Bates
 er...@vineyard.net




-- 
Regards,
Eric Magutu

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
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] ERROR: MISSING REQUIRED BASIC MODULES

2009-05-22 Thread Andrew Ho
Hi Eric,

Have you try to get these 3 packagers from the repository server?

yum install perl-IO-stringy perl-MIME-tools perl-Net-Server

Andrew
--

Eric Magutu wrote:
 Hi,
 I just updated to amavisd-new-2.6.3-1 running on RHEL3. When I try to
 start amavisd I get the following error
 /sbin/service amavisd start
 Starting Mail Virus Scanner (amavisd): ERROR: MISSING REQUIRED BASIC MODULES:
   IO::Stringy
   Unix::Syslog
   Compress::Zlib
   MIME::Words
   MIME::Head
   MIME::Body
   MIME::Entity
   MIME::Parser
   MIME::Decoder
   MIME::Decoder::Base64
   MIME::Decoder::Binary
   MIME::Decoder::QuotedPrint
   MIME::Decoder::NBit
   MIME::Decoder::UU
   MIME::Decoder::Gzip64
   Net::Server
   Net::Server::PreFork
 BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237.

 When I run perl -MCPAN  -e shell and try to install the module it
 tells me the latest version is already installed.
 cpan[1] install IO::Stringy
 CPAN: Storable loaded ok (v2.13)
 Going to read /root/.cpan/Metadata
   Database was generated on Wed, 20 May 2009 16:27:15 GMT
 IO::Stringy is up to date (2.110).



 Can someone tell me how to solve the problem?
   


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
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] ERROR: MISSING REQUIRED BASIC MODULES

2009-05-21 Thread Eric W. Bates
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Eric Magutu wrote:
 Hi,
 I just updated to amavisd-new-2.6.3-1 running on RHEL3. When I try to
 start amavisd I get the following error
 /sbin/service amavisd start
 Starting Mail Virus Scanner (amavisd): ERROR: MISSING REQUIRED BASIC MODULES:
   IO::Stringy
   Unix::Syslog
   Compress::Zlib
   MIME::Words
   MIME::Head
   MIME::Body
   MIME::Entity
   MIME::Parser
   MIME::Decoder
   MIME::Decoder::Base64
   MIME::Decoder::Binary
   MIME::Decoder::QuotedPrint
   MIME::Decoder::NBit
   MIME::Decoder::UU
   MIME::Decoder::Gzip64
   Net::Server
   Net::Server::PreFork
 BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237.
 
 When I run perl -MCPAN  -e shell and try to install the module it
 tells me the latest version is already installed.
 cpan[1] install IO::Stringy
 CPAN: Storable loaded ok (v2.13)
 Going to read /root/.cpan/Metadata
   Database was generated on Wed, 20 May 2009 16:27:15 GMT
 IO::Stringy is up to date (2.110).
 
 
 
 Can someone tell me how to solve the problem?

Well, I would first confirm that the Stringy.pm does exist in
/usr/local/lib/perl5/site_perl/5.8.8/IO/Stringy.pm (or whatever your
perl lib path should be).

 ** r...@king1 ** ~ ** Thu May 21 13:56:07
# locate Stringy.pm
/k12/local/lib/perl5/site_perl/5.8.8/IO/Stringy.pm

It's possible that you have version weirdness. I've always found it
somewhat annoying; but when you upgrade perl from 5.a.b -- 5.c.d, you
have to completely repopulate your site_perl tree because the old path
is available by default (you can hack that...).

I might also create a little script:

 ** r...@king1 ** ~ ** Thu May 21 12:52:49
# perl -e 'use IO::Stringy;'

And confirm that it runs without errors.

In which case, you can conclude that IO::Stringy is, in fact, properly
installed.

If it's not installed, use CPAN's force option and reinstall and see if
that helps.

If it IS installed, then you have to wonder where amavisd is looking for
the library.  You can print out @INC and make sure the listed paths
include the one where Stringy.pm lives.

 ** r...@king1 ** ~ ** Thu May 21 14:04:10
# perl -e 'print join(\n, @INC)'
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.2
/usr/local/lib/perl5/site_perl/5.005
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach
/usr/local/lib/perl5/5.8.8

- --
Eric W. Bates
Educomp, Inc.
e...@educompmv.com (please note new address)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoVl8sACgkQD1roJTQ4LlEbFgCfRQ20DyuZgZoHOjGxPUjPh3kI
c2QAnR2SrDXcocLm+EqI3fuLGhIGrVsT
=kTGR
-END PGP SIGNATURE-

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
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] Error in log when email recieved

2009-05-20 Thread Jason Bassett

Thanks for pointing that out, I thought it was a release candidate for am 
upcoming version.  I have put on the latest from the main website and it does 
perform better.  Although, at the moment it does not seem to pass to 
SpamAssassin but thats for another day.

Thankyou

Original message:

 
 Hello all
 
 I am using Gentoo and have emerged Postfix, ClamAV, SpamAssassin and Amavis
 (amavisd-new-2.6.1-r1)
 
You do realize you are using an OLD BETA version, right?
 
At least, if you want to stay with 2.6.1, use the released version, not the
(RC 1, release candidate #1, ie: BETA)
 
Amavisd-new 2.6.3 was released also, might fix your problems.
 
_
Share your photos with Windows Live Photos – Free.
http://clk.atdmt.com/UKM/go/134665338/direct/01/
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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] Error in log when email recieved

2009-05-19 Thread Mark Martinec
Jason,

 am using Gentoo and have emerged Postfix, ClamAV, SpamAssassin and Amavis
 (amavisd-new-2.6.1-r1)

 Postfix server accepts and sends email fine but upon configuring Amavisd my
 log upon recieving an email shows the following and the mail is not placed
 in the mailbox:

 amavis[29749]: (29749-01) (!!)TROUBLE in process_request: Can't locate
 object method smtp_proto via package Amavis::In::Connection at (eval
 99) line 119.

 I have been unsuccessful in locating similar situations by looking online,
 through the forums, message boards and irc channels.

The Amavis::In::Connection::smtp_proto method has been renamed to
Amavis::In::Connection::appl_proto with 2.6.0, to reflect its more
general semantics. If you are using a custom hook which uses the
old name, changing it to use the new name may suffice.

  Mark

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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] Error in log when email recieved

2009-05-18 Thread Jason Bassett

Hello all

I am using Gentoo and have emerged Postfix, ClamAV, SpamAssassin and Amavis 
(amavisd-new-2.6.1-r1)

Postfix server accepts and sends email fine but upon configuring Amavisd my log 
upon recieving an email shows the following and the mail is not placed in the 
mailbox:

amavis[29749]: (29749-01) (!!)TROUBLE in process_request: Can't locate object 
method smtp_proto via package Amavis::In::Connection at (eval 99) line 119.

I have been unsuccessful in locating similar situations by looking online, 
through the forums, message boards and irc channels.

Any help and pointers greatly appreciated.

Thankyou

J

_
Beyond Hotmail — see what else you can do with Windows Live.
http://clk.atdmt.com/UKM/go/134665375/direct/01/
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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] Error in log when email recieved

2009-05-18 Thread Michael Scheidell
 
 Hello all
 
 I am using Gentoo and have emerged Postfix, ClamAV, SpamAssassin and Amavis
 (amavisd-new-2.6.1-r1)

You do realize you are using an OLD BETA version, right?

At least, if you want to stay with 2.6.1, use the released version, not the
(RC 1, release candidate #1, ie: BETA)

Amavisd-new 2.6.3 was released also, might fix your problems.

-- 
Michael Scheidell, CTO
|SECNAP Network Security
Finalist 2009 Network Products Guide Hot Companies
FreeBSD SpamAssassin Ports maintainer


_
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.secnap.com/products/spammertrap/
_

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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] Error reading from file(1) utility

2009-04-02 Thread Maurizio Marini
On Wednesday 01 April 2009, Mark Martinec wrote:
 Maurizio,

 Please send a sample file causing the problem to the maintainer
 of the file(1) utility, along with a version you are using.
 You may want to try first if the current version already
 fixes the bug.

 ftp://ftp.astron.com/pub/file/
 mailing list: f...@mx.gw.com

Tnx Mark
thsi is a debian unstable box amd64 kernel type
it's a debian already filed bug
debian unstable x86 is not affected

http://bugs.debian.org/cgi-bin/pkgreport.cgi?package=file
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515603

i solved downgrading as suggested



thnx anyway

Maurizio


--
___
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] Error reading from file(1) utility

2009-04-01 Thread Mark Martinec
Maurizio,

 i have a mail hanging in the queue with this error:

 (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing,
 id=21148-02, parts_decode_ext FAILED: file(1) utility (/usr/bin/file)
 error: Error reading from file(1) utility: 9 at (eval 89) line 167, GEN52
 line 41. at (eval 89) line 193. (in reply to end of DATA command))

 it seems the mail contains an attach that /usr/bin/file utility is not able
 to decode

So it seems.

 there are 3 parts in parts directory:
 /var/lib/amavis/tmp/amavis-20090331T152844-21148/parts # ls -la
 total 8200
 drwxr-x--- 2 amavis amavis4096 Mar 31 15:29 .
 drwxr-x--- 3 amavis amavis4096 Mar 31 15:28 ..
 -rw-r- 1 amavis amavis 159 Mar 31 15:28 p001
 -rw-r- 1 amavis amavis 8368128 Mar 31 15:29 p002
 -rw-r- 1 amavis amavis 106 Mar 31 15:29 p003

 /var/lib/amavis/tmp/amavis-20090331T152844-21148/parts # file p002
 *** glibc detected *** file: free(): invalid next size (normal):
 0x006241e0 *** === Backtrace: =
...
  [vdso] p002: Aborted

 there is something in excel attach that make /usr/bin/file abort
 i fear i cannot do anything to solve this issue

Please send a sample file causing the problem to the maintainer
of the file(1) utility, along with a version you are using.
You may want to try first if the current version already
fixes the bug.

ftp://ftp.astron.com/pub/file/
mailing list: f...@mx.gw.com

  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] Error?

2008-12-15 Thread Mark Martinec
Luis,

 Dec 14 08:31:56 soekris amavis[13395]: (!)_DIE: Can't locate
 Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC

 I've fixed that, using sa-compile

Another solution is to comment-out a line:
  loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
in one of your .pre files, so that compiled regexp
won't be used. This could save you some memory.

  The memory shortage problem won't go away with  2.6.2, it's just that
  I expect you'd get a more informative error report (which is what I'd
  be interested-in to get a confirmation for).

 After upgrading to 2.6.2rc2

 Dec 14 10:34:14.145 soekris.okay.com.mx /usr/sbin/amavisd[14867]:
 (14867-03) LMTP 451 4.5.0 TempFailed, id=14867-03, from
 MTA([127.0.0.1]:10025): 451 4.5.0 Error in processing, id=14832-05,
 parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error:
 run_command: can't fork: Cannot allocate memory at /usr/sbin/amavisd line
 2936, GEN11 line 1351. at (eval 101) line 193, GEN11 line 1351.

Thanks for trying it. That's good, the new error report:

file(1) utility (/usr/bin/file) error:
  run_command: can't fork: Cannot allocate memory
  at /usr/sbin/amavisd line 2936

is more informative then the old one:

file(1) utility (/usr/bin/file) error:
  run_command (open pipe): Can't fork
  at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/IO/File.pm
  line 188

like I hoped it would be.

 this error is more and more common than 2.6.1

Probably because a bit more memory is used now.
Try to shed off some of the memory usage by
disabling rules and features not essential,
like compiled rules plugin, maybe some SARE rules,
database usage, ...

  Mark

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-15 Thread Luis Daniel Lucio Quiroz
I was thinkig that I you use 2XS then it would be faster because it was 
compilled.


On Monday 15 December 2008 08:43:23 Mark Martinec wrote:
 Luis,

  Dec 14 08:31:56 soekris amavis[13395]: (!)_DIE: Can't locate
  Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC
 
  I've fixed that, using sa-compile

 Another solution is to comment-out a line:
   loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
 in one of your .pre files, so that compiled regexp
 won't be used. This could save you some memory.

   The memory shortage problem won't go away with  2.6.2, it's just that
   I expect you'd get a more informative error report (which is what I'd
   be interested-in to get a confirmation for).
 
  After upgrading to 2.6.2rc2
 
  Dec 14 10:34:14.145 soekris.okay.com.mx /usr/sbin/amavisd[14867]:
  (14867-03) LMTP 451 4.5.0 TempFailed, id=14867-03, from
  MTA([127.0.0.1]:10025): 451 4.5.0 Error in processing, id=14832-05,
  parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error:
  run_command: can't fork: Cannot allocate memory at /usr/sbin/amavisd line
  2936, GEN11 line 1351. at (eval 101) line 193, GEN11 line 1351.

 Thanks for trying it. That's good, the new error report:

 file(1) utility (/usr/bin/file) error:
   run_command: can't fork: Cannot allocate memory
   at /usr/sbin/amavisd line 2936

 is more informative then the old one:

 file(1) utility (/usr/bin/file) error:
   run_command (open pipe): Can't fork
   at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/IO/File.pm
   line 188

 like I hoped it would be.

  this error is more and more common than 2.6.1

 Probably because a bit more memory is used now.
 Try to shed off some of the memory usage by
 disabling rules and features not essential,
 like compiled rules plugin, maybe some SARE rules,
 database usage, ...

   Mark

 ---
--- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
 Nevada. The future of the web can't happen without you.  Join us at MIX09
 to help pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com
/ ___
 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/



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-14 Thread Luis Daniel Lucio Quiroz
Hi Mark and others,

I just update to 2.6.2 rc2 and I got other error:

Dec 14 08:31:56 soekris amavis[13395]: (!)_DIE: Can't locate 
Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC (@INC contains: 
/var/lib/spamassassin/compiled/5.010/3.002005 
/var/lib/spamassassin/compiled/5.010/3.002005/auto lib 
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-
thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/i386-
linux-thread-multi/usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl) at (eval 730) line 1, DATA line 275.
Dec 14 08:31:56 soekris amavis[13395]: (!)_DIE: Can't locate 
Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC (@INC contains: 
/var/lib/spamassassin/compiled/5.010/3.002005 
/var/lib/spamassassin/compiled/5.010/3.002005/auto lib 
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-
thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/i386-
linux-thread-multi/usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl) at (eval 730) line 1, DATA line 275.
Dec 14 08:31:56 soekris amavis[13395]: (!)_DIE: Can't locate 
Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC (@INC contains: 
/var/lib/spamassassin/compiled/5.010/3.002005 
/var/lib/spamassassin/compiled/5.010/3.002005/auto lib 
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-
thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/i386-
linux-thread-multi/usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl) at (eval 730) line 1, DATA line 275.\nBEGIN 
failed--compilation aborted at(eval 730) line 1, DATA line 275.
Dec 14 08:31:56 soekris amavis[13395]: (!)_DIE: Can't locate 
Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC (@INC contains: 
/var/lib/spamassassin/compiled/5.010/3.002005 
/var/lib/spamassassin/compiled/5.010/3.002005/auto lib 
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-
thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/i386-
linux-thread-multi/usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl) at (eval 730) line 1, DATA line 275.\nBEGIN 
failed--compilation aborted at(eval 730) line 1, DATA line 275.


I got spamassassin 3.2.5
[r...@soekris dieu]# rpm -qi spamassassin   

Name: spamassassin Relocations: (not relocatable)   

Version : 3.2.5 Vendor: Mandriva

Release : 5mdv2009.0Build Date: jeu. 11 sept. 2008 
10:37:39 CDT 
Install Date: sam. 06 déc. 2008 14:20:12 CST  Build Host: n4.mandriva.com   

Group   : Networking/Mail   Source RPM: 
spamassassin-3.2.5-5mdv2009.0.src.rpm   

Size: 860341   License: Apache License  

Signature   : DSA/SHA1, jeu. 02 oct. 2008 19:13:32 CDT, Key ID 
e7898ae070771ff3
 
Packager: Oden Eriksson oeriks...@mandriva.com

URL : http://spamassassin.org/  

My top says: 
top - 08:43:46 up  9:34,  1 user,  load average: 0.61, 0.37, 0.14
Tasks:  55 total,   1 running,  54 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3%us,  0.3%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:255692k total,   212304k used,43388k free,4k buffers
Swap:0k total,0k used,0k free,28768k cached

and ulimit -a
[r...@soekris dieu]# ulimit -a
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 20
file size   (blocks, -f) unlimited
pending signals (-i) 2048
max locked memory   (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files  (-n) 4096
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) unlimited
max user processes  (-u) 2048
virtual 

Re: [AMaViS-user] Error?

2008-12-14 Thread Luis Daniel Lucio Quiroz
I've fixed that, using sa-compile

No I have this:
Dec 14 09:21:48 soekris amavis[14456]: (14456-01) (!!)TROUBLE in check_mail: 
delivery-notification FAILED: temporarily unable to send DSN to 
yrid...@patula.com: 451 4.5.0 TempFailed, id=14456-01, from 
MTA([127.0.0.1]:10025): 451 4.5.0 Error in processing, id=14457-02, 
parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error: run_command: 
can't fork: Cannot allocate memory at /usr/sbin/amavisd line 2936. at (eval 
101) line 193. at /usr/sbin/amavisd line 11045. 

Anny comment?
On Tuesday 09 December 2008 18:52:59 Mark Martinec wrote:
 Luis,

  The fact is that this appliances does not have Swap because it runs over
  a flash card. Look:
  Mem:255692k total,   248524k used, 7168k free,4k buffers
  Swap:0k total,0k used,0k free,27668k cached
  If I do a swat at flash card then performance will go down.  I only have
  2 amavis children.
 
  I could do amavis 2.6.2 rpm to test if it has been corrected.

 The memory shortage problem won't go away with  2.6.2, it's just that
 I expect you'd get a more informative error report (which is what I'd
 be interested-in to get a confirmation for).

  You mean this:
  - avoid problematic perl constructs open('|-') and open('-|') which fail
to catch certain fork errors, or waits indefinitely when resources
are tight; just explicitly create a pipe and call fork in subroutines
run_command, run_command_consumer and in run_as_subprocess. The change
possibly also solves some mystery cases where amavisd would appear
to hang when resources are tight (running out of swap space or near a
maxprocesses limit) instead of reporting a fork failure. Problem with
fork failing without giving a reason for failure reported by Uwe
  Kiewel;

 Yes, exactly.

  I realiza that If i put:
  vm.swappiness = 0
  Error does not seems to be present, yet.

 Seems you'll have to find ways of reducing memory needs of amavisd
 and SpamAssassin. If you use SARE rules, perhaps removing some
 sets of these rules may be a good start. Turning off berkeley db use
 (nanny + snmp statistics + cache) by  $enable_db=0;  may help a little.

   Mark

 ---
--- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
 Nevada. The future of the web can't happen without you.  Join us at MIX09
 to help pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com
/ ___
 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/



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-14 Thread Luis Daniel Lucio Quiroz
After upgradint to 2.6.2rc2

Dec 14 10:34:14.145 soekris.okay.com.mx /usr/sbin/amavisd[14867]: (14867-03) 
LMTP 451 4.5.0 TempFailed, id=14867-03, from MTA([127.0.0.1]:10025): 451 
4.5.0 Error in processing, id=14832-05, parts_decode_ext FAILED: file(1) 
utility (/usr/bin/file) error: run_command: can't fork: Cannot allocate memory 
at /usr/sbin/amavisd line 2936, GEN11 line 1351. at (eval 101) line 193, 
GEN11 line 1351. 

this error is more and more common than 2.6.1
On Tuesday 09 December 2008 18:52:59 Mark Martinec wrote:
 Luis,

  The fact is that this appliances does not have Swap because it runs over
  a flash card. Look:
  Mem:255692k total,   248524k used, 7168k free,4k buffers
  Swap:0k total,0k used,0k free,27668k cached
  If I do a swat at flash card then performance will go down.  I only have
  2 amavis children.
 
  I could do amavis 2.6.2 rpm to test if it has been corrected.

 The memory shortage problem won't go away with  2.6.2, it's just that
 I expect you'd get a more informative error report (which is what I'd
 be interested-in to get a confirmation for).

  You mean this:
  - avoid problematic perl constructs open('|-') and open('-|') which fail
to catch certain fork errors, or waits indefinitely when resources
are tight; just explicitly create a pipe and call fork in subroutines
run_command, run_command_consumer and in run_as_subprocess. The change
possibly also solves some mystery cases where amavisd would appear
to hang when resources are tight (running out of swap space or near a
maxprocesses limit) instead of reporting a fork failure. Problem with
fork failing without giving a reason for failure reported by Uwe
  Kiewel;

 Yes, exactly.

  I realiza that If i put:
  vm.swappiness = 0
  Error does not seems to be present, yet.

 Seems you'll have to find ways of reducing memory needs of amavisd
 and SpamAssassin. If you use SARE rules, perhaps removing some
 sets of these rules may be a good start. Turning off berkeley db use
 (nanny + snmp statistics + cache) by  $enable_db=0;  may help a little.

   Mark

 ---
--- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
 Nevada. The future of the web can't happen without you.  Join us at MIX09
 to help pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com
/ ___
 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/



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-09 Thread mouss
Luis Daniel Lucio Quiroz a écrit :
 Using CAT (language pluging) I got this:
 
 Dec  8 20:07:04 soekris amavis[24051]: (24051-06) (!!)TROUBLE in check_mail: 
 parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error: run_command 
 (open pipe): Can't fork at /usr/lib/perl5/5.10.0/i386-linux-thread-
 multi/IO/File.pm line 188. at /usr/sbin/amavisd line 2873.   
 
 
 Under
 Mandriva 2009.0
 Amavis 2.6.2
 Spamassassin 3.2.5
 
 is it a bug?
 

there was an old problem related to Net:Server. maybe it's the same?
what version of Net:Server do you use?

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-09 Thread Mark Martinec
Luis,

 Using CAT (language pluging) I got this:

 Dec  8 20:07:04 soekris amavis[24051]: (24051-06) (!!)TROUBLE in
 check_mail: parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error:
 run_command (open pipe): Can't fork at
 /usr/lib/perl5/5.10.0/i386-linux-thread- multi/IO/File.pm line 188. at
 /usr/sbin/amavisd line 2873.

 Under
 Mandriva 2009.0
 Amavis 2.6.2
 Spamassassin 3.2.5

 is it a bug?

It looks like you are running amavisd-new-2.6.1, not 2.6.2.

There are a couple of reasons why fork can fail, the usual one
is a shortage on swap space. Increase swap space, of reduce
the number of amavisd child processes.

Out of curiosity, I'd be interested how 2.6.2 (-rc2) fares in the same
environment - code dealing with forking and pipe creation has been
revised, so you'd hopefully get a more informative failure reason.

  Mark

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-09 Thread Luis Daniel Lucio Quiroz
The fact is that this appliances does not have Swap because it runs over a 
flash card. Look:

top - 15:12:58 up 37 min,  2 users,  load average: 0.05, 0.07, 0.27
Tasks:  67 total,   1 running,  66 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3%us,  0.3%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:255692k total,   248524k used, 7168k free,4k buffers
Swap:0k total,0k used,0k free,27668k cached


If I do a swat at flash card then performance will go down.  I only have 2 
amavis children.  

I could do amavis 2.6.2 rpm to test if it has been corrected.

Sorry you are right, amavis 2.6.1
On Tuesday 09 December 2008 05:41:36 Mark Martinec wrote:
 Luis, 

  Using CAT (language pluging) I got this:
 
  Dec  8 20:07:04 soekris amavis[24051]: (24051-06) (!!)TROUBLE in
  check_mail: parts_decode_ext FAILED: file(1) utility (/usr/bin/file)
  error: run_command (open pipe): Can't fork at
  /usr/lib/perl5/5.10.0/i386-linux-thread- multi/IO/File.pm line 188. at
  /usr/sbin/amavisd line 2873.
 
  Under
  Mandriva 2009.0
  Amavis 2.6.2
  Spamassassin 3.2.5
 
  is it a bug?

 It looks like you are running amavisd-new-2.6.1, not 2.6.2.

 There are a couple of reasons why fork can fail, the usual one
 is a shortage on swap space. Increase swap space, of reduce
 the number of amavisd child processes.

 Out of curiosity, I'd be interested how 2.6.2 (-rc2) fares in the same
 environment - code dealing with forking and pipe creation has been
 revised, so you'd hopefully get a more informative failure reason.

   Mark

 ---
--- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
 Nevada. The future of the web can't happen without you.  Join us at MIX09
 to help pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com
/ ___
 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/



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-09 Thread Luis Daniel Lucio Quiroz
You mean this:
- avoid problematic perl constructs open('|-') and open('-|') which fail
  to catch certain fork errors, or waits indefinitely when resources
  are tight; just explicitly create a pipe and call fork in subroutines
  run_command, run_command_consumer and in run_as_subprocess. The change
  possibly also solves some mystery cases where amavisd would appear
  to hang when resources are tight (running out of swap space or near a
  maxprocesses limit) instead of reporting a fork failure. Problem with
  fork failing without giving a reason for failure reported by Uwe Kiewel;


I realiza that If i put:
vm.swappiness = 0
Error does not seems to be present, yet.
On Tuesday 09 December 2008 05:41:36 Mark Martinec wrote:
 Luis,

  Using CAT (language pluging) I got this:
 
  Dec  8 20:07:04 soekris amavis[24051]: (24051-06) (!!)TROUBLE in
  check_mail: parts_decode_ext FAILED: file(1) utility (/usr/bin/file)
  error: run_command (open pipe): Can't fork at
  /usr/lib/perl5/5.10.0/i386-linux-thread- multi/IO/File.pm line 188. at
  /usr/sbin/amavisd line 2873.
 
  Under
  Mandriva 2009.0
  Amavis 2.6.2
  Spamassassin 3.2.5
 
  is it a bug?

 It looks like you are running amavisd-new-2.6.1, not 2.6.2.

 There are a couple of reasons why fork can fail, the usual one
 is a shortage on swap space. Increase swap space, of reduce
 the number of amavisd child processes.

 Out of curiosity, I'd be interested how 2.6.2 (-rc2) fares in the same
 environment - code dealing with forking and pipe creation has been
 revised, so you'd hopefully get a more informative failure reason.

   Mark

 ---
--- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
 Nevada. The future of the web can't happen without you.  Join us at MIX09
 to help pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com
/ ___
 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/




--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-09 Thread Mark Martinec
Luis,

 The fact is that this appliances does not have Swap because it runs over a
 flash card. Look:
 Mem:255692k total,   248524k used, 7168k free,4k buffers
 Swap:0k total,0k used,0k free,27668k cached
 If I do a swat at flash card then performance will go down.  I only have 2
 amavis children.

 I could do amavis 2.6.2 rpm to test if it has been corrected.

The memory shortage problem won't go away with  2.6.2, it's just that
I expect you'd get a more informative error report (which is what I'd
be interested-in to get a confirmation for).

 You mean this:
 - avoid problematic perl constructs open('|-') and open('-|') which fail
   to catch certain fork errors, or waits indefinitely when resources
   are tight; just explicitly create a pipe and call fork in subroutines
   run_command, run_command_consumer and in run_as_subprocess. The change
   possibly also solves some mystery cases where amavisd would appear
   to hang when resources are tight (running out of swap space or near a
   maxprocesses limit) instead of reporting a fork failure. Problem with
   fork failing without giving a reason for failure reported by Uwe Kiewel;

Yes, exactly.

 I realiza that If i put:
 vm.swappiness = 0
 Error does not seems to be present, yet.

Seems you'll have to find ways of reducing memory needs of amavisd
and SpamAssassin. If you use SARE rules, perhaps removing some
sets of these rules may be a good start. Turning off berkeley db use
(nanny + snmp statistics + cache) by  $enable_db=0;  may help a little.

  Mark

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error?

2008-12-08 Thread Luis Daniel Lucio Quiroz
Using CAT (language pluging) I got this:

Dec  8 20:07:04 soekris amavis[24051]: (24051-06) (!!)TROUBLE in check_mail: 
parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error: run_command 
(open pipe): Can't fork at /usr/lib/perl5/5.10.0/i386-linux-thread-
multi/IO/File.pm line 188. at /usr/sbin/amavisd line 2873.   


Under
Mandriva 2009.0
Amavis 2.6.2
Spamassassin 3.2.5

is it a bug?

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Error

2008-10-14 Thread Mark Martinec
Hannes,

  I installed Postfix on a Debian Etch.
  After that I installed Amavis but it didn't start
 
  I get this error message:
 
  Starting amavisd: Insecure directory in $ENV{PATH} while
  running with -T switch at /usr/sbin/amavisd-new line 2030.
 
  2027   # my($old_path) = $ENV{PATH};
  2028   # $ENV{PATH} = /bin:/usr/bin;
  2029 foreach my $dir (@dirs) {
  2030 push(@config_files, `run-parts --list $dir`);
  2031 }
  2032   # $ENV{PATH} = $old_path;

 This code is not in amavisd-new as distributed by me. Looks like
 a Debian packager's addition.


 Check if any of the following directories are world-writable:

 /
 /usr
 /usr/share
 /usr/share/amavis
 /usr/share/amavis/conf.d
 /etc
 /etc/amavis
 /etc/amavis/conf.d

Sorry, I provided the wrong list of directories to check permissions
of (although it's wise to check these too). Perl is complaining about
one of the directories in your PATH being world writable (when it
tries to run a Debian program 'run-parts'), not the data directories
as I wrote earlier.

  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/ 


Re: [AMaViS-user] Error

2008-10-12 Thread Gary V
On 10/12/08, Hannes Hellinger [EMAIL PROTECTED] wrote:
 Thank you,
 the problem was:

 drwxr-xr-x 57 nobody nogroup 4096 Oct 12 09:12 /etc

 I changed it to

 drwxr-xr-x 57 root root 4096 Oct 12 09:12 /etc

 Are the permissions ok ?  drwxr-xr-x


That's what I have, 0755

Of course Mark is right about the entire path to
/usr/share/amavis/conf.d also, as a couple config files
are stored there too.

sfa:~# ls -ld /
drwxr-xr-x 23 root root 4096 2008-10-11 19:24 /

sfa:~# ls -ld /etc
drwxr-xr-x 64 root root 4096 2008-10-12 07:56 /etc

sfa:~# ls -ld /etc/amavis
drwxr-xr-x 4 root root 4096 2008-10-12 07:56 /etc/amavis

sfa:~# ls -ld /etc/amavis/conf.d
drwxr-xr-x 2 root root 4096 2008-10-12 07:56 /etc/amavis/conf.d

sfa:~# ls -ld /usr
drwxr-xr-x 11 root root 4096 2007-06-01 07:55 /usr

sfa:~# ls -ld /usr/share
drwxr-xr-x 82 root root 4096 2008-10-12 07:56 /usr/share

sfa:~# ls -ld /usr/share/amavis
drwxr-xr-x 3 root root 4096 2008-10-12 07:56 /usr/share/amavis

sfa:~# ls -ld /usr/share/amavis/conf.d
drwxr-xr-x 2 root root 4096 2008-10-12 07:56 /usr/share/amavis/conf.d

sfa:~# ls -l /etc/amavis/conf.d
total 56
-rw-r--r-- 1 root root  1458 2007-02-24 11:30 01-debian
-rw-r--r-- 1 root root   692 2007-02-24 11:30 05-domain_id
-rw-r--r-- 1 root root   235 2007-02-24 11:30 05-node_id
-rw-r--r-- 1 root root 13907 2007-02-24 11:30 15-av_scanners
-rw-r--r-- 1 root root   554 2007-02-24 11:30 15-content_filter_mode
-rw-r--r-- 1 root root  9187 2007-02-24 11:30 20-debian_defaults
-rw-r--r-- 1 root root   573 2007-02-24 11:30 25-amavis_helpers
-rw-r--r-- 1 root root  2130 2007-02-24 11:30 30-template_localization
-rw-r--r-- 1 root root   318 2007-02-24 11:30 50-user

sfa:~# ls -l /usr/share/amavis/conf.d
total 8
-rw-r--r-- 1 root root 855 2007-02-24 11:30 10-debian_scripts
-rw-r--r-- 1 root root 648 2007-02-24 11:30 20-package

-- 
Gary V

-
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] Error

2008-10-11 Thread Hannes Hellinger










Hello,
I installed Postfix on a Debian Etch.
After that I installed Amavis but it didn't start

I get this error message:



Starting amavisd: Insecure directory in $ENV{PATH} while
running with -T switch at /usr/sbin/amavisd-new line 2030.

 

2027   # my($old_path) = $ENV{PATH};

2028   # $ENV{PATH} = /bin:/usr/bin;

2029 foreach my $dir (@dirs) {

2030 push(@config_files, `run-parts --list $dir`);

2031 }

2032   # $ENV{PATH} = $old_path;


Please help me

Thanks

Messenger Online Treff: Spontan chatten, über Hobbies reden, sofort Spass 
haben? Jetzt klicken!

_
Hotmail to go! Hol' Dir Hotmail aufs Handy!
http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=de-de
-
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] Error

2008-10-11 Thread Gary V
On 10/11/08, Hannes Hellinger [EMAIL PROTECTED] wrote:
 Hello,
 I installed Postfix on a Debian Etch.
 After that I installed Amavis but it didn't start

 I get this error message:
 Starting amavisd: Insecure directory in $ENV{PATH} while
 running with -T switch at /usr/sbin/amavisd-new line 2030.

 2030 push(@config_files, `run-parts --list $dir`);

 2031 }

I would look and see who owns /etc, /etc/amavis and /etc/amavis/conf.d
and also see what the permissions are on the files under
/etc/amavis/conf.d. Should be owned by root. Show us:

ls -ld /etc
ls -ld /etc/amavis
ls -ld /etc/amavis.conf.d
ls -l /etc/amavis/conf.d

-- 
Gary V

-
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] Error

2008-10-11 Thread Mark Martinec
Hannes,


 I installed Postfix on a Debian Etch.
 After that I installed Amavis but it didn't start

 I get this error message:

 Starting amavisd: Insecure directory in $ENV{PATH} while
 running with -T switch at /usr/sbin/amavisd-new line 2030.

 2027   # my($old_path) = $ENV{PATH};
 2028   # $ENV{PATH} = /bin:/usr/bin;
 2029 foreach my $dir (@dirs) {
 2030 push(@config_files, `run-parts --list $dir`);
 2031 }
 2032   # $ENV{PATH} = $old_path;

This code is not in amavisd-new as distributed by me. Looks like
a Debian packager's addition.
 
 
Check if any of the following directories are world-writable:
 
/
/usr
/usr/share
/usr/share/amavis
/usr/share/amavis/conf.d
/etc
/etc/amavis
/etc/amavis/conf.d
 
   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/ 


Re: [AMaViS-user] Error strange

2008-09-04 Thread Eduardo Júnior
Hi,


On Thu, Aug 28, 2008 at 10:40 AM, Eduardo Júnior [EMAIL PROTECTED]wrote:


 Hi,





 Aug 27 07:58:31 magneto postfix/smtpd[21997]: connect from
 localhost.localdomain[127.0.0.1]
 Aug 27 07:58:31 magneto postfix/smtpd[21997]: warning: Connection rate
 limit
 exceeded: 85 from localhost.localdomain[127.0.0.1] for service
 127.0.0.1:10025
 Aug 27 07:58:31 magneto postfix/smtpd[21997]: disconnect from
 localhost.localdomain[127.0.0.1]



 Excellent, that explains the problem clearly.

 In master.cf add to your 10025...smtp reinjection entry:
  -o smtpd_client_event_limit_exceptions=127.0.0.1

 references:
 http://www.postfix.org/anvil.8.html
 http://www.postfix.org/postconf.5.html#smtpd_client_event_limit_exceptions



 So it was what was causing this error generated in the log of amavis:
 Connection rate limit
 exceeded: 85 from localhost.localdomain[127.0.0.1] for service
 127.0.0.1:10025


 thanks.
 I will test in a time of low traffic and give a return.




I tested and work well.
Monitored by logs and the messages was consistents

Thanks for help and explanations.

[] ´s


-- 
Eduardo Júnior
GNU/Linux user #423272

:wq
-
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] Error strange

2008-08-28 Thread Eduardo Júnior
Hi,





 Aug 27 07:58:31 magneto postfix/smtpd[21997]: connect from
 localhost.localdomain[127.0.0.1]
 Aug 27 07:58:31 magneto postfix/smtpd[21997]: warning: Connection rate
 limit
 exceeded: 85 from localhost.localdomain[127.0.0.1] for service
 127.0.0.1:10025
 Aug 27 07:58:31 magneto postfix/smtpd[21997]: disconnect from
 localhost.localdomain[127.0.0.1]



 Excellent, that explains the problem clearly.

 In master.cf add to your 10025...smtp reinjection entry:
  -o smtpd_client_event_limit_exceptions=127.0.0.1

 references:
 http://www.postfix.org/anvil.8.html
 http://www.postfix.org/postconf.5.html#smtpd_client_event_limit_exceptions



So it was what was causing this error generated in the log of amavis:
Connection rate limit
exceeded: 85 from localhost.localdomain[127.0.0.1] for service
127.0.0.1:10025


thanks.
I will test in a time of low traffic and give a return.


[]´s


-- 
Eduardo Júnior
GNU/Linux user #423272

:wq
-
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] Error strange

2008-08-27 Thread Eduardo Júnior
Hi,



On Mon, Aug 25, 2008 at 11:47 AM, Eduardo Júnior [EMAIL PROTECTED]wrote:


 Hi,


 On Mon, Aug 25, 2008 at 9:52 AM, Mark Martinec 
 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Eduardo,

  I'm getting this error in some messages that pass through amavis:
  amavis[25680]: (25680-09-30) Blocked TEMPFAIL
 
  what is the reason for this error?

 A possible reason is that MTA gave a 4xx error when amavisd
 tried to submit checked mail back to it. There should be
 more detailed information in the log nearby.




The log complete:


Aug 27 07:58:29 magneto amavis[21705]: (21705-03-72) Blocked TEMPFAIL, [
201.65.67.26] [EMAIL PROTECTED] - [EMAIL PROTECTED], Message-ID:
[EMAIL PROTECTED], mail_id: ixnb-t4SqEdC, Hits: 3.858,
4335 ms






 That is the main part of the log. The remainder is composed of addresses of
 sender and recipients, mail_id, Hits.

 But I noticed one thing: the messages that I return this error, all have as
 a recipient address an area that is unachievable, even the result of the
 implementation of returning I nslookup the dns servers and mx the field.

 What other reasons get this error has occurred?
 Post it in the list of postfix help, no?



 []´s

 --
 Eduardo Júnior
 GNU/Linux user #423272

 :wq




-- 
Eduardo Júnior
GNU/Linux user #423272

:wq
-
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] Error strange

2008-08-27 Thread Noel Jones
Eduardo Júnior wrote:
 Hi,
 
 
 
 On Mon, Aug 25, 2008 at 11:47 AM, Eduardo Júnior [EMAIL PROTECTED]wrote:
 
 Hi,


 On Mon, Aug 25, 2008 at 9:52 AM, Mark Martinec 
 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Eduardo,

 I'm getting this error in some messages that pass through amavis:
 amavis[25680]: (25680-09-30) Blocked TEMPFAIL

 what is the reason for this error?
 A possible reason is that MTA gave a 4xx error when amavisd
 tried to submit checked mail back to it. There should be
 more detailed information in the log nearby.

 
 
 The log complete:
 
 
 Aug 27 07:58:29 magneto amavis[21705]: (21705-03-72) Blocked TEMPFAIL, [
 201.65.67.26] [EMAIL PROTECTED] - [EMAIL PROTECTED], Message-ID:
 [EMAIL PROTECTED], mail_id: ixnb-t4SqEdC, Hits: 3.858,
 4335 ms
 
 

There will be a log entry from postfix referring to that 
recipient around the same time.  That should explain the reject.

-- 
Noel Jones


-
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] Error strange

2008-08-27 Thread Eduardo Júnior
Hi,




 The log complete:


 Aug 27 07:58:29 magneto amavis[21705]: (21705-03-72) Blocked TEMPFAIL, [
 201.65.67.26] [EMAIL PROTECTED] - [EMAIL PROTECTED], Message-ID:
 [EMAIL PROTECTED], mail_id: ixnb-t4SqEdC, Hits:
 3.858,
 4335 ms



 There will be a log entry from postfix referring to that recipient around
 the same time.  That should explain the reject.




Aug 27 07:58:31 magneto postfix/smtpd[21997]: connect from
localhost.localdomain[127.0.0.1]
Aug 27 07:58:31 magneto postfix/smtpd[21997]: warning: Connection rate limit
exceeded: 85 from localhost.localdomain[127.0.0.1] for service
127.0.0.1:10025
Aug 27 07:58:31 magneto postfix/smtpd[21997]: disconnect from
localhost.localdomain[127.0.0.1]


Aug 27 07:58:31 magneto amavis[21705]: (21705-03-75) (!) FWD via SMTP:
[EMAIL PROTECTED] - [EMAIL PROTECTED],[EMAIL PROTECTED], 450 4.4.1 Can't
connect to 127.0.0.1 port 10025,  () at (eval 42) line 145, GEN22 line
201441., MTA([127.0.0.1]:10025), id=21705-03-75


Aug 27 07:58:31 magneto amavis[21705]: (21705-03-75) Blocked TEMPFAIL, [
189.104.60.104] [EMAIL PROTECTED] - [EMAIL PROTECTED],[EMAIL PROTECTED],
Message-ID: [EMAIL PROTECTED], mail_id:
S4067R7gTeY5, Hits: -, 329 ms


Aug 27 07:58:31 magneto postfix/smtp[21991]: 21B4A438C88:
to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1]:10024, conn_use=75,
delay=59324, delays=59236/87/0/0.34, dsn=4.4.1, status=deferred (host
127.0.0.1[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025,
() at (eval 42) line 145, GEN22 line 201441., MTA([127.0.0.1]:10025),
id=21705-03-75 (in reply to end of DATA command))
Aug 27 07:58:31 magneto postfix/smtp[21991]: 21B4A438C88:
to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1]:10024, conn_use=75,
delay=59324, delays=59236/87/0/0.34, dsn=4.4.1, status=deferred (host
127.0.0.1[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025,
() at (eval 42) line 145, GEN22 line 201441., MTA([127.0.0.1]:10025),
id=21705-03-75 (in reply to end of DATA command))




[]´s

-- 
Eduardo Júnior
GNU/Linux user #423272

:wq
-
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] Error strange

2008-08-27 Thread Noel Jones
Eduardo Júnior wrote:
 Hi,
 
 
 
 The log complete:


 Aug 27 07:58:29 magneto amavis[21705]: (21705-03-72) Blocked TEMPFAIL, [
 201.65.67.26] [EMAIL PROTECTED] - [EMAIL PROTECTED], Message-ID:
 [EMAIL PROTECTED], mail_id: ixnb-t4SqEdC, Hits:
 3.858,
 4335 ms



 There will be a log entry from postfix referring to that recipient around
 the same time.  That should explain the reject.
 
 
 
 
 Aug 27 07:58:31 magneto postfix/smtpd[21997]: connect from
 localhost.localdomain[127.0.0.1]
 Aug 27 07:58:31 magneto postfix/smtpd[21997]: warning: Connection rate limit
 exceeded: 85 from localhost.localdomain[127.0.0.1] for service
 127.0.0.1:10025
 Aug 27 07:58:31 magneto postfix/smtpd[21997]: disconnect from
 localhost.localdomain[127.0.0.1]
 
 

Excellent, that explains the problem clearly.

In master.cf add to your 10025...smtp reinjection entry:
   -o smtpd_client_event_limit_exceptions=127.0.0.1

references:
http://www.postfix.org/anvil.8.html
http://www.postfix.org/postconf.5.html#smtpd_client_event_limit_exceptions


-- 
Noel Jones


-
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] Error strange

2008-08-25 Thread Eduardo Júnior
Hi,


I'm getting this error in some messages that pass through amavis:
amavis[25680]: (25680-09-30) Blocked TEMPFAIL

what is the reason for this error?

[]´s

-- 
Eduardo Júnior
GNU/Linux user #423272

:wq
-
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] Error strange

2008-08-25 Thread Eduardo Júnior
Hi,


On Mon, Aug 25, 2008 at 9:52 AM, Mark Martinec
[EMAIL PROTECTED][EMAIL PROTECTED]
 wrote:

 Eduardo,

  I'm getting this error in some messages that pass through amavis:
  amavis[25680]: (25680-09-30) Blocked TEMPFAIL
 
  what is the reason for this error?

 A possible reason is that MTA gave a 4xx error when amavisd
 tried to submit checked mail back to it. There should be
 more detailed information in the log nearby.




That is the main part of the log. The remainder is composed of addresses of
sender and recipients, mail_id, Hits.

But I noticed one thing: the messages that I return this error, all have as
a recipient address an area that is unachievable, even the result of the
implementation of returning I nslookup the dns servers and mx the field.

What other reasons get this error has occurred?
Post it in the list of postfix help, no?



[]´s

-- 
Eduardo Júnior
GNU/Linux user #423272

:wq
-
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] Error starting amavisd-new on Mac OS 10.4.11 (not Server)

2008-06-20 Thread Mark Martinec
James,

  If Mac OS X is missing a setrgid(), I believe it can be avoided
  if amavisd is started as the final user (vscan/amavis) instead
  of starting it as root:  su vscan -c 'amavisd'

 I tried:
   sudo su amavisd -c '/usr/local/sbin/amavisd debug'
 and it started!

I'm glad.

 (told me it couldn't find SpamAssassin, so I had to install that. (I'm
 not going to use SpamAssassin, so don't know why I have to install it,
 but anyway tried installing SA via cpan, but it had too many
 errors and would not install. I then downloaded the source and was
 able to install it)

If you don't need spam checking, it can be disabled entirely:

  @bypass_spam_checks_maps = (1);

This way SpamAssassin won't even be compiled/loaded into memory.

 Next step is to integrate it with Postfix (using the supplied
 readme.postfix), which seems straightforward, and then to get it
 scanning with Sophos Anti-Virus for Mac (which uses the 'sweep'
 command).

If your traffic is anything more than minimal, the 'sweep'
command-line scanner will likely be quite slow. See if you can
install Sophie on your platform - it is a daemon wrapper
around the same Sophos library as used by sweep.

Btw, see also my 'sophos-ide-update' for reliably updating the
Sophos viruses database:
  http://www.ijs.si/software/sophos-ide-update/

Mark

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Error starting amavisd-new on Mac OS 10.4.11 (not Server)

2008-06-19 Thread James Brown
I'm trying to install amavisd-new on my mail server, a Mac Mini  
(Intel) running the non-Server version of OS X 10.4.11.

When I try to start up amavisd I get a setrgid error:

sudo /usr/local/sbin/amavisd -u amavisd debug
setrgid() not implemented at /usr/local/sbin/amavisd line 12353.

I used amavisd not amavis as the user as this user was already set up  
by Apple. I changed /etc/amavisd.conf to say:

$daemon_user  = 'amavisd';
$daemon_group = 'amavisd';

Can anyone suggest what I'm doing wrong?

Does anyone know of a 'how-to' for amavisd-new on desktop version of  
OS X? I can only find ones for OS X Server.

Thanks,

James.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Error starting amavisd-new on Mac OS 10.4.11 (not Server)

2008-06-19 Thread MrC
James Brown wrote:
 I'm trying to install amavisd-new on my mail server, a Mac Mini  
 (Intel) running the non-Server version of OS X 10.4.11.
 
 When I try to start up amavisd I get a setrgid error:
 
 sudo /usr/local/sbin/amavisd -u amavisd debug
 setrgid() not implemented at /usr/local/sbin/amavisd line 12353.
 

Which amavisd version is this?  I don't find setrgid in either 2.6 or
2.5.3, so I suppose updating to newer versions will avoid the missing
function.  setrgid() is a BSD libc library call, dropped in 4.4 BSD.

 I used amavisd not amavis as the user as this user was already set up  
 by Apple. I changed /etc/amavisd.conf to say:
 
 $daemon_user  = 'amavisd';
 $daemon_group = 'amavisd';
 
 Can anyone suggest what I'm doing wrong?
 
 Does anyone know of a 'how-to' for amavisd-new on desktop version of  
 OS X? I can only find ones for OS X Server.
 
 Thanks,
 
 James.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Error starting amavisd-new on Mac OS 10.4.11 (not Server)

2008-06-19 Thread MrC
MrC wrote:
 James Brown wrote:
 I'm trying to install amavisd-new on my mail server, a Mac Mini  
 (Intel) running the non-Server version of OS X 10.4.11.

 When I try to start up amavisd I get a setrgid error:

 sudo /usr/local/sbin/amavisd -u amavisd debug
 setrgid() not implemented at /usr/local/sbin/amavisd line 12353.

 
 Which amavisd version is this?  I don't find setrgid in either 2.6 or
 2.5.3, so I suppose updating to newer versions will avoid the missing
 function.  setrgid() is a BSD libc library call, dropped in 4.4 BSD.

Never mind my response.  I can see this issue is more complex, and there
are a number of postings regarding missing setrgid() call on Mac OS X.
Mark will probably have the answer for you.  Sorry for the noise.


 
 I used amavisd not amavis as the user as this user was already set up  
 by Apple. I changed /etc/amavisd.conf to say:

 $daemon_user  = 'amavisd';
 $daemon_group = 'amavisd';

 Can anyone suggest what I'm doing wrong?

 Does anyone know of a 'how-to' for amavisd-new on desktop version of  
 OS X? I can only find ones for OS X Server.

 Thanks,

 James.
 

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] error loading optional module

2008-06-02 Thread Benny Pedersen

On Thu, May 22, 2008 19:13, Bill Landry wrote:

 aborted at /etc/mail/spamassassin/ImageCheck.pm line 7.\n

where is this module from ?

does it work with 3.2.4 ?


Benny Pedersen
Need more webspace ? http://www.servage.net/?coupon=cust37098


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-23 Thread Max Matslofva
Mark Martinec skrev:
 Max and Bill,
 
 Upon further investigation, I found that this still happens here, as well:
 However, for me, the odd things is this only happens when amavisd
 reload or amavisd stop/start is executed from within my home directory.
   If executed anywhere outside of my home directory, no errors are seen.
   The only other thing I noticed when executing from within my home
 directory, but again not if executed outside of my home directory, is
 the following entry in my maillog:

 May 21 14:28:38 mail amavis[2612]: (!)_DIE: image_info is not exported
 by the Image::Info module\n dim is not exported by the Image::Info
 module\nCan't continue after import errors at
 /etc/mail/spamassassin/ImageCheck.pm line 7\nBEGIN failed--compilation
 aborted at /etc/mail/spamassassin/ImageCheck.pm line 7.\n

 However, if I drop back to amavisd-new-2.5.4, the errors and maillog
 entry go away, no matter where I execute amavisd reload or amavisd
 stop/start from.  Thoughts?
 
 Do you happen to have SpamAssassin or some of Perl modules or plugins
 installed/located in your home directory?
No

[EMAIL PROTECTED] /home/maxm]# amavisd reload
Daemon [43625] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...
[EMAIL PROTECTED] /home/maxm]# cd /root/
[EMAIL PROTECTED] ~]# amavisd reload
Daemon [45361] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...
[EMAIL PROTECTED] ~]# cd /usr/local/etc/mail/spamassassin/
[EMAIL PROTECTED] /usr/local/etc/mail/spamassassin]# amavisd reload
Daemon [45370] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...
[EMAIL PROTECTED] /usr/local/etc/mail/spamassassin]# cd /var/amavis/
[EMAIL PROTECTED] /var/amavis]# amavisd reload
Daemon [45377] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...
[EMAIL PROTECTED] /var/amavis]# cd /root/
[EMAIL PROTECTED] ~]# amavisd reload
Daemon [45388] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...

I can not reproduce the error again?


 
   Mark
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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/
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-22 Thread Bill Landry
Max Matslofva wrote:
 Hi
 I have the same problem on a new server running amavisd-new-2.6.0 (from 
 ports) on FreeBSD 6.3 and /var/amavis/tmp on 512m ramdisk.
 
 Bill Landry skrev:
 Mark Martinec wrote:
 What happens if you provide a username with an -u uption, e.g.:
   # amavisd -u vscan reload
 I get error loading optional module
 vs.
   # amavisd stop
   # amavisd -u vscan start
 I get error loading optional module
 Anyway, the 'Permission denied' looks like these perl modules
 or one of their parent directories were not accessible as
 user vscan/amavis. Please check permissions of .pm files and all
 their parent directories. Make sure you do not have two copies
 of Perl module trees, or at least that they are consistent.
 [EMAIL PROTECTED] /]# find / -name Fast.pm
 /usr/local/lib/perl5/5.8.8/CGI/Fast.pm
 [EMAIL PROTECTED] /]# su vscan
 [EMAIL PROTECTED] /]# head /usr/local/lib/perl5/5.8.8/CGI/Fast.pm
 package CGI::Fast;
 
 # See the bottom of this file for the POD documentation.  Search for the
 # string '=head'.
 
 # You can run this file through either pod2man or pod2html to produce pretty
 # documentation in manual or html file format (these utilities are part of the
 # Perl 5 distribution).
 
 # Copyright 1995,1996, Lincoln D. Stein.  All rights reserved.
 
 
 
 But if I stop and start with rc-script from ports I can use amavisd reload ?
 [EMAIL PROTECTED] /]# /usr/local/etc/rc.d/amavisd stop
 Stopping amavisd.
 Waiting for PIDS: 16411.
 [EMAIL PROTECTED] /]# /usr/local/etc/rc.d/amavisd start
 Starting amavisd.
 [EMAIL PROTECTED] /]# amavisd reload
 Daemon [16587] terminated by SIGTERM, waiting for dust to settle...
 becoming a new daemon...
 [EMAIL PROTECTED] /]#

Upon further investigation, I found that this still happens here, as well:

uname -a
Linux mail.inetmsg.com 2.6.24.7-92.fc8 #1 SMP Wed May 7 16:50:09 EDT 
2008 i686 i686 i386 GNU/Linux

amavisd -V
amavisd-new-2.6.0 (20080423)

spamassassin -V
SpamAssassin version 3.2.4
   running on Perl version 5.8.8

However, for me, the odd things is this only happens when amavisd 
reload or amavisd stop/start is executed from within my home directory. 
  If executed anywhere outside of my home directory, no errors are seen. 
  The only other thing I noticed when executing from within my home 
directory, but again not if executed outside of my home directory, is 
the following entry in my maillog:

May 21 14:28:38 mail amavis[2612]: (!)_DIE: image_info is not exported 
by the Image::Info module\n dim is not exported by the Image::Info 
module\nCan't continue after import errors at 
/etc/mail/spamassassin/ImageCheck.pm line 7\nBEGIN failed--compilation 
aborted at /etc/mail/spamassassin/ImageCheck.pm line 7.\n

However, if I drop back to amavisd-new-2.5.4, the errors and maillog 
entry go away, no matter where I execute amavisd reload or amavisd 
stop/start from.  Thoughts?

Bill

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-22 Thread Bill Landry
Mark Martinec wrote:
 Max and Bill,
 
 Upon further investigation, I found that this still happens here, as well:
 However, for me, the odd things is this only happens when amavisd
 reload or amavisd stop/start is executed from within my home directory.
   If executed anywhere outside of my home directory, no errors are seen.
   The only other thing I noticed when executing from within my home
 directory, but again not if executed outside of my home directory, is
 the following entry in my maillog:

 May 21 14:28:38 mail amavis[2612]: (!)_DIE: image_info is not exported
 by the Image::Info module\n dim is not exported by the Image::Info
 module\nCan't continue after import errors at
 /etc/mail/spamassassin/ImageCheck.pm line 7\nBEGIN failed--compilation
 aborted at /etc/mail/spamassassin/ImageCheck.pm line 7.\n

 However, if I drop back to amavisd-new-2.5.4, the errors and maillog
 entry go away, no matter where I execute amavisd reload or amavisd
 stop/start from.  Thoughts?
 
 Do you happen to have SpamAssassin or some of Perl modules or plugins
 installed/located in your home directory?

Here is what's in my home directory:

ls -l /home/bill/
total 72
drwxr-xr-x  2 bill bill 4096 2007-12-12 23:22 Desktop
drwxr-xr-x  2 bill bill 4096 2008-04-26 19:27 Documents
drwxr-xr-x 44 bill bill 4096 2008-05-20 13:45 Download
drwxr-xr-x  2 bill bill 4096 2007-12-12 23:22 Music
drwxr-xr-x  2 bill bill 4096 2007-12-12 23:22 Pictures
drwxr-xr-x  2 bill bill 4096 2007-12-12 23:22 Public
drwxr-xr-x  2 bill bill 4096 2008-04-12 13:04 Scripts
drwxr-xr-x  2 bill bill 4096 2007-12-12 23:22 Templates
drwxr-xr-x  2 bill bill 4096 2007-12-12 23:22 Videos

Bill

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-22 Thread Mark Martinec
  Upon further investigation, I found that this still happens here, as
  well: However, for me, the odd things is this only happens when amavisd
  reload or amavisd stop/start is executed from within my home directory.
  If executed anywhere outside of my home directory, no errors are seen.
  The only other thing I noticed when executing from within my home
  directory, but again not if executed outside of my home directory, is
  the following entry in my maillog:

It looks like a problem reported to me by Tuomo Soini on Apr 29 2008:




Some notes: pid file creation was changes from 2.5.4 to 2.6.0 so that
2.6.0 can't open pid file in /var/run any more, pid file must be in dir
owned by amavis user.

I could work around this by moving amavisd pid to
/var/run/amavis/amavisd.pid

I noticed that problem with perl module loading was caused by selinux
denying access to some paths on filesystm and my_require errorously
catching this as permission problem while module was really loading.

This patch did fix it on my system:

--- amavisd.bak 2008-04-29 21:46:51.0 +0300
+++ amavisd 2008-04-29 22:18:26.0 +0300
@@ -189,7 +189,7 @@
 local($_) = $m;
 $_ .= /^auto::/ ? '.al' : '.pm'  if !m{^/}  !m{\.(pm|pl|al|ix)\z};
 s{::}{/}g;
-eval { my_require $_ }
+eval { require $_ }
 or do {
   my($eval_stat) = $@ ne '' ? $@ : errno=$!;  chomp $eval_stat;
   push(@missing,$m);


With these two changes I got 2.6.0 running on my selinux secured rhel5
based mail server.

--
Tuomo Soini [EMAIL PROTECTED]
Foobar Linux services
+358 40 5240030
Foobar Oy http://foobar.fi/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-22 Thread Bill Landry
Mark Martinec wrote:
 Upon further investigation, I found that this still happens here, as
 well: However, for me, the odd things is this only happens when amavisd
 reload or amavisd stop/start is executed from within my home directory.
 If executed anywhere outside of my home directory, no errors are seen.
 The only other thing I noticed when executing from within my home
 directory, but again not if executed outside of my home directory, is
 the following entry in my maillog:
 
 It looks like a problem reported to me by Tuomo Soini on Apr 29 2008:
 
 
 Some notes: pid file creation was changes from 2.5.4 to 2.6.0 so that
 2.6.0 can't open pid file in /var/run any more, pid file must be in dir
 owned by amavis user.
 
 I could work around this by moving amavisd pid to
 /var/run/amavis/amavisd.pid

This shouldn't apply to my setup since I have:

$pid_file  = $MYHOME/amavisd.pid;

in my amavisd.conf.  Thus:

ls -l /var/amavis/
total 52
-rw-r-  1 amavis amavis0 2008-05-22 11:55 amavisd.lock
-rw-r-  1 amavis amavis6 2008-05-22 11:54 amavisd.pid
srwxr-x---  1 amavis amavis0 2008-05-22 11:54 amavisd.sock
srwxrwxrwx  1 amavis amavis0 2008-05-21 14:25 clamd.sock
drwxr-x---  2 amavis amavis 4096 2008-05-22 11:54 db
drwxr-x---  2 amavis amavis 4096 2007-12-17 19:19 home
-rw-r--r--  1 amavis amavis   26 2007-12-18 13:14 local_domains
drwxr-xr-x  2 amavis amavis 4096 2008-05-18 05:27 logs
drwxr-x--- 28 amavis amavis 4096 2008-05-22 11:55 tmp
drwxr-x---  2 amavis amavis 4096 2007-12-17 19:19 var

 I noticed that problem with perl module loading was caused by selinux
 denying access to some paths on filesystm and my_require errorously
 catching this as permission problem while module was really loading.

This doesn't apply in my setup either, since I have selinux disabled:

sestatus
SELinux status: disabled

 This patch did fix it on my system:

However, with all of that said, this patch did resolve the issue on my 
system, as well.

Thanks!

Bill

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-20 Thread Mark Martinec
Bill,

 I recently upgraded to amavisd-new-2.6.0 and all appears to be running
 fine.  However, when executing a reload, I am seeing the following
 errors reported:

 # amavisd reload
 Daemon [24965] terminated by SIGTERM, waiting for dust to settle...
 becoming a new daemon...
 fetch_modules: error loading optional module IP/Country/Fast.pm:
Requiring lib/IP/Country/Fast.pm, file is inaccessible: Permission
 denied,
 fetch_modules: error loading optional module Image/Info.pm:
Requiring lib/Image/Info.pm, file is inaccessible: Permission denied,
 fetch_modules: error loading optional module Image/Info/GIF.pm:
Requiring lib/Image/Info/GIF.pm, file is inaccessible: Permission
 denied, fetch_modules: error loading optional module Image/Info/JPEG.pm:
Requiring lib/Image/Info/JPEG.pm, file is inaccessible: Permission
 denied, [...]

 The paths appear to be incorrect, but I'm not sure how to correct them.
   The errors are only reported when doing a reload (amavisd reload), and
 not when starting amavisd (amavisd start).

Strange, the 'amavisd reload' is pretty much equivalent to
'amavisd stop' followed by 'amavisd start'. Was there any
command line option like -R used in one case but not the other?
Or perhaps one was executed as root and the other as user vscan?

What happens if you provide a username with an -u uption, e.g.:
  # amavisd -u vscan reload
vs.
  # amavisd stop
  # amavisd -u vscan start

Anyway, the 'Permission denied' looks like these perl modules
or one of their parent directories were not accessible as
user vscan/amavis. Please check permissions of .pm files and all
their parent directories. Make sure you do not have two copies
of Perl module trees, or at least that they are consistent.

  Mark

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-20 Thread Bill Landry
Mark Martinec wrote:
 Bill,
 
 I recently upgraded to amavisd-new-2.6.0 and all appears to be running
 fine.  However, when executing a reload, I am seeing the following
 errors reported:

 # amavisd reload
 Daemon [24965] terminated by SIGTERM, waiting for dust to settle...
 becoming a new daemon...
 fetch_modules: error loading optional module IP/Country/Fast.pm:
Requiring lib/IP/Country/Fast.pm, file is inaccessible: Permission
 denied,
 fetch_modules: error loading optional module Image/Info.pm:
Requiring lib/Image/Info.pm, file is inaccessible: Permission denied,
 fetch_modules: error loading optional module Image/Info/GIF.pm:
Requiring lib/Image/Info/GIF.pm, file is inaccessible: Permission
 denied, fetch_modules: error loading optional module Image/Info/JPEG.pm:
Requiring lib/Image/Info/JPEG.pm, file is inaccessible: Permission
 denied, [...]
 
 The paths appear to be incorrect, but I'm not sure how to correct them.
   The errors are only reported when doing a reload (amavisd reload), and
 not when starting amavisd (amavisd start).
 
 Strange, the 'amavisd reload' is pretty much equivalent to
 'amavisd stop' followed by 'amavisd start'. Was there any
 command line option like -R used in one case but not the other?
 Or perhaps one was executed as root and the other as user vscan?

No both simply executed from su root as:

amavisd stop
amavisd start

amavisd reload

 What happens if you provide a username with an -u uption, e.g.:
   # amavisd -u vscan reload
 vs.
   # amavisd stop
   # amavisd -u vscan start

I should have sent out an update, but I re-downloaded the image and 
reinstalled amavisd and have had no problems or error reports since - 
possibly a corrupted download?

 Anyway, the 'Permission denied' looks like these perl modules
 or one of their parent directories were not accessible as
 user vscan/amavis. Please check permissions of .pm files and all
 their parent directories. Make sure you do not have two copies
 of Perl module trees, or at least that they are consistent.

No, since all appears to be running fine now.  Anyway, thanks for the reply.

Bill

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] error loading optional module

2008-05-08 Thread Bill Landry
I recently upgraded to amavisd-new-2.6.0 and all appears to be running 
fine.  However, when executing a reload, I am seeing the following 
errors reported:

# amavisd reload
Daemon [24965] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...
fetch_modules: error loading optional module IP/Country/Fast.pm:
   Requiring lib/IP/Country/Fast.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Image/Info.pm:
   Requiring lib/Image/Info.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module Image/Info/GIF.pm:
   Requiring lib/Image/Info/GIF.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module Image/Info/JPEG.pm:
   Requiring lib/Image/Info/JPEG.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Image/Info/PNG.pm:
   Requiring lib/Image/Info/PNG.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module Image/Info/TIFF.pm:
   Requiring lib/Image/Info/TIFF.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF.pm:
   Requiring lib/Mail/SPF.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module Mail/SPF/Server.pm:
   Requiring lib/Mail/SPF/Server.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Request.pm:
   Requiring lib/Mail/SPF/Request.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mech.pm:
   Requiring lib/Mail/SPF/Mech.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module Mail/SPF/Mech/A.pm:
   Requiring lib/Mail/SPF/Mech/A.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mech/PTR.pm:
   Requiring lib/Mail/SPF/Mech/PTR.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mech/All.pm:
   Requiring lib/Mail/SPF/Mech/All.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mech/Exists.pm:
   Requiring lib/Mail/SPF/Mech/Exists.pm, file is inaccessible: 
Permission denied,
fetch_modules: error loading optional module Mail/SPF/Mech/IP4.pm:
   Requiring lib/Mail/SPF/Mech/IP4.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mech/IP6.pm:
   Requiring lib/Mail/SPF/Mech/IP6.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mech/Include.pm:
   Requiring lib/Mail/SPF/Mech/Include.pm, file is inaccessible: 
Permission denied,
fetch_modules: error loading optional module Mail/SPF/Mech/MX.pm:
   Requiring lib/Mail/SPF/Mech/MX.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mod.pm:
   Requiring lib/Mail/SPF/Mod.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module Mail/SPF/Mod/Exp.pm:
   Requiring lib/Mail/SPF/Mod/Exp.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/Mod/Redirect.pm:
   Requiring lib/Mail/SPF/Mod/Redirect.pm, file is inaccessible: 
Permission denied,
fetch_modules: error loading optional module Mail/SPF/SenderIPAddrMech.pm:
   Requiring lib/Mail/SPF/SenderIPAddrMech.pm, file is inaccessible: 
Permission denied,
fetch_modules: error loading optional module Mail/SPF/v1/Record.pm:
   Requiring lib/Mail/SPF/v1/Record.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module Mail/SPF/v2/Record.pm:
   Requiring lib/Mail/SPF/v2/Record.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module NetAddr/IP.pm:
   Requiring lib/NetAddr/IP.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module NetAddr/IP/Util.pm:
   Requiring lib/NetAddr/IP/Util.pm, file is inaccessible: Permission 
denied,
fetch_modules: error loading optional module 
auto/NetAddr/IP/Util/inet_n2dx.al:
   Requiring lib/auto/NetAddr/IP/Util/inet_n2dx.al, file is 
inaccessible: Permission denied,
fetch_modules: error loading optional module 
auto/NetAddr/IP/Util/ipv6_n2d.al:
   Requiring lib/auto/NetAddr/IP/Util/ipv6_n2d.al, file is inaccessible: 
Permission denied,
fetch_modules: error loading optional module Mail/SPF/Query.pm:
   Requiring lib/Mail/SPF/Query.pm, file is inaccessible: Permission denied,
fetch_modules: error loading optional module 
auto/Crypt/OpenSSL/RSA/new_public_key.al:
   Requiring lib/auto/Crypt/OpenSSL/RSA/new_public_key.al, file is 
inaccessible: Permission denied,
fetch_modules: error loading optional module 
auto/Crypt/OpenSSL/RSA/new_key_from_parameters.al:
   Requiring lib/auto/Crypt/OpenSSL/RSA/new_key_from_parameters.al, file 
is inaccessible: Permission denied,
fetch_modules: error loading optional module 

Re: [AMaViS-user] ERROR: invalid byte sequence for encoding UTF8

2008-04-02 Thread Valentin Schmid - ICSurselva AG
Hello Mark,

Thanks for your prompt answer.

I decided to fix the Problem as Wietse proposed it in
http://marc.info/?t=12062296073r=1w=2

Do not accept sender addresses containing non-ascii chars.

So we fixed the problem in the postfix config like this:
/etc/postfix/main.cf:
 smtpd_sender_restrictions =
...
check_sender_access pcre:/etc/postfix/ascii.pcre
 ...

/etc/postfix/ascii.pcre:
 /[^[:ascii:]]/ REJECT non-ascii address

As far as I can see all the senders containig non-ascii chars
are Spammers.

Regards
valli


Mark Martinec wrote:
 Valentin,
 
 We use amavisd-new 2.5.3 with white/blacklists stored in a PostgreSQL
 (UTF-8) database. Mails with a From/To containing german umlauts in latin1
 will hang in the postfix queue forever. The mail-logs contains a lot of the
 following errors:

 ... relay=127.0.0.1[127.0.0.1]:10024, conn_use=2, delay=8955,
 delays=8955/0/0/0.14, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1]
 said: 451-4.5.0 Error in processing, id=22244-16-2, spam-wb-list FAILED:
 sql exec: err=7, 22021, DBD::Pg::st execute failed: ERROR:  invalid byte
 sequence for encoding UTF8: 0xdf65
 
 Is there a way to set the postgres client_encoding in amavisd-new?
 Or if it is a bug: Is there a workaround for this problem?
 
 I posted a fix to a postfix list about a week ago, please see:
 
 http://marc.info/?t=12062296073r=1w=2
 
 It requires changing data type of users.email and mailaddr.email
 to 'bytea', and a corresponding patch to amavisd. Although the
 solution is general (regardless of SQL sw), it applies mainly
 to PostgreSQL, as the MySQL does not check character validity
 (nor does SQLite). This will go into 2.6.0.
 
 I noticed in the amavisd-new-2.5.3 release notes the following point:
 - sanitize 8-bit characters in In-Reply-To and References header fields
   before using them in Pen Pals SQL lookups to avoid UTF-8 errors like:
 penpals_check FAILED: sql exec: err=7, 22021, DBD::Pg::st execute
 failed: ERROR: invalid byte sequence for encoding UTF8: 0xd864
 Should this probably also be fixed for spam-wb-list lookups?
 
 It is related, but in case of SQL logging (and pen pals) I chose
 a less intrusive but not quite accurate fix, while I believe it
 is worth to do it right for lookups and white/blacklisting.
 
 With 2.6.0 you'll have a choice for the r/w SQL tables (the maddr.email,
 i.e. what is used by pen pals and SQL logging/quarantining) to choose
 between a binary or a character string data type, probably as follows:
 
   $sql_allow_8bit_address = 0;  # maddr.email: 0 = VARCHAR,
 #  1 = VARBINARY/BYTEA
 
 I'm not sure whether it would be better to start assuming
 the evelope addresses are UTF-8 (draft-ietf-eai-smtpext-11),
 and still choking in some way for invalid UTF-8 byte sequences,
 or just use string-of-bytes data type (no asociated character set).
 I have yet to see a case of draft-ietf-eai-smtpext address in
 practice - most 8-bit envelope addresses nowadays just inappropriately
 assume latin-1 or similar single-byte encoding.
 
   Mark
 
 -
 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/

-- 
Valentin Schmid
[EMAIL PROTECTED]
Tel.: ++41 81 936 03 75
Fax:  ++41 81 936 03 76
ICSurselva AG - Internet Intranet Solutions

-
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/


[AMaViS-user] ERROR: invalid byte sequence for encoding UTF8

2008-03-31 Thread Valentin Schmid
Hi all

We use amavisd-new 2.5.3 with white/blacklists stored in a PostgreSQL (UTF-8) 
database.
Mails with a From/To containing german umlauts in latin1 will hang in the 
postfix
queue forever. The mail-logs contains a lot of the following errors:

... relay=127.0.0.1[127.0.0.1]:10024, conn_use=2, delay=8955, 
delays=8955/0/0/0.14, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] 
said: 451-4.5.0 Error in processing, id=22244-16-2, spam-wb-list FAILED: sql 
exec: err=7, 22021, DBD::Pg::st execute failed: ERROR:  invalid byte sequence 
for encoding UTF8: 0xdf65 451 4.5.0 HINT:  This error can also happen if the 
byte sequence does not match the encoding expected by the server, which is 
controlled by client_encoding. at (eval 69) line 271. (in reply to end of 
DATA command))
... lookup_sql: sql exec: err=7, 22021, DBD::Pg::st execute failed: ERROR:  
invalid byte sequence for encoding UTF8: 0xfc\nHINT:  This error can also 
happen if the byte sequence does not match the encoding expected by the server, 
which is controlled by client_encoding., 7, ERROR:  invalid byte sequence for 
encoding UTF8: 0xfc\nHINT:  This error can also happen if the byte sequence 
does not match the encoding expected by the server, which is controlled by 
client_encoding.\n

Is there a way to set the postgres client_encoding in amavisd-new?
Or if it is a bug: Is there a workaround for this problem?

valli

PS:
I noticed in the amavisd-new-2.5.3 release notes the following point:
...
- sanitize 8-bit characters in In-Reply-To and References header fields
  before using them in Pen Pals SQL lookups to avoid UTF-8 errors like:
penpals_check FAILED: sql exec: err=7, 22021, DBD::Pg::st execute failed:
ERROR: invalid byte sequence for encoding UTF8: 0xd864
...
Should this probably also be fixed for spam-wb-list lookups?



-
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] ERROR: invalid byte sequence for encoding UTF8

2008-03-31 Thread Mark Martinec
Valentin,

 We use amavisd-new 2.5.3 with white/blacklists stored in a PostgreSQL
 (UTF-8) database. Mails with a From/To containing german umlauts in latin1
 will hang in the postfix queue forever. The mail-logs contains a lot of the
 following errors:

 ... relay=127.0.0.1[127.0.0.1]:10024, conn_use=2, delay=8955,
 delays=8955/0/0/0.14, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1]
 said: 451-4.5.0 Error in processing, id=22244-16-2, spam-wb-list FAILED:
 sql exec: err=7, 22021, DBD::Pg::st execute failed: ERROR:  invalid byte
 sequence for encoding UTF8: 0xdf65

 Is there a way to set the postgres client_encoding in amavisd-new?
 Or if it is a bug: Is there a workaround for this problem?

I posted a fix to a postfix list about a week ago, please see:

http://marc.info/?t=12062296073r=1w=2

It requires changing data type of users.email and mailaddr.email
to 'bytea', and a corresponding patch to amavisd. Although the
solution is general (regardless of SQL sw), it applies mainly
to PostgreSQL, as the MySQL does not check character validity
(nor does SQLite). This will go into 2.6.0.

 I noticed in the amavisd-new-2.5.3 release notes the following point:
 - sanitize 8-bit characters in In-Reply-To and References header fields
   before using them in Pen Pals SQL lookups to avoid UTF-8 errors like:
 penpals_check FAILED: sql exec: err=7, 22021, DBD::Pg::st execute
 failed: ERROR: invalid byte sequence for encoding UTF8: 0xd864
 Should this probably also be fixed for spam-wb-list lookups?

It is related, but in case of SQL logging (and pen pals) I chose
a less intrusive but not quite accurate fix, while I believe it
is worth to do it right for lookups and white/blacklisting.

With 2.6.0 you'll have a choice for the r/w SQL tables (the maddr.email,
i.e. what is used by pen pals and SQL logging/quarantining) to choose
between a binary or a character string data type, probably as follows:

  $sql_allow_8bit_address = 0;  # maddr.email: 0 = VARCHAR,
#  1 = VARBINARY/BYTEA

I'm not sure whether it would be better to start assuming
the evelope addresses are UTF-8 (draft-ietf-eai-smtpext-11),
and still choking in some way for invalid UTF-8 byte sequences,
or just use string-of-bytes data type (no asociated character set).
I have yet to see a case of draft-ietf-eai-smtpext address in
practice - most 8-bit envelope addresses nowadays just inappropriately
assume latin-1 or similar single-byte encoding.

  Mark

-
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/


[AMaViS-user] Error with version 2.6.0-rc1

2008-03-20 Thread Jim Knuth
Hello,

I`ve tried amavisd-new V 2.6.0-rc1 and getting these error:

--snip
(host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing,
id=06919-01, sql-enter FAILED: sql exec: err=1054, S1000,
DBD::mysql::st execute failed: Unknown column 'partition_tag' in
'where clause' at (eval 66) line 166, GEN14 line 20. (in reply to
end of DATA command))
--snap

New SQL statements? Thanks in advance.

-- 
mit freundlichem Gruss - with kind regard
Jim Knuth
#ICQ 277289867

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Error with version 2.6.0-rc1

2008-03-20 Thread Michael Scheidell
The readme, and various notes tell you what you need to do to add new sql
fields.

The announcement was very clear on the new fields.


-- 
Michael Scheidell, CTO
|SECNAP Network Security
Winner 2008 Network Products Guide Hot Companies
FreeBsd SpamAssassin Ports maintainer
Charter member, ICSA labs anti-spam consortium

 From: Jim Knuth [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Thu, 20 Mar 2008 17:46:00 +0100
 To: AMaViS-user AMaViS-user@lists.sourceforge.net
 Subject: [AMaViS-user] Error with version 2.6.0-rc1
 
 Hello,
 
 I`ve tried amavisd-new V 2.6.0-rc1 and getting these error:
 
 --snip
 (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing,
 id=06919-01, sql-enter FAILED: sql exec: err=1054, S1000,
 DBD::mysql::st execute failed: Unknown column 'partition_tag' in
 'where clause' at (eval 66) line 166, GEN14 line 20. (in reply to
 end of DATA command))
 --snap
 
 New SQL statements? Thanks in advance.
 
 -- 
 mit freundlichem Gruss - with kind regard
 Jim Knuth
 #ICQ 277289867
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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/

_
This email has been scanned and certified safe by SpammerTrap(tm). 
For Information please see http://www.spammertrap.com
_

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Error with version 2.6.0-rc1

2008-03-20 Thread Jim Knuth
Am 20.03.2008 18:06 Uhr, schrieb Michael Scheidell:

 The readme, and various notes tell you what you need to do to add new sql
 fields.
 
 The announcement was very clear on the new fields.
 
 

Ok, thank you. I`m so stupid. ;)

-- 
mit freundlichem Gruss - with kind regard
Jim Knuth
#ICQ 277289867

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Error message appended to Subject line

2007-11-14 Thread Mark Martinec
Tony,

 I am using an Intel Apple Xserve running macosx 10.4.10
 after a recent upgrade of amavis-new, ClamAV and spamassassin,
 amavisd -V  =  amavisd-new-2.5.2 (20070627)
 spamassassin -V  =  SpamAssassin version 3.2.3
running on Perl version 5.8.6
 /usr/local/sbin/clamd -V   =  ClamAV 0.91.1/4691/Wed Nov 13

 Some incoming mail is having   (No virus check: internal error)
 appended to the subject line.

 However checking through the logs the mail is showing that is Passed
 CLEAN

That text in the subject line does not look like being generated
by amavisd-new (unless the program was modified).

 Can someone tell me where this appending of the subject line
 is being generated from.

Don't know. Perhaps a mailer is invoking a virus checker
on its own.

 More importantly is it a problem that requires fixing?

Probably yes. If for no other reason, seems like some resources
are being wasted, and clutter is added to mail.

 Sending a test virus from eicar.com gets picked up as a virus
 correctly but doesn't append the subject line

Such message should be blocked, unless recipient is a virus_lover
(or $final_virus_destiny=D_PASS), in which case a subject should
receive prepended a text from $subject_tag_maps_by_ccat{+CC_VIRUS},
the '***INFECTED*** ' by default.

  Mark

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] Error message appended to Subject line

2007-11-13 Thread Tony Baker
Hi

I am using an Intel Apple Xserve running macosx 10.4.10

after a recent upgrade of amavis-new, ClamAV and spamassassin,

amavisd -V  =  amavisd-new-2.5.2 (20070627)

spamassassin -V  =  SpamAssassin version 3.2.3
   running on Perl version 5.8.6

/usr/local/sbin/clamd -V   =  ClamAV 0.91.1/4691/Wed Nov 13
/usr/local/bin/freshclam -V  =  ClamAV 0.91.1/4691/Wed Nov 13
/usr/local/bin/clamscan -V  =  ClamAV 0.91.1/4691/Wed Nov 13

Some incoming mail is having   (No virus check: internal error)
appended to the subject line.

However checking through the logs the mail is showing that is Passed  
CLEAN

Can someone tell me where this appending of the subject line is being  
generated from.
More importantly is it a problem that requires fixing?


Sending a test virus from eicar.com gets picked up as a virus
correctly but doesn't append the subject line

Tony

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] Error Messages to my postings

2007-11-01 Thread Harald ARNOLD
Another error message that ofter occures in q*-Files:

[BEGIN]
MDeferred: 451 4.5.0 Error in processing, id=08281-01, 
quar+notif FAILED: temporarily unable to quarantine: 
450 4.4.1 Can't connect to 127.0.0.1 port 10025, Net
::SMTP: connect: Connection refused (Connection refused) 
at (eval 51) line 145, GEN9 line 179., MTA([127.0.0.1]:
10025), id=08281-01 at /usr/sbin/amavisd line 9101, 
GEN9 line 179.
Fbs
[END]


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] error uvupdate

2007-09-07 Thread Markus Edholm
Hi All,

I´m having some errors for uvupdate
sometimes my hourly update works nice but occasionally i got this:

Virus Scan for Linux v4.16.0
Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
reserved.
(408) 988-3832  LICENSED COPY - Nov 13 2001

Scan engine v5.2.00 for Linux.
Virus data file v4100 created Sep 07 2007
Scanning for 318845 viruses, trojans and variants.

/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Error exit delayed from previous errors
/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Error exit delayed from previous errors
/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Error exit delayed from previous errors
/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Error exit delayed from previous errors
/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Error exit delayed from previous errors
/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Error exit delayed from previous errors
Virus Scan for Linux v4.16.0
Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
reserved.
(408) 988-3832  LICENSED COPY - Nov 13 2001

Scan engine v5.2.00 for Linux.
Virus data file v4100 created Sep 07 2007
Scanning for 318845 viruses, trojans and variants.



and sometimes this:

Virus Scan for Linux v4.16.0
Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
reserved.
(408) 988-3832  LICENSED COPY - Nov 13 2001

Scan engine v5.2.00 for Linux.
Virus data file v4100 created Sep 06 2007
Scanning for 318831 viruses, trojans and variants.

/bin/tar: Unexpected EOF in archive
/bin/tar: Error is not recoverable: exiting now
/bin/tar: Unexpected EOF in archive
/bin/tar: Error is not recoverable: exiting now
/bin/tar: Unexpected EOF in archive
/bin/tar: Unexpected EOF in archive
/bin/tar: Error is not recoverable: exiting now
Virus Scan for Linux v4.16.0
Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
reserved.
(408) 988-3832  LICENSED COPY - Nov 13 2001
Missing or invalid DAT:  /usr/local/uvscan/scan.dat
Virus Scan for Linux v4.16.0
Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
reserved.
(408) 988-3832  LICENSED COPY - Nov 13 2001

Scan engine v5.2.00 for Linux.
Virus data file v4100 created Sep 06 2007
Scanning for 318831 viruses, trojans and variants.


Anyone else that experience problem or is it just my setup?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] error uvupdate

2007-09-07 Thread MrC
Markus Edholm wrote:
 Hi All,
 
 I´m having some errors for uvupdate
 sometimes my hourly update works nice but occasionally i got this:
 
 Virus Scan for Linux v4.16.0
 Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
 reserved.
 (408) 988-3832  LICENSED COPY - Nov 13 2001
 
 Scan engine v5.2.00 for Linux.
 Virus data file v4100 created Sep 07 2007
 Scanning for 318845 viruses, trojans and variants.
 
 /bin/tar: This does not look like a tar archive
 /bin/tar: Skipping to next header

I use my own download script that I wrote a while ago, so I'm not sure 
what the uvupdate script is doing.

Try re-downloading the file manually using ftp and comparing your 
versions.  You might also enable some debug on your uvupdate script to 
record what is actually being downloaded.

I notice your uvscan version is several years old. I believe the 4.x 
series is no longer supported.  I notice dat file version is 4100.  This 
is ancient.

   Virus data file v5114 created Sep 06 2007
   Scanning for 317556 viruses, trojans and variants.

I've update since then from 5.1 and to 5.2, as part of the annual 
maintenance fee.  However, both the 5.x releases offer nothing by 
marketing nonsense in their NEW FEATURES section of the release notes. 
In fact, the NEW FEATURES section in both contain the exact same text:

NEW FEATURES:

-   More protection : Automatic identification and
 removal of viruses delivering the next generation
 of best-of-breed anti-virus scanning engines.
 It offers improved protection against existing,
 new and potential threats and increases the depth
 and breadth of the protection we provide.

-   It's faster than before : We've listened to our
 customers who asked for a faster Engine and it
 delivers superior performance to current McAfee
 Anti-Virus products on all supported platforms.

-   Support for many more packed-executable formats
 in which known malware is often re-packaged
 for obfuscation purposes.

MrC


 /bin/tar: Error exit delayed from previous errors
 /bin/tar: This does not look like a tar archive
 /bin/tar: Skipping to next header
 /bin/tar: Error exit delayed from previous errors
 /bin/tar: This does not look like a tar archive
 /bin/tar: Skipping to next header
 /bin/tar: Error exit delayed from previous errors
 /bin/tar: This does not look like a tar archive
 /bin/tar: Skipping to next header
 /bin/tar: Error exit delayed from previous errors
 /bin/tar: This does not look like a tar archive
 /bin/tar: Skipping to next header
 /bin/tar: Error exit delayed from previous errors
 /bin/tar: This does not look like a tar archive
 /bin/tar: Skipping to next header
 /bin/tar: Error exit delayed from previous errors
 Virus Scan for Linux v4.16.0
 Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
 reserved.
 (408) 988-3832  LICENSED COPY - Nov 13 2001
 
 Scan engine v5.2.00 for Linux.
 Virus data file v4100 created Sep 07 2007
 Scanning for 318845 viruses, trojans and variants.
 
 
 
 and sometimes this:
 
 Virus Scan for Linux v4.16.0
 Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
 reserved.
 (408) 988-3832  LICENSED COPY - Nov 13 2001
 
 Scan engine v5.2.00 for Linux.
 Virus data file v4100 created Sep 06 2007
 Scanning for 318831 viruses, trojans and variants.
 
 /bin/tar: Unexpected EOF in archive
 /bin/tar: Error is not recoverable: exiting now
 /bin/tar: Unexpected EOF in archive
 /bin/tar: Error is not recoverable: exiting now
 /bin/tar: Unexpected EOF in archive
 /bin/tar: Unexpected EOF in archive
 /bin/tar: Error is not recoverable: exiting now
 Virus Scan for Linux v4.16.0
 Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
 reserved.
 (408) 988-3832  LICENSED COPY - Nov 13 2001
 Missing or invalid DAT:  /usr/local/uvscan/scan.dat
 Virus Scan for Linux v4.16.0
 Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights
 reserved.
 (408) 988-3832  LICENSED COPY - Nov 13 2001
 
 Scan engine v5.2.00 for Linux.
 Virus data file v4100 created Sep 06 2007
 Scanning for 318831 viruses, trojans and variants.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] Error in template?

2007-06-05 Thread Jim Knuth
vor 3 Tagen (02.06.2007/23:58 Uhr) schrieb Jim Knuth,

 I use

 [? %q |Not quarantined. | The message has been quarantined
 as: %q]

 in template notify_virus_recips.txt.

 And

 $final_virus_destiny  = D_DISCARD;  # (defaults to D_BOUNCE)
 $final_banned_destiny = D_DISCARD;  # (defaults to D_BOUNCE)

 in amavisd.conf

 The viruses/banned files also land properly in the specially mail
 box.
 However, the notification of the recipient is unfortunately:

 Not quarantined.

 I use amavisd-new 2.5.1


can nobody help me?

In addition: I use MySQL with DB amavis and tables

virus_quarantine_to [EMAIL PROTECTED]
banned_quarantine_to  [EMAIL PROTECTED]


-- 
Viele Gruesse, Kind regards,
 Jim Knuth
 [EMAIL PROTECTED]
 ICQ #277289867
--
Zufalls-Zitat
--
In der Ehe pflegt gewöhnlich einer der Dumme zu sein. Nur wenn
zwei Dumme heiraten: Das kann mitunter gut gehn. (Kurt Tucholsky)
--
Der Text hat nichts mit dem Empfaenger der Mail zu tun
--
Virus free. Checked by NOD32 Version 2309 Build 9971  05.06.2007


-
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] Error in template?

2007-06-02 Thread Jim Knuth
Hallo und Guten Abend AMaViS-user,

I use

[? %q |Not quarantined. | The message has been quarantined
as: %q]

in template notify_virus_recips.txt.

And

$final_virus_destiny  = D_DISCARD;  # (defaults to D_BOUNCE)
$final_banned_destiny = D_DISCARD;  # (defaults to D_BOUNCE)

in amavisd.conf

The viruses/banned files also land properly in the specially mail
box.
However, the notification of the recipient is unfortunately:
Not quarantined. What`s wrong?

I use amavisd-new 2.5.1


-- 
Viele Gruesse, Kind regards,
 Jim Knuth
 [EMAIL PROTECTED]
 ICQ #277289867
--
Zufalls-Zitat
--
Gedanken springen wie Flöhe von einem zum anderen, aber sie 
beißen nicht jeden. (George Bernard Shaw, irischer 
Dramatiker, 1856-1950)
--
Der Text hat nichts mit dem Empfaenger der Mail zu tun
--
Virus free. Checked by NOD32 Version 2305 Build 9959  01.06.2007


-
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] error in virus quarantine at SQL db bytea type

2007-02-28 Thread Nikolay Balov
Hi to all, i have a mail server with virtual accounts for 3 domains. It
is based on: gentoo with postfix-2.2.10, amavisd-new-2.4.1,
PostgreSQL-8.0.9-r1, clamav-0.90, spamassassin-3.1.3 and
courieri-imap-4.0.4. I have a db amavis where all the spam and virus
messages are saved, BUT only the spam goes there. When i receive virus
message the following error is received:

Feb 26 13:29:36 dexter postfix/lmtp[11136]: BBB7D8DBD9:
to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=2,
status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in
processing, id=11138-01, quar+notif FAILED: temporarily unable to
quarantine: 451 4.5.0 Storing to sql db as mail_id M+ECNSAIM2Mb failed:
writing mail text to SQL failed: Error closing, flush: sql inserting
text failed, sql exec: err=7, 22P02, DBD::Pg::st execute failed: ERROR:
 invalid input syntax for type bytea at (eval 64) line 177. at (eval 64)
line 68. at (eval 64) line 293., id=11138-01 at /usr/sbin/amavisd line
8525. (in reply to end of DATA command))

The configuration of the MTA is based on
http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System and the
amavis DB is based on this script
http://www.ijs.si/software/amavisd/README.sql.txt
as is described there the quarantine.mail_text field type is bytea, and
from the beginning it was in this type.
All the messages that are temporarily rejected are saved in
/var/amavis/tmp and the current size of this directory is 1.3GB for one
week working of the server. Please help i don't have enough hard disk
space for leaving this error   :)   (joke)
The other thing that I'm thinking about is to stop put quarantine in SQL
DB and make amavis to store them in one administrator account, but i
prefer to use the database.

Thanks a lot for any help and be sure that it will be greatly appreciated.

Best regards,
Niki
-- Cyberly yours, Nikolay Balov mail: [EMAIL PROTECTED] Linux
Registered User #382280 http://keyserver.linux.it/ Key fingerprint =
D80E A05B 5727 B40C 7431 2CC0 0845 E79E 428A 1109
-- 
Cyberly yours,
Nikolay Balov

mail: [EMAIL PROTECTED]
Linux Registered User #382280
http://keyserver.linux.it/
Key fingerprint = D80E A05B 5727 B40C 7431  2CC0 0845 E79E 428A 1109

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error in virus quarantine at SQL db bytea type

2007-02-28 Thread Mark Martinec
Nikolay,

 based on: gentoo with postfix-2.2.10, amavisd-new-2.4.1,
 PostgreSQL-8.0.9-r1, clamav-0.90, spamassassin-3.1.3 and
 courieri-imap-4.0.4. I have a db amavis where all the spam and virus
 messages are saved, BUT only the spam goes there. When i receive virus
 message the following error is received:

 Feb 26 13:29:36 dexter postfix/lmtp[11136]: BBB7D8DBD9:
 to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=2,
 status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in
 processing, id=11138-01, quar+notif FAILED: temporarily unable to
 quarantine: 451 4.5.0 Storing to sql db as mail_id M+ECNSAIM2Mb failed:
 writing mail text to SQL failed: Error closing, flush: sql inserting
 text failed, sql exec: err=7, 22P02, DBD::Pg::st execute failed:

 ERROR: invalid input syntax for type bytea

 http://www.ijs.si/software/amavisd/README.sql.txt
 as is described there the quarantine.mail_text field type is bytea,
 and from the beginning it was in this type.


Which version of Perl module DBD::Pg ?
You should be using the latest (1.49).
It is probably due to a CPAN bug #18264.

Also the following may be related, fixed with amavisd-new-2.4.4 (or 2.4.5):


amavisd-new-2.4.4 release notes

- PostgreSQL: when storing mail text to a quarantine use pg_type=PG_BYTEA
  attribute with a field 'quarantine.mail_text';

- SQL logging: cleanly chop an UTF-8 octet sequence according to RFC 3629
  (avoid truncating character octet sequence tail) when Subject, From or
  Message-Id header field is longer than 255 characters;

- SQL: explicitly call DBI::bind_param to be able to specify data types
  of values passed in @args to Amavis::Out::SQL::Connection::execute;

Mark

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error in virus quarantine at SQL db bytea type

2007-02-28 Thread Nikolay Balov
Thanks for the fast answer Mark :)
Yes i have readed that there is a bug in DBD:Pg, and i upgraded to
version 1.49 but the problem is still there. I'll upgrade amavis now and
i will tell the result.

Regards,
Niki

Mark Martinec wrote:
 Nikolay,
 
 based on: gentoo with postfix-2.2.10, amavisd-new-2.4.1,
 PostgreSQL-8.0.9-r1, clamav-0.90, spamassassin-3.1.3 and
 courieri-imap-4.0.4. I have a db amavis where all the spam and virus
 messages are saved, BUT only the spam goes there. When i receive virus
 message the following error is received:

 Feb 26 13:29:36 dexter postfix/lmtp[11136]: BBB7D8DBD9:
 to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=2,
 status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in
 processing, id=11138-01, quar+notif FAILED: temporarily unable to
 quarantine: 451 4.5.0 Storing to sql db as mail_id M+ECNSAIM2Mb failed:
 writing mail text to SQL failed: Error closing, flush: sql inserting
 text failed, sql exec: err=7, 22P02, DBD::Pg::st execute failed:
 
 ERROR: invalid input syntax for type bytea
 
 http://www.ijs.si/software/amavisd/README.sql.txt
 as is described there the quarantine.mail_text field type is bytea,
 and from the beginning it was in this type.
 
 
 Which version of Perl module DBD::Pg ?
 You should be using the latest (1.49).
 It is probably due to a CPAN bug #18264.
 
 Also the following may be related, fixed with amavisd-new-2.4.4 (or 2.4.5):
 
 
 amavisd-new-2.4.4 release notes
 
 - PostgreSQL: when storing mail text to a quarantine use pg_type=PG_BYTEA
   attribute with a field 'quarantine.mail_text';
 
 - SQL logging: cleanly chop an UTF-8 octet sequence according to RFC 3629
   (avoid truncating character octet sequence tail) when Subject, From or
   Message-Id header field is longer than 255 characters;
 
 - SQL: explicitly call DBI::bind_param to be able to specify data types
   of values passed in @args to Amavis::Out::SQL::Connection::execute;
 
 Mark
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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/
 


-- 
Cyberly yours,
Nikolay Balov

mail: [EMAIL PROTECTED]
Linux Registered User #382280
http://keyserver.linux.it/
Key fingerprint = D80E A05B 5727 B40C 7431  2CC0 0845 E79E 428A 1109

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error in virus quarantine at SQL db bytea type

2007-02-28 Thread Nikolay Balov
Mark thanks again for the proposed decision. A simple update of
amavisd-new to 2.4.5 fixed the problem. I don't know what exactly was
but there is no more problem :D

Thanks again

Best regards,
Niki

Mark Martinec wrote:
 Nikolay,
 
 based on: gentoo with postfix-2.2.10, amavisd-new-2.4.1,
 PostgreSQL-8.0.9-r1, clamav-0.90, spamassassin-3.1.3 and
 courieri-imap-4.0.4. I have a db amavis where all the spam and virus
 messages are saved, BUT only the spam goes there. When i receive virus
 message the following error is received:

 Feb 26 13:29:36 dexter postfix/lmtp[11136]: BBB7D8DBD9:
 to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=2,
 status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in
 processing, id=11138-01, quar+notif FAILED: temporarily unable to
 quarantine: 451 4.5.0 Storing to sql db as mail_id M+ECNSAIM2Mb failed:
 writing mail text to SQL failed: Error closing, flush: sql inserting
 text failed, sql exec: err=7, 22P02, DBD::Pg::st execute failed:
 
 ERROR: invalid input syntax for type bytea
 
 http://www.ijs.si/software/amavisd/README.sql.txt
 as is described there the quarantine.mail_text field type is bytea,
 and from the beginning it was in this type.
 
 
 Which version of Perl module DBD::Pg ?
 You should be using the latest (1.49).
 It is probably due to a CPAN bug #18264.
 
 Also the following may be related, fixed with amavisd-new-2.4.4 (or 2.4.5):
 
 
 amavisd-new-2.4.4 release notes
 
 - PostgreSQL: when storing mail text to a quarantine use pg_type=PG_BYTEA
   attribute with a field 'quarantine.mail_text';
 
 - SQL logging: cleanly chop an UTF-8 octet sequence according to RFC 3629
   (avoid truncating character octet sequence tail) when Subject, From or
   Message-Id header field is longer than 255 characters;
 
 - SQL: explicitly call DBI::bind_param to be able to specify data types
   of values passed in @args to Amavis::Out::SQL::Connection::execute;
 
 Mark
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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/
 


-- 
Cyberly yours,
Nikolay Balov

mail: [EMAIL PROTECTED]
Linux Registered User #382280
http://keyserver.linux.it/
Key fingerprint = D80E A05B 5727 B40C 7431  2CC0 0845 E79E 428A 1109

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error in virus quarantine at SQL db bytea type

2007-02-28 Thread Mark Martinec
Nikolay,

 Mark thanks again for the proposed decision. A simple update of
 amavisd-new to 2.4.5 fixed the problem. I don't know what exactly was
 but there is no more problem :D

Thanks for the feedback.

It was probably due to wrong (implicit - text) data type of the argument,
fixed in 2.4.4 by explicitly specifying argument data type to be a bytea:

  - SQL: explicitly call DBI::bind_param to be able to specify data types
of values passed in @args to Amavis::Out::SQL::Connection::execute;


Mark

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error clamav

2007-02-14 Thread boricua
i still don't know why this fails on most emails

what should this entry look like in amavisd.conf
# ### http://www.clamav.net/
 ['ClamAV-clamd',
   \ask_daemon, [CONTSCAN {}\n, /var/run/clamav-milter/clamd.sock],
   qr/\bOK$/, qr/\bFOUND$/,



results in log 
Feb 14 07:45:07 pepino amavis[15786]: (15786-07) (!!)WARN: all primary virus 
scanners failed, considering backups
Feb 14 07:47:25 pepino amavis[15786]: (15786-08) (!!)ask_av (ClamAV-clamd) 
FAILED - unexpected result: /var/amavis/tmp/amavis-20070214T064635-15786/parts: 
lstat() failed. ERROR\n

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error clamav

2007-02-14 Thread Mark Martinec
boricua,

 i still don't know why this fails on most emails

 Feb 14 07:45:07 pepino amavis[15786]: (15786-07) (!!)WARN: all primary
 virus scanners failed, considering backups Feb 14 07:47:25 pepino
 amavis[15786]: (15786-08) (!!)ask_av (ClamAV-clamd) FAILED - unexpected
 result: /var/amavis/tmp/amavis-20070214T064635-15786/parts: lstat() failed.
 ERROR\n

The message:
  lstat() failed. ERROR
comes directly from clamd, it is not generated by amavisd, just logged by it.

You did configure the /etc/group and AllowSupplementaryGroups
as I pointed out in one of my earlier messages, did you?

| And don't miss the following from INSTALL file:
|
|   If different UID is preferred for an AV scanner, a solution for
|   ClamAV is to add user clamav to the amavis group, and then add
|   AllowSupplementaryGroups to clamd.conf.

Mark

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error clamav

2007-02-14 Thread boricua
On Wed, 14 Feb 2007 14:26:36 +0100
Mark Martinec [EMAIL PROTECTED] wrote:

 boricua,
 
  i still don't know why this fails on most emails
 
  Feb 14 07:45:07 pepino amavis[15786]: (15786-07) (!!)WARN: all primary
  virus scanners failed, considering backups Feb 14 07:47:25 pepino
  amavis[15786]: (15786-08) (!!)ask_av (ClamAV-clamd) FAILED - unexpected
  result: /var/amavis/tmp/amavis-20070214T064635-15786/parts: lstat() failed.
  ERROR\n
 
 The message:
   lstat() failed. ERROR
 comes directly from clamd, it is not generated by amavisd, just logged by it.
 
 You did configure the /etc/group and AllowSupplementaryGroups
 as I pointed out in one of my earlier messages, did you?

i had missed that thanks that appears to solve the primary scanner issue

bash-3.1# tail -f /var/log/maillog
Feb 14 08:52:01 pepino amavis[17962]: No decoder for   .arc  tried: 
nomarch, arc
Feb 14 08:52:01 pepino amavis[17962]: Found decoder for.zoo  at /usr/bin/zoo
Feb 14 08:52:01 pepino amavis[17962]: Found decoder for.lha  at /usr/bin/lha
Feb 14 08:52:01 pepino amavis[17962]: No decoder for   .cab  tried: 
cabextract
Feb 14 08:52:01 pepino amavis[17962]: No decoder for   .tnef tried: tnef
Feb 14 08:52:01 pepino amavis[17962]: Internal decoder for .tnef
Feb 14 08:52:01 pepino amavis[17962]: Found decoder for.exe  at 
/usr/bin/lha; /usr/bin/unarj
Feb 14 08:52:01 pepino amavis[17962]: Using primary internal av scanner code 
for ClamAV-clamd
Feb 14 08:52:01 pepino amavis[17962]: Found secondary av scanner 
ClamAV-clamscan at /usr/bin/clamscan
Feb 14 08:52:01 pepino amavis[17962]: Creating db in /var/amavis/db/; 
BerkeleyDB 0.31, libdb 4.1



 | And don't miss the following from INSTALL file:
 |
 |   If different UID is preferred for an AV scanner, a solution for
 |   ClamAV is to add user clamav to the amavis group, and then add
 |   AllowSupplementaryGroups to clamd.conf.
 
thanks i had missed that as well



i did 3 samples

virus  blocked  and get email notification  [ok]

sample-spam-GTUBE-junk.txt  its stopped but i dont get the notify
and the sample-junk gets thru as not spam

any ideas what it could be 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error clamav

2007-02-14 Thread boricua
 sample-spam-GTUBE-junk.txt  its stopped but i dont get the notify
 and the sample-junk gets thru as not spam
 
 any ideas what it could be 
 
 

bad header sample also gets thru here is another header from an email spam i 
dont see any hits
this is kind of wierd


X-Virus-Scanned: amavisd-new at pepino.is-a-geek.org
Received: from pepino.is-a-geek.org ([127.0.0.1])
by localhost (pepino.is-a-geek.org [127.0.0.1]) (amavisd-new, port 
10024)
with ESMTP id VSgwW3mEyYs9 for [EMAIL PROTECTED];

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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/
 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] error clamav

2007-02-10 Thread Mark Martinec
boricua,

 /var/run/clamav-milter/clamd.sock

 ok i adjusted and it seems to work with the sample spam and sample virus
 ,however i did see this warning on the log
 Feb  9 20:45:17 pepino amavis[20650]: (20650-02) (!!)ask_av (ClamAV-clamd)
 FAILED - unexpected result: /var/amavis/tmp/amavis-20070209T2041

Because you are letting amavisd speak to clamav-milter,
instead of to a clamd daemon.

  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/


  1   2   >