Re: [AMaViS-user] what needs reloading to fix IO::File ?

2008-03-14 Thread Mark Martinec
Voytek,

 I noticed that in my log

 Mar 14 13:50:42 bilby amavis[30865]: (30865-01) (!!)TROUBLE in check_mail:
 mime_decode-1 FAILED: Can't locate object method binmode via package
 IO::File at /usr/lib/perl5/site_perl/5.8.5/MIME/Body.pm line 437.

The IO::File comes in a IO-x.xx bundle and is one of the core modules
(i.e. comes with the installation of perl). The 'binmode' method is
not in IO-1.20, but it is present in IO-1.22 or later - I don't know
when exactly it was introduced, the perl 5.6.2 seems not to have it yet.
I would expect that your perl (5.8.5???) already has it - perhaps there
is some old version of IO::File left behind.

 tried:
 cpan install IO:File
 CPAN: Storable loaded ok
 Going to read /root/.cpan/Metadata
   Database was generated on Thu, 13 Mar 2008 20:32:28 GMT
 Warning: Cannot install IO:File, don't know what it is.

It is called IO::File, not IO:File.

http://www.wsection.com/cpan/authors/id/G/GB/GBARR/
http://cpan.uwinnipeg.ca/~gbarr/IO

  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] what needs reloading to fix IO::File ?

2008-03-14 Thread Voytek Eymont

On Fri, March 14, 2008 10:15 pm, Mark Martinec wrote:

 It is called IO::File, not IO:File.

ooops...sorry..

thanks, Mark, now installed fine, hopefully the error will go away...
(and, I've fixed most of the fuzzyOCR stuff, as well)


-- 
Voytek


-
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] Prevent banned notification in case of high spam score?

2008-03-14 Thread MBGaskins
[EMAIL PROTECTED] wrote on 03/13/2008 09:09:48 PM:
 The spam score is only available if it is cached from some previous
 check of a message with the same contents, or in case of multi-recipient
 mail where some recipients are set to bypass banned checks. If there is
 no other need for spam checking and a message contains a banned 
contents,
 then spam checking is skipped.
 
 I dont't see any obvious solution, except to (temporarily?) disable
 banned recipient notifications, of lift a ban on zip and let spam checks
 take over.
 
   Mark

Well, I don't think I can get rid of the notifications, but I'll check 
with the powers that be and see if they don't mind taking zips out of 
banned status.  Most malicious stuff that might be contained within the 
zip should still be caught, so there's probably no huge reason to block 
them at this point.

Thanks.

Mike
-
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] RELAYCOUNTRY Header passed

2008-03-14 Thread Mark Martinec
Leonard,

 I've done a little more digging since my first posting on this subject.

 We really need to get _RELAYCOUNTRY_ from SpamAssassin into our messages
 with X-RelayCountries header.

 I see where provisions have been made in the past year to allow amavisd to
 capture this (along with a few others) from SA by using supplementary_info
 subroutine.

 Making all of this work is probably simpler than I realize, but not being
 a perl programmer, I haven't got a clue of how to start.  I can usually
 follow by example, but I couldn't find any examples in the code (or I just
 didn't know what I was looking at...probably the case).

 Can anyone get me started in the right direction to get this header into
 our email messages?

Assuming amavisd-new-2.5.4 (or 2.6.0-*), place the following
into amavisd.conf:
  include_config_files('/etc/amavisd-custom.conf');


The /etc/amavisd-custom.conf could then look like:


package Amavis::Custom;
use strict;

sub new {
  my($class,$conn,$msginfo) = @_;
  bless {}, $class;
}

sub before_send {
  my($self,$conn,$msginfo) = @_;
  my($rly_country) = $msginfo-supplementary_info('RELAYCOUNTRY');
  if (defined $rly_country  $rly_country ne '') {
my($hdr_edits) = $msginfo-header_edits;
my($all_local) =
  !grep { !$_-recip_is_local } @{$msginfo-per_recip_data};
$hdr_edits-add_header('X-Relay-Countries', $rly_country)  if $all_local;
  }
};

1;  # insure a defined return



  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] X-Spam-Languages header (patch)

2008-03-14 Thread Mark Martinec
Attila,

 I've always been frustrated about amavisd not setting the
 X-Spam-Languages header (while it -by default- loads the TextCat
 SpamAssassin plugin, so the information is there and it take some CPU
 time to figure it out), but now I actually need it, so made the
 following patch to the latest (from FreeBSD ports) amavisd.

 By default amavisd now includes the X-Spam-Languages header. If backward
 compatibility is required, X-Spam-Languages should not be added in the
 allowed_added_header_fields hash, so this produces the current output
 with the possibility to include the header if needed.

 Mark, do you think it's OK to include it in the mainline?

Well, you need X-Spam-Languages, somebody else needs X-Relay-Countries,
still others might need X-Spam-ASN, AWL information, etc.
So where should it stop?

I think the custom hooks (i.e. code supplied in amavisd.conf) provides
a sufficient and not too complicated mechanism to cater for such needs:

Assuming amavisd-new-2.5.4 (or 2.6.0-*), place the following
into amavisd.conf:
  include_config_files('/etc/amavisd-custom.conf');


The /etc/amavisd-custom.conf could then look like:


package Amavis::Custom;
use strict;

sub new {
  my($class,$conn,$msginfo) = @_;
  bless {}, $class;
}

sub before_send {
  my($self,$conn,$msginfo) = @_;
  my($all_local) = !grep { !$_-recip_is_local } @{$msginfo-per_recip_data};
  if ($all_local) {
my($hdr_edits) = $msginfo-header_edits;
my($rly_country) = $msginfo-supplementary_info('RELAYCOUNTRY');
$hdr_edits-add_header('X-Relay-Countries', $rly_country)
  if defined $rly_country  $rly_country ne '';
my($languages) = $msginfo-supplementary_info('LANGUAGES');
$hdr_edits-add_header('X-Spam-Languages', $languages)
  if defined $languages  $languages ne '';
  }
};

1;  # insure a defined return



Sorry for a late  reply.
  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] spamassassin installation broken by perl install

2008-03-14 Thread Jacob Leaver
Mufit Eribol wrote:
 I have amavisd-new (amavisd-new-2.5.3) and spamassasin (3.1.9) on a 
 Centos 5 system. I had no problem with this setup.

 My story started when I saw some missing module in the log
 /usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9, 3.001009, no optional 
 modules: Mail::SpamAssassin::Plugin::DKIM 
 Mail::SpamAssassin::Plugin::URIDetail Error

 Wanted to install this module by the following command:
 perl -MCPAN -e 'install Mail::SpamAssassin::Plugin::URIDetail'

 This command installed required module.

 BUT,

 Now, the log says I need more modules:
 /usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4, 3.002004, no optional 
 modules: Encode::Detect Image::Info Image::Info::GIF Image::Info::JPEG 
 Image::Info::PNG Image::Info::TIFF Mail::SPF Mail::SPF::Server 
 Mail::SPF::Request Mail::SPF::Mech Mail::SPF::Mech::A 
 Mail::SPF::Mech::PTR Mail::SPF::Mech::All Mail::SPF::Mech::Exists 
 Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include 
 Mail::SPF::Mech::MX Mail::SPF::Mod Mail::SPF::Mod::Exp 
 Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech 
 Mail::SPF::v1::Record Mail::SPF::v2::Record NetAddr::IP 
 NetAddr::IP::Util auto::NetAddr::IP::Util::inet_n2dx 
 auto::NetAddr::IP::Util::ipv6_n2d Error

 aaargh! Stupid me! Why am I trying to fix something which worked nicely?
   


The rpmforge guys (http://rpmforge.net/( have a set of up-to-date centos 
5 rpms, including a recent spamassassin, amavisd-new, and all the 
associated dependancies in RPM format, in a conventient yum repository.  
I've used 'em, and I'd recommend 'em, though extra repos aren't for the 
faint of heart.

All that said, I don't believe that there is an uninstall feature for 
CPAN, meaning that you'll need to manually remove the modules that you 
installed using cpan.   In my CentOS  RHEL experience, you'd probably 
want to not use CPAN anyway, since future package upgrades are pretty 
much guaranteed to kill your manually installed CPAN ones, resulting in 
brutal, sometimes comical results.  (the rpmforge folks also maintain an 
metric TON of perl modules in RPM format.)

Say,  did I mention the rpmforge guys? ;)

Jacob Leaver
C-Corp.net


-
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] spamassassin installation broken by perl install

2008-03-14 Thread huetmann


Hi,
you might try to install the same again with rpm, by using cpan2rpm. This 
should overwrite your cpan install but also update your rpm db. Then ypu 
should at least know, what is required to install.

cpan is great, but if you wnat to keep your installation clean, you shoudl 
always use cpan2rpm, and the install the rpms that are built that way.

Hope this helps,
.peter


On Fri, 14 Mar 2008, Mufit Eribol wrote:

 I have amavisd-new (amavisd-new-2.5.3) and spamassasin (3.1.9) on a
 Centos 5 system. I had no problem with this setup.

 My story started when I saw some missing module in the log
 /usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9, 3.001009, no optional
 modules: Mail::SpamAssassin::Plugin::DKIM
 Mail::SpamAssassin::Plugin::URIDetail Error

 Wanted to install this module by the following command:
 perl -MCPAN -e 'install Mail::SpamAssassin::Plugin::URIDetail'

 This command installed required module.

 BUT,

 Now, the log says I need more modules:
 /usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4, 3.002004, no optional
 modules: Encode::Detect Image::Info Image::Info::GIF Image::Info::JPEG
 Image::Info::PNG Image::Info::TIFF Mail::SPF Mail::SPF::Server
 Mail::SPF::Request Mail::SPF::Mech Mail::SPF::Mech::A
 Mail::SPF::Mech::PTR Mail::SPF::Mech::All Mail::SPF::Mech::Exists
 Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include
 Mail::SPF::Mech::MX Mail::SPF::Mod Mail::SPF::Mod::Exp
 Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech
 Mail::SPF::v1::Record Mail::SPF::v2::Record NetAddr::IP
 NetAddr::IP::Util auto::NetAddr::IP::Util::inet_n2dx
 auto::NetAddr::IP::Util::ipv6_n2d Error

 aaargh! Stupid me! Why am I trying to fix something which worked nicely?

 Now, I have two spamassassin installations: one installed as an rpm
 (3.1.9) and the other installed as perl module (3.2.4). Somehow, amavisd
 now reads the new one.

 Also, I have cron job to update the rules by sa-update in
 /var/lib/spamassassin/3.001009 directory. This operation probably broke
 this cron job as well.

 I would like to go back to rpm based setup as I can manipulate it much
 more easily. Please help!

 Best wishes,
 Mufit


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


[AMaViS-user] spamassassin installation broken by perl install

2008-03-14 Thread Mufit Eribol
I have amavisd-new (amavisd-new-2.5.3) and spamassasin (3.1.9) on a 
Centos 5 system. I had no problem with this setup.

My story started when I saw some missing module in the log
/usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9, 3.001009, no optional 
modules: Mail::SpamAssassin::Plugin::DKIM 
Mail::SpamAssassin::Plugin::URIDetail Error

Wanted to install this module by the following command:
perl -MCPAN -e 'install Mail::SpamAssassin::Plugin::URIDetail'

This command installed required module.

BUT,

Now, the log says I need more modules:
/usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4, 3.002004, no optional 
modules: Encode::Detect Image::Info Image::Info::GIF Image::Info::JPEG 
Image::Info::PNG Image::Info::TIFF Mail::SPF Mail::SPF::Server 
Mail::SPF::Request Mail::SPF::Mech Mail::SPF::Mech::A 
Mail::SPF::Mech::PTR Mail::SPF::Mech::All Mail::SPF::Mech::Exists 
Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include 
Mail::SPF::Mech::MX Mail::SPF::Mod Mail::SPF::Mod::Exp 
Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech 
Mail::SPF::v1::Record Mail::SPF::v2::Record NetAddr::IP 
NetAddr::IP::Util auto::NetAddr::IP::Util::inet_n2dx 
auto::NetAddr::IP::Util::ipv6_n2d Error

aaargh! Stupid me! Why am I trying to fix something which worked nicely?

Now, I have two spamassassin installations: one installed as an rpm 
(3.1.9) and the other installed as perl module (3.2.4). Somehow, amavisd 
now reads the new one.

Also, I have cron job to update the rules by sa-update in 
/var/lib/spamassassin/3.001009 directory. This operation probably broke 
this cron job as well.

I would like to go back to rpm based setup as I can manipulate it much 
more easily. Please help!

Best wishes,
Mufit


-
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] spamassassin installation broken by perl install

2008-03-14 Thread Mufit Eribol
Jacob Leaver wrote:
 Mufit Eribol wrote:
 I have amavisd-new (amavisd-new-2.5.3) and spamassasin (3.1.9) on a 
 Centos 5 system. I had no problem with this setup.

 My story started when I saw some missing module in the log
 /usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9, 3.001009, no 
 optional modules: Mail::SpamAssassin::Plugin::DKIM 
 Mail::SpamAssassin::Plugin::URIDetail Error

 Wanted to install this module by the following command:
 perl -MCPAN -e 'install Mail::SpamAssassin::Plugin::URIDetail'

 This command installed required module.

 BUT,

 Now, the log says I need more modules:
 /usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4, 3.002004, no 
 optional modules: Encode::Detect Image::Info Image::Info::GIF 
 Image::Info::JPEG Image::Info::PNG Image::Info::TIFF Mail::SPF 
 Mail::SPF::Server Mail::SPF::Request Mail::SPF::Mech 
 Mail::SPF::Mech::A Mail::SPF::Mech::PTR Mail::SPF::Mech::All 
 Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 
 Mail::SPF::Mech::Include Mail::SPF::Mech::MX Mail::SPF::Mod 
 Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect 
 Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record 
 Mail::SPF::v2::Record NetAddr::IP NetAddr::IP::Util 
 auto::NetAddr::IP::Util::inet_n2dx auto::NetAddr::IP::Util::ipv6_n2d 
 Error

 aaargh! Stupid me! Why am I trying to fix something which worked nicely?
   


 The rpmforge guys (http://rpmforge.net/( have a set of up-to-date 
 centos 5 rpms, including a recent spamassassin, amavisd-new, and all 
 the associated dependancies in RPM format, in a conventient yum 
 repository.  I've used 'em, and I'd recommend 'em, though extra repos 
 aren't for the faint of heart.

 All that said, I don't believe that there is an uninstall feature for 
 CPAN, meaning that you'll need to manually remove the modules that you 
 installed using cpan.   In my CentOS  RHEL experience, you'd probably 
 want to not use CPAN anyway, since future package upgrades are pretty 
 much guaranteed to kill your manually installed CPAN ones, resulting 
 in brutal, sometimes comical results.  (the rpmforge folks also 
 maintain an metric TON of perl modules in RPM format.)

 Say,  did I mention the rpmforge guys? ;)

 Jacob Leaver
 C-Corp.net

Actually, I am also quite happy with rpmforge packages. I prefer yum 
based install too. It is my mistake! I didn't know that CPAN would 
install a new SA. Now, how can I go back to yum based spamassassin 
install? And is there a log file for install of CPAM modules ? Should I 
clean them, or leave them as they are?

Mufit

-
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] Playing with the amavisd-new custom hooks

2008-03-14 Thread Mark Martinec
Jacob,

 I've been playing around with the Amavis::Custom hooks for fun and
 entertainment, it's cool stuff.  I'm not seeing, however, and maybe I
 just missed it, a nice hookable way to add per-recipient headers.  If I
 haven't missed something clever, would there be any interest in a patch
 for this?
 If so, which would be the preferable method:
 1.) add a per_recip header array to be added by
  add_forwarding_header_per_recip 
 2.) add another hook somewhere

 or some other ingenious something I doubtless haven't though of, yet.

Common header edits (for all recipients) can be made from custom hooks
even now (2.5.4, 2.6.0) - see my two todays replies on topics:
  RELAYCOUNTRY Header passed
and
  X-Spam-Languages header (patch)

But you are right there is no hooks provision for per-recipient header
edits, because 'header_edits' is a property of the $msginfo object,
and per-recipient header edits are done through a magic around
add_forwarding_header_edits_per_recip. I'll put on a TODO list this
need, but it will not be in 2.6.0 yet. Until this is implemented,
hacking of add_forwarding_header_edits_per_recip is needed.

  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] spamassassin installation broken by perl install

2008-03-14 Thread huetmann


You'll find the program at:

http://www.arix.com/perl/cpan2rpm/

What I would do is try and build rpms for the modules (including 
spamassassin) wit hthe cpan2rpm program.

It is quite easily done. You need to pass the name of the moduzle to it 
like

cpan2rpm Compress::Zlib

and it will download the package from cpan and build an rpm which you then 
install with rpm -Uvh etc.

It also takes targz on the command line, and buils an rpm.

The idea was that you can actually build an rpm, which shoudl overwrite 
your current installation. You then can uninstall with rpm -e  ,and that 
shoudl take care of cleaning it up.

Maybe it  is too complicated, but I can think of any other way to clean up 
the system. (Apart from manually deleting the files).

Hope this helps,

.peter



On Fri, 14 Mar 2008, Mufit Eribol wrote:

 [EMAIL PROTECTED] wrote:


 Hi,
 you might try to install the same again with rpm, by using cpan2rpm.
 This should overwrite your cpan install but also update your rpm db.
 Then ypu should at least know, what is required to install.

 cpan is great, but if you wnat to keep your installation clean, you
 shoudl always use cpan2rpm, and the install the rpms that are built
 that way.

 Hope this helps,
 .peter


 Peter, thank you very much for your help! Could you please elaborate on
 cpan2rpm? I have never used it. What should the command look like? I
 installed Mail::SpamAssassin::Plugin::URIDetail module. SA was installed
 during this process.

 Mufit



 -
 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] MTA-BLOCKED?

2008-03-14 Thread mouss
Mark Martinec wrote:
 Luis Daniel,

   
 I was debugging amavisd and I found this:
 brandmauer amavis[6320]: (06320-02-3) TIMING [total 45329 ms] - SMTP
 pre-DATA-flush: 403 (1%)1, SMTP DATA: 62 (0%)1, check_init: 126 (0%)1,
 digest_hdr: 2 (0%)1, digest_body: 9 (0%)1, gen_mail_id: 8 (0%)1,
 mime_decode: 205 (0%)2, get-file-type1: 363 (1%)3, decompose_part: 107
 (0%)3,
 parts_decode: 0 (0%)3, check_header: 91 (0%)3, AV-scan-1: 1290 (3%)6,
 spam-wb-list: 2435 (5%)11, SA parse: 26 (0%)11, SA check: 4243 (9%)21,
 update_cache: 32 (0%)21, decide_mail_destiny: 35 (0%)21, fwd-connect: 362
 (1%)22, fwd-xforward: 69 (0%)22, fwd-mail-pip: 179 (0%)22, fwd-rcpt-pip: 32
 (0%)22, fwd-data-chkpnt: 46 (0%)22, write-header: 11 (0%)22,
 fwd-data-contents: 0 (0%)22, fwd-end-chkpnt: 34549 (76%)99, prepare-dsn: 91
 (0%)99, main_log_entry: 86 (0%)99, update_snmp: 280 (1%)100, SMTP
 pre-response: 22 (0%)100, SMTP response: 69 (0%)100, unlink-1-files: 94
 (0%) 100, rundown: 1 (0%)100

 lok at this: fwd-end-chkpnt: 34549 (76%)99
 to high value, what should I do then?
 

 Yes, it is pretty high, Postfix is taking 34 seconds to respond
 to end-of-message. Perhaps you have not disabled header of body
 checks in MTA on the re-entry path (port 10025) and you have
 complex or poorly written regexp-based header/body checks there.
 Or it could be some disk I/O problem.
   

note that his amavisd-new is listening on 10025 (see his telnet 
transcript). not sure where he forwards mail (10026?) and what is done 
there...



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

2008-03-14 Thread Mark Martinec
Gary,

 Just to clarify, to upgrade to 2.6.0, you have us drop:
 ...
  ALTER TABLE maddr DROP CONSTRAINT maddr_email_key;
 ...

 Yet, I could find no where in the documentation where a constraint
 called maddr_email_key is created (so it's not clear if
 'maddr_email_key' is literal or not).

It is a constraint name implicitly given by PostgreSQL.
With MySQL the key name is probably just 'maddr'.

 This created an 'email' INDEX:

 CREATE TABLE maddr (
   id int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
   email  varchar(255) NOT NULL UNIQUE, -- full mail address
   domain varchar(255) NOT NULL -- only domain part of the email
 address -- with subdomain fields in reverse ) ENGINE=InnoDB;

 It is this index you wish dropped (and subsequently replaced)?

Yes.

I have now (hopefully) clarified this in the updated docs:

README.sql-mysql:

CREATE TABLE maddr (
  partition_tag integer   DEFAULT 0,   -- see $sql_partition_tag
  id bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
  email  varchar(255) NOT NULL,-- full mail address
  domain varchar(255) NOT NULL,-- only domain part of the email address
   -- with subdomain fields in reverse
  CONSTRAINT part_email UNIQUE (partition_tag,email)
) ENGINE=InnoDB;


README.sql-pg:

CREATE TABLE maddr (
  partition_tag integer   DEFAULT 0,   -- see $sql_partition_tag
  id serial   PRIMARY KEY,
  email  varchar(255) NOT NULL,-- full e-mail address
  domain varchar(255) NOT NULL,-- only domain part of the email address
   -- with subdomain fields in reverse
  CONSTRAINT part_email UNIQUE (partition_tag,email)
);


RELEASE_NOTES:

COMPATIBILITY WITH 2.5.3

- when using SQL for logging (e.g. for a pen pals feature) or for
  quarantining, SQL tables tables maddr, msgs, msgrcpt and quarantine need
  to be extended by a new field 'partition_tag';  see below for details;

  Should a need arise to revert to amavisd-new-2.5.4 while keeping the
  new partition_tag field, the 'SELECT id FROM maddr ...' may become slow
  due to dropped index on a field email, which is replaced by an index
  on a pair (partition_tag,email). The following change to amavisd 2.5.4
  solves the problem:

@@ -901,2 +901,2 @@
 'sel_adr' =
-  'SELECT id FROM maddr WHERE email=?',
+  'SELECT id FROM maddr WHERE partition_tag=0 AND email=?',


[...]


  To convert tables of an existing database, please use ALTER command.
  Here is a conversion example (MySQL or PostgreSQL, probably others):

ALTER TABLE maddr  ADD partition_tag integer DEFAULT 0;
ALTER TABLE msgs   ADD partition_tag integer DEFAULT 0;
ALTER TABLE msgrcptADD partition_tag integer DEFAULT 0;
ALTER TABLE quarantine ADD partition_tag integer DEFAULT 0;

  As the maddr.email is no longer guaranteed to be unique, but the pair
  of (maddr.partition_tag, maddr.email) is unique, the constraint and
  an associated index needs to be changed:

  = PostgreSQL:
  ALTER TABLE maddr
DROP CONSTRAINT maddr_email_key,
ADD  CONSTRAINT maddr_email_key UNIQUE (partition_tag,email);

  = MySQL:
  ALTER TABLE maddr
DROP KEY email,
ADD UNIQUE KEY part_email (partition_tag,email);




Sorry for a late reply.

  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] spamassassin installation broken by perl install

2008-03-14 Thread Mufit Eribol
[EMAIL PROTECTED] wrote:


 You'll find the program at:

 http://www.arix.com/perl/cpan2rpm/

 What I would do is try and build rpms for the modules (including 
 spamassassin) wit hthe cpan2rpm program.

 It is quite easily done. You need to pass the name of the moduzle to 
 it like

 cpan2rpm Compress::Zlib

 and it will download the package from cpan and build an rpm which you 
 then install with rpm -Uvh etc.

 It also takes targz on the command line, and buils an rpm.

 The idea was that you can actually build an rpm, which shoudl 
 overwrite your current installation. You then can uninstall with rpm 
 -e  ,and that shoudl take care of cleaning it up.

 Maybe it  is too complicated, but I can think of any other way to 
 clean up the system. (Apart from manually deleting the files).

 Hope this helps,

 .peter

Thank you for the hints. I tried to build rpm with
cpan2rpm Mail::Spamassassin

It unfortunately gave some errors and couldn't complete the process:

t/spamd_hup...5/110 # Failed test 5 in t/spamd_hup.t 
at line 43
#  t/spamd_hup.t line 43 is:   ok (-e $pid_file) or warn $pid_file does 
not exist post restart;
log/spamd.pid does not exist post restart at t/spamd_hup.t line 43.

Then, I decided to leave the cpan modules as they are and tried to 
remove and re-install amavisd-new and spamassassin by yum. It run OK.

However, when I try sa-update now, I get lots of errors like below:

plugin: failed to parse plugin (from @INC): Bareword 
Mail::SpamAssassin::Constants::CHARSETS_LIKELY_TO_FP_AS_CAPS not 
allowed while strict subs in use at 
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/HeaderEval.pm 
line 967.
Compilation failed in require at (eval 93) line 1.

plugin: failed to create instance of plugin 
Mail::SpamAssassin::Plugin::HeaderEval: Can't locate object method new 
via package Mail::SpamAssassin::Plugin::HeaderEval at 
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/HeaderEval.pm 
line 39.

Obviously, cpan modules broke the perl integrity on my system.

It is time to re-install my server from scratch on.

I created this problem by myself. A good lesson for me. I will never 
ever manually install cpan modules again. It is well beyond my technical 
capacity.

Thank you for your kind support anyway.

Best wishes,
Mufit



-
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] what needs reloading to fix IO::File ?

2008-03-14 Thread Voytek Eymont

On Sat, March 15, 2008 12:46 am, William Yodlowsky wrote:

 ooops...sorry..

 thanks, Mark, now installed fine, hopefully the error will go away...
 (and, I've fixed most of the fuzzyOCR stuff, as well)


 Would you mind sharing what you've found with fuzzyocr?  I have the same
 problem and it seems to be environment/path related but haven't had the
 time to really find out what's going on.


ahem, at the risk of embarrassing myself, and/or, admitting total
incompetence, sure, why not:

I never managed to successfully build the netpbm executables, so, I didn't
have them, and, didn't really worry

I tried to build them, it again failed, used the --keep-going, still failed
(obviously there is a reason, I'm missing something)

anyhow, reviewing netpbm docs on sf.net I came across some RPMs with ready
made executables...

so, I've installed the ready made executables from rpm...
hower, I think I'm still missing 'pam-something' and 'someother', they
seem to be in another RPM, that I aim to search for this weekend

so, now I no longer get amavisd startup error listing all netpbm
executables as absent

(somehow, I don't think that's what you were after...)





-- 
Voytek


-
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] what needs reloading to fix IO::File ?

2008-03-14 Thread Mark Martinec
Voytek,

 so, I've installed the ready made executables from rpm...
 hower, I think I'm still missing 'pam-something' and 'someother', they
 seem to be in another RPM, that I aim to search for this weekend

If you mean pamthreshold, it is from the next version of netpbm.
For FuzzyOcr it is optional, but you need to tell it that
you don't have it. There is a setting in FuzzyOcr.cf where you
can list what optional external programs you have. Comment out
the ones that you do not have, e.g.:

# Include additional scanner/preprocessor commands here:
#
focr_bin_helper pnmnorm, pnminvert, ppmtopgm, pamtopnm, pamditherbw
#focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
#focr_bin_helper tesseract


  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] MTA-BLOCKED?

2008-03-14 Thread Luis Daniel Lucio Quiroz
It's really strange

if I upgrade to amavis 2.5.4rc1 this error hapens, if I downgrade tol 2.5.2 
not, but I have the dbm bug.

I was wondering if someone has perl-modules requisites (with version) this 
amavis is running unther Mandriva 2007.1 (april 2007), and of course, It has 
been a year of upgrades.

Regards to all.

LD

Le Friday 14 March 2008 13:23:30 mouss, vous avez écrit :
 Mark Martinec wrote:
  Luis Daniel,
 
  I was debugging amavisd and I found this:
  brandmauer amavis[6320]: (06320-02-3) TIMING [total 45329 ms] - SMTP
  pre-DATA-flush: 403 (1%)1, SMTP DATA: 62 (0%)1, check_init: 126 (0%)1,
  digest_hdr: 2 (0%)1, digest_body: 9 (0%)1, gen_mail_id: 8 (0%)1,
  mime_decode: 205 (0%)2, get-file-type1: 363 (1%)3, decompose_part: 107
  (0%)3,
  parts_decode: 0 (0%)3, check_header: 91 (0%)3, AV-scan-1: 1290 (3%)6,
  spam-wb-list: 2435 (5%)11, SA parse: 26 (0%)11, SA check: 4243 (9%)21,
  update_cache: 32 (0%)21, decide_mail_destiny: 35 (0%)21, fwd-connect:
  362 (1%)22, fwd-xforward: 69 (0%)22, fwd-mail-pip: 179 (0%)22,
  fwd-rcpt-pip: 32 (0%)22, fwd-data-chkpnt: 46 (0%)22, write-header: 11
  (0%)22,
  fwd-data-contents: 0 (0%)22, fwd-end-chkpnt: 34549 (76%)99, prepare-dsn:
  91 (0%)99, main_log_entry: 86 (0%)99, update_snmp: 280 (1%)100, SMTP
  pre-response: 22 (0%)100, SMTP response: 69 (0%)100, unlink-1-files: 94
  (0%) 100, rundown: 1 (0%)100
 
  lok at this: fwd-end-chkpnt: 34549 (76%)99
  to high value, what should I do then?
 
  Yes, it is pretty high, Postfix is taking 34 seconds to respond
  to end-of-message. Perhaps you have not disabled header of body
  checks in MTA on the re-entry path (port 10025) and you have
  complex or poorly written regexp-based header/body checks there.
  Or it could be some disk I/O problem.

 note that his amavisd-new is listening on 10025 (see his telnet
 transcript). not sure where he forwards mail (10026?) and what is done
 there...



 -
 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] MTA-BLOCKED?

2008-03-14 Thread Mark Martinec
Luis Daniel,

 It's really strange
 if I upgrade to amavis 2.5.4rc1 this error hapens, if I downgrade tol 2.5.2
 not, but I have the dbm bug.

As mouss indicated, the first thing to do is check what port is dedicated
to what, otherwise your amavisd may be trying to talk to another amavisd child
process, instead of feeding checked mail back to Postfix.

What is on 10024? What is on 10025?
Where is a Postfix reentry port (master.cf)?
Does that port accept mail (telnet)?
Where is amavisd feeding its checked mail to ($forward_method, 
$notify_method)?

  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/