Hi,
When installing Mail Toaster at the point where the filtering stuff is going to be installed i receive the following error:
mail# cd Mail-Toaster-3.35/
mail# toaster_setup.pl -s filter
CheckPortsAge: Ports file is current (enough).
InstallPort: maildrop installed as (maildrop-1.6.3).
CheckPortsAge: Ports file is current (enough).
InstallPort: p5-Time-HiRes installed as (p5-Time-HiRes-1.55,1).
CheckPortsAge: Ports file is current (enough).
InstallPort: p5-Mail-Audit installed as (p5-Mail-Audit-2.1_1).
CheckPortsAge: Ports file is current (enough).
InstallPort: p5-Mail-SpamAssassin installed as (p5-Mail-SpamAssassin-2.63).
CheckPortsAge: Ports file is current (enough).
InstallPort: razor-agents installed as (razor-agents-2.36_3).
CheckPortsAge: Ports file is current (enough).
InstallPort: tnef installed as (tnef-1.2.1).
CheckPortsAge: Ports file is current (enough).
InstallPort: unzip installed as (unzip-5.50_2).
qmail-scanner-1.20 sources are already present, indicating that you've already
installed qmail-scanner-1.20. If you want to reinstall it, remove the existing
sources (rm -r /usr/local/src/mail/qmail-scanner-1.20) and re-run this script
Would you like me to remove the sources for you? (y/n): y
Deleting qmail-scanner-1.20...done.
Undefined subroutine &MATT::Passwd::InstallGroup called at lib/Mail/Toaster/Setup.pm line 1554, <STDIN> line 1.
Can some one help me with this?
Thanks in advance.
perl 5.8 got installed (as a port dependency). When you (in this case, inadvertantly) reinstall perl, all your installed perl modules go away. Install MATT::Bundle again and things will complete as you'd expect.
Thanks Matt for your answer but i think this is not the problem.
As you can see below the Perl is installed ok:
hosting# pkg_info|grep perl
bsdpan-mod_perl-1.28 Apache - Perl interface to the Apache server API
p5-DBI-1.41 The perl5 Database Interface. Required for DBD::* modules
p5-MIME-Tools-5.411a_3,1 A set of perl5 modules for MIME
p5-Time-HiRes-1.55,1 A perl5 module implementing High resolution time, sleep, an
perl-5.6.1_15 Practical Extraction and Report Language
The other modules for Perl are the ones installed by Toaster:
hosting# pkg_info | grep p5
p5-Authen-SASL-2.03 Perl5 module for SASL authentication
p5-Compress-Zlib-1.33 Perl5 interface to zlib compression library
p5-Crypt-OpenSSL-DSA-0.11_1 Perl5 module to DSA signature verification using OpenSSL
p5-Crypt-OpenSSL-RSA-0.19 Perl5 module to RSA encode and decode strings using OpenSSL
p5-Crypt-OpenSSL-Random-0.03 Perl5 interface to the OpenSSL pseudo-random number generat
p5-Crypt-PasswdMD5-1.3 Perl module that provides interoperable MD5-based crypt() f
p5-DBD-mysql-2.9003 MySQL driver for the Perl5 Database Interface (DBI)
p5-DBI-1.41 The perl5 Database Interface. Required for DBD::* modules
p5-Digest-HMAC-1.01 Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-MD5-2.22 Perl5 interface to the MD5 algorithm
p5-Digest-Nilsimsa-0.06 Perl version of Nilsimsa code
p5-Digest-SHA1-2.02 Perl interface to the SHA-1 Algorithm
p5-Email-Valid-0.15 Check validity of Internet email addresses
p5-HTML-Parser-3.27 Perl5 module for parse HTML tag
p5-HTML-Tagset-3.03 Some useful data table in parsing HTML
p5-HTML-Template-2.6 Perl module to use HTML Templates from CGI scripts
p5-IO-stringy-2.108 Perl5 module for using IO handles with non-file objects
p5-MIME-Base64-2.20 Perl5 module for Base64 and Quoted-Printable encodings
p5-MIME-Tools-5.411a_3,1 A set of perl5 modules for MIME
p5-Mail-Audit-2.1_1 Perl module for creating easy mail filters
p5-Mail-ListDetector-0.29 Perl module for detecting mailing list messages
p5-Mail-SpamAssassin-2.63 A highly efficient mail filter for identifying spam
p5-Mail-Tools-1.60 Perl5 modules for dealing with Internet e-mail messages
p5-Net-1.12,1 Perl5 modules to access and use network protocols
p5-Net-DNS-0.34 Perl5 interface to the DNS resolver, and dymanic updates
p5-Net-DNS-0.45 Perl5 interface to the DNS resolver, and dymanic updates
p5-PodParser-1.26 Modules to work with POD (Plain Old Documentation)
p5-Time-HiRes-1.55,1 A perl5 module implementing High resolution time, sleep, an
p5-TimeDate-1.16,1 Perl5 module containing a better/faster date parser for abs
p5-URI-1.23 Perl5 interface to Uniform Resource Identifier (URI) refere
p5-gettext-1.01_4 Message handling functions
p5-libwww-5.69 Perl5 library for WWW access
p5-podlators-1.27 Modules to convert and parse POD (Plain Old Documentation)
All the other steps runs ok but the filter part:
hosting# toaster_setup.pl -s filter
CheckPortsAge: Ports file is current (enough).
InstallPort: maildrop installed as (maildrop-1.5.2).
CheckPortsAge: Ports file is current (enough).
InstallPort: p5-Time-HiRes installed as (p5-Time-HiRes-1.55,1).
CheckPortsAge: Ports file is current (enough).
InstallPort: p5-Mail-Audit installed as (p5-Mail-Audit-2.1_1).
CheckPortsAge: Ports file is current (enough).
InstallPort: p5-Mail-SpamAssassin installed as (p5-Mail-SpamAssassin-2.63).
CheckPortsAge: Ports file is current (enough).
InstallPort: razor-agents installed as (razor-agents-2.36_3).
CheckPortsAge: Ports file is current (enough).
InstallPort: tnef installed as (tnef-1.2.1).
CheckPortsAge: Ports file is current (enough).
InstallPort: unzip installed as (unzip-5.50_2).
qmail-scanner-1.20 sources are already present, indicating that you've already
installed qmail-scanner-1.20. If you want to reinstall it, remove the existing
sources (rm -r /usr/local/src/mail/qmail-scanner-1.20) and re-run this script
Would you like me to remove the sources for you? (y/n): y
Deleting qmail-scanner-1.20...done.
Undefined subroutine &MATT::Passwd::InstallGroup called at lib/Mail/Toaster/Setup.pm line 1554, <STDIN> line 1.
What can it be?
Before answering you i've cleaned up everything from ports and directories and started clean. And just to make sure the step before running the filter part was repeating MattBundle installation part.
Ahhh, there is indeed a problem. My apologies.
If you are familiar with Perl, just edit lib/Mail/Toaster/Setup.pm.
Jump to line 1554 and immediately before the InstallUser/InstallGroup lines, add this:
LoadModule("MATT::Passwd");
That will resolve the problem for you. I'll be posting an update later this afternoon.
Thanks Matt, that line fixed the problem.