Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: niki40 on January 21, 2005, 04:18:33 PM

Title: Spam Filter and Antivirus on a SME problem
Post by: niki40 on January 21, 2005, 04:18:33 PM
I have problems with this contrib. These are the errors.
I tryed changing update location from USA to Argentina, country where I live, but it still bad.

Cron <root@server>    /usr/bin/antivirus-stats.pl

ERROR: Date::Manip unable to determine TimeZone.
Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 629
Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 747
Date::Manip::ParseDateString('yesterday') called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 1683
Date::Manip::UnixDate('yesterday', '%s') called at /usr/bin/antivirus-stats.pl line 231
main::parse_arg('yesterday', '') called at /usr/bin/antivirus-stats.pl line 81

Cron <root@server>    /usr/bin/spamfilter-stats.pl
ERROR: Date::Manip unable to determine TimeZone.
Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 629
Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 747
Date::Manip::ParseDateString('yesterday') called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 1683
Date::Manip::UnixDate('yesterday', '%s') called at /usr/bin/spamfilter-stats.pl line 317
main::parse_arg('yesterday', '') called at /usr/bin/spamfilter-stats.pl line 96

My maillog
Jan 21 03:22:57 server spamd[2552]: clean message (0.5/5.0) for qmailq:404 in 16.1
seconds, 37365 bytes.
Jan 21 03:22:57 server spamd[2552]: result: .  0 - FROM_ENDS_IN_NUMS scantime=16.1,
size=37365,mid=<20050120165439.55399.qmail@web52406.mail.yahoo.com>,autolearn=no
Jan 21 03:26:07 server fetchmail[28563]: SMTP error: 451 postmaster@localhost
Jan 21 03:26:07 server fetchmail[28563]: can't even send to postmaster!
Jan 21 05:36:07 server fetchmail[30924]: SMTP error: 451 postmaster@localhost
Jan 21 05:36:07 server fetchmail[30924]: can't even send to postmaster!
Jan 21 06:01:08 server fetchmail[5171]: SMTP error: 451 postmaster@localhost
Jan 21 06:01:08 server fetchmail[5171]: can't even send to postmaster!
Jan 21 10:36:06 server fetchmail[12845]: SMTP error: 451 postmaster@localhost
Jan 21 10:36:06 server fetchmail[12845]: can't even send to postmaster!
Jan 21 10:41:07 server fetchmail[14153]: SMTP error: 451 postmaster@localhost
Jan 21 10:41:07 server fetchmail[14153]: can't even send to postmaster!
Jan 21 10:41:07 server fetchmail[14153]: SMTP error: 451 postmaster@localhost
Jan 21 10:41:07 server fetchmail[14153]: can't even send to postmaster!
Jan 21 10:51:36 server spamd[2156]: server hit by SIGCHLD
Jan 21 10:51:36 server spamd[2156]: handled cleanup of child pid 2556
Jan 21 10:51:36 server spamd[2156]: handled cleanup of child pid 2555

Does anybody can help me?
Regards
Niki
Title: Re: Spam Filter and Antivirus on a SME problem
Post by: CharlieBrady on January 21, 2005, 05:59:07 PM
Quote from: "niki40"
I have problems with this contrib.


WHich contrib, in particular? Name? Version? URL?
Title: Re: Spam Filter and Antivirus on a SME problem
Post by: niki40 on January 21, 2005, 09:15:53 PM
Quote from: "CharlieBrady"
Quote from: "niki40"
I have problems with this contrib.


WHich contrib, in particular? Name? Version? URL?


Charly these are them:

spamassassin_V3
perl-CGI-FormMagick-0.89-08.noarch.rpm
smeserver-fetchmail-1.3.4-02.noarch.rpm
and http://sme.swerts-knudsen.dk/downloads/AntiVirus/antivirus_install.sh

Regards and thanks for answer

Niki
Title: Spam Filter and Antivirus on a SME problem
Post by: alejandro on January 24, 2005, 09:08:07 PM
Nikki40
I use assp as  my spam / mail virus solution since a year, with excellent results (beter than spam assassin IMHO)
stops spam before reaching your server or using your bandwith
You can check it at http://assp.sourceforge.net
there was an sme install script contrib, dont remember where... (maybe a search)
Just a excellent piece of software. (again IMHO)
Title: Re: Spam Filter and Antivirus on a SME problem
Post by: haj on January 25, 2005, 11:27:16 PM
Quote from: "niki40"

Cron <root@server>    /usr/bin/antivirus-stats.pl

ERROR: Date::Manip unable to determine TimeZone.
Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 629
Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 747
Date::Manip::ParseDateString('yesterday') called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 1683
Date::Manip::UnixDate('yesterday', '%s') called at /usr/bin/antivirus-stats.pl line 231
main::parse_arg('yesterday', '') called at /usr/bin/antivirus-stats.pl line 81

Cron <root@server>    /usr/bin/spamfilter-stats.pl
ERROR: Date::Manip unable to determine TimeZone.
Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 629
Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 747
Date::Manip::ParseDateString('yesterday') called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 1683
Date::Manip::UnixDate('yesterday', '%s') called at /usr/bin/spamfilter-stats.pl line 317
main::parse_arg('yesterday', '') called at /usr/bin/spamfilter-stats.pl line 96


Have the same problem

Quote

My maillog
Jan 21 03:22:57 server spamd[2552]: clean message (0.5/5.0) for qmailq:404 in 16.1
seconds, 37365 bytes.
Jan 21 03:22:57 server spamd[2552]: result: .  0 - FROM_ENDS_IN_NUMS scantime=16.1,
size=37365,mid=<20050120165439.55399.qmail@web52406.mail.yahoo.com>,autolearn=no
Jan 21 03:26:07 server fetchmail[28563]: SMTP error: 451 postmaster@localhost
Jan 21 03:26:07 server fetchmail[28563]: can't even send to postmaster!
Jan 21 05:36:07 server fetchmail[30924]: SMTP error: 451 postmaster@localhost
Jan 21 05:36:07 server fetchmail[30924]: can't even send to postmaster!
Jan 21 06:01:08 server fetchmail[5171]: SMTP error: 451 postmaster@localhost
Jan 21 06:01:08 server fetchmail[5171]: can't even send to postmaster!
Jan 21 10:36:06 server fetchmail[12845]: SMTP error: 451 postmaster@localhost
Jan 21 10:36:06 server fetchmail[12845]: can't even send to postmaster!
Jan 21 10:41:07 server fetchmail[14153]: SMTP error: 451 postmaster@localhost
Jan 21 10:41:07 server fetchmail[14153]: can't even send to postmaster!
Jan 21 10:41:07 server fetchmail[14153]: SMTP error: 451 postmaster@localhost
Jan 21 10:41:07 server fetchmail[14153]: can't even send to postmaster!
Jan 21 10:51:36 server spamd[2156]: server hit by SIGCHLD
Jan 21 10:51:36 server spamd[2156]: handled cleanup of child pid 2556
Jan 21 10:51:36 server spamd[2156]: handled cleanup of child pid 2555


I have add this also and lost all my email !!!

But it seems no one has the answer, where is the contributor???
Title: Re: Spam Filter and Antivirus on a SME problem
Post by: haj on February 02, 2005, 10:11:15 PM
Quote from: "niki40"

Cron <root@server>    /usr/bin/antivirus-stats.pl

ERROR: Date::Manip unable to determine TimeZone.
Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 629
Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 747
Date::Manip::ParseDateString('yesterday') called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 1683
Date::Manip::UnixDate('yesterday', '%s') called at /usr/bin/antivirus-stats.pl line 231
main::parse_arg('yesterday', '') called at /usr/bin/antivirus-stats.pl line 81

Cron <root@server>    /usr/bin/spamfilter-stats.pl
ERROR: Date::Manip unable to determine TimeZone.
Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 629
Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 747
Date::Manip::ParseDateString('yesterday') called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 1683
Date::Manip::UnixDate('yesterday', '%s') called at /usr/bin/spamfilter-stats.pl line 317
main::parse_arg('yesterday', '') called at /usr/bin/spamfilter-stats.pl line 96


It looks that Date::Manip is unable to determine the Time Zone of the computer it's install, so it cannot calculate today's date!

I have tried setting the timezone:
ex: Date_Init("TZ=CDT");

Does anyone knows where the sme timezone is stored?
Title: Re: Spam Filter and Antivirus on a SME problem
Post by: haj on February 02, 2005, 10:29:05 PM
Quote from: "haj"

It looks that Date::Manip is unable to determine the Time Zone of the computer it's install, so it cannot calculate today's date!

I have tried setting the timezone:
ex: Date_Init("TZ=CDT");

Does anyone knows where the sme timezone is stored?


Found the solution: in usr/bin/spamfilter-stats.pl
 and /usr/bin/antivirus-stats.pl add the following lines at the end of the configuration section.

$opt{'timezone'} = date +%Z;

Date_Init("TZ=$opt{'timezone'}");

Cheers
Title: Spam Filter and Antivirus on a SME problem
Post by: Knuddi on February 05, 2005, 12:29:15 PM
I have updated the sme-antivirus package til fix this issue. Upgrade via:

http://sme.swerts-knudsen.dk/howtos/howto_22.htm
Title: set timezone to CDT allow script to run
Post by: Jáder on March 29, 2005, 12:55:43 PM
Hello everyone
I have same problem as HAJ and I´m on Brasil (timezone=BRT).

Using HAJ tips:
"
Found the solution: in usr/bin/spamfilter-stats.pl
and /usr/bin/antivirus-stats.pl add the following lines at the end of the configuration section.
$opt{'timezone'} = date +%Z;
Date_Init("TZ=$opt{'timezone'}");
"

I have tried put those lines on antivirus AND spamfilter -stats.pl files.
My server was reinstalled 2 weekend ago so all files were updated... but just my antivirus-stats.pl file had those 2 lines.
Even with those lines the script do not run ok.
So I decided to give a HARD try: started Date_Init with CDT value (don´t know WHERE is CDT timezone... but I don´t care! :) )

A few seconds after manually run the script I got an e-mail with this on first lines:

Period Beginning : Mon 28 Mar 2005 09:45:08 AM BRT
Period Ending    : Tue 29 Mar 2005 09:45:08 AM BRT

So I don´t know WHY this is working but appears to be working!!

Can someone  explain ? Thanks
Title: Spam Filter and Antivirus on a SME problem
Post by: p-jones on April 12, 2005, 08:38:16 AM
I have installed Anti V and Spam from the scripts at Jesper's site and I am not having any joy at all getting it going. If I scan outward mail, the server wont accept mail from the client.

The scripts seemed to run smoothly.

Tha amavis log is empty. I am not sure where to go next. Any suggestions welcolme

It is a freshly installed server V6.0.1
Title: Spam Filter and Antivirus on a SME problem
Post by: p-jones on April 12, 2005, 11:24:36 AM
A bit more - when installing the spam filter it hates this line:

/sbin/e-smith/db spamassassin_V3 set wbl.global $spamwbl
Title: Spam Filter and Antivirus on a SME problem
Post by: p-jones on April 13, 2005, 11:11:59 PM
I fixed this - the permissions on var/log/amavis_ng.log were wrong. Dont know if it was just my system or script bug. Given I could find little in the lists, I suspect my system.