Modify

Ticket #2574 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Mailfilter installation issues

Reported by: Josep <josep.spam@…> Owned by: jamor@…
Milestone: 2.0.X Component: mailfilter
Severity: major Keywords:
Cc:

Description

Installed Mail module. Tested sending and receiving emails internally and externally. Installed mailfilter module. Upon installation, I see the following error in /var/log/ebox/ebox.log:

2010/12/03 08:20:11 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: mailfilter
2010/12/03 08:20:12 ERROR> Ldap.pm:697 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'changes' => [
                         'replace',
                         [
                           'amavisBypassVirusChecks',
                           'FALSE'
                         ]
                       ]
        };
2010/12/03 08:20:12 ERROR> Ldap.pm:699 EBox::Ldap::_errorOnLdap - Unknown error at EBox::Ldap::modifyAttribute attribute 'amavisBypassVirusChecks' not allowed
2010/12/03 08:20:12 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: logs
2010/12/03 08:20:13 ERROR> Global.pm:568 EBox::Global::saveAllModules - The following modules failed while saving their changes, their state is unknown: mailfilter

When I restart the mailfilter module, I get the error in the GUI:

Unknown error at EBox::Ldap::modifyAttribute attribute 'amavisBypassVirusChecks' not allowed 

Trace:

Unknown error at EBox::Ldap::modifyAttribute attribute 'amavisBypassVirusChecks' not allowed at /usr/share/perl5/EBox/Ldap.pm line 699
EBox::Ldap::_errorOnLdap('Net::LDAP::Modify=HASH(0x7f5b55f48490)', 'HASH(0x7f5b5690b7c8)') called at /usr/share/perl5/EBox/Ldap.pm line 360
EBox::Ldap::modify('EBox::Ldap=HASH(0x7f5b575eb650)', 'domainComponent=matunespt.dyndns.org,ou=vdomains, ou=postfix,...', 'HASH(0x7f5b5690b7c8)') called at /usr/share/perl5/EBox/Ldap.pm line 501
EBox::Ldap::modifyAttribute('EBox::Ldap=HASH(0x7f5b575eb650)', 'domainComponent=matunespt.dyndns.org,ou=vdomains, ou=postfix,...', 'amavisBypassVirusChecks', 'FALSE') called at /usr/share/perl5/EBox/MailFilter/VDomainsLdap.pm line 112
EBox::MailFilter::VDomainsLdap::_setVDomainAttr('EBox::MailFilter::VDomainsLdap=HASH(0x7f5b5914e630)', 'matunespt.dyndns.org', 'amavisBypassVirusChecks', 'FALSE') called at /usr/share/perl5/EBox/MailFilter/VDomainsLdap.pm line 131
EBox::MailFilter::VDomainsLdap::_setVDomainBoolAttr('EBox::MailFilter::VDomainsLdap=HASH(0x7f5b5914e630)', 'matunespt.dyndns.org', 'amavisBypassVirusChecks', 0) called at /usr/share/perl5/EBox/MailFilter/VDomainsLdap.pm line 337
EBox::MailFilter::VDomainsLdap::setAntivirus('EBox::MailFilter::VDomainsLdap=HASH(0x7f5b5914e630)', 'matunespt.dyndns.org', 1) called at /usr/share/perl5/EBox/MailFilter/VDomainsLdap.pm line 673
EBox::MailFilter::VDomainsLdap::regenConfig('EBox::MailFilter::VDomainsLdap=HASH(0x7f5b5914e630)') called at /usr/share/perl5/EBox/MailFilter.pm line 290
EBox::MailFilter::_setConf('EBox::MailFilter=HASH(0x7f5b5904a968)', 'restart', 1) called at /usr/share/perl5/EBox/Module/Base.pm line 841
EBox::Module::Base::_regenConfig('EBox::MailFilter=HASH(0x7f5b5904a968)', 'restart', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 679
EBox::Module::Service::_regenConfig('EBox::MailFilter=HASH(0x7f5b5904a968)', 'restart', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 707
EBox::Module::Service::restartService('EBox::MailFilter=HASH(0x7f5b5904a968)') called at /usr/share/perl5/EBox/CGI/EBox/RestartService.pm line 51
EBox::CGI::EBox::RestartService::_process('EBox::CGI::EBox::RestartService=HASH(0x7f5b51e7e3a8)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::EBox::RestartService=HASH(0x7f5b51e7e3a8)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'EBox/RestartService', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x7f5b533178d0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7f5b5331be40)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f5b5331be40)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f5b533178d0)') called at -e line 0
eval {...} called at -e line 0

Attachments

Change History

comment:1 Changed 2 years ago by jacalvo@…

  • Owner changed from javier.amor.garcia@… to jamor@…

comment:2 Changed 2 years ago by jacalvo@…

  • Milestone set to 2.0.X

comment:3 Changed 2 years ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to worksforme

It seems the schema in amavis.ldif was not properly added to your LDAP. I suppose the installation did not end properly. There were known issues when installing packages using ebox-software that have been fixed now. Also, a broken installation can be resumed executing: sudo dpkg --configure -a

Please, reopen if you can reproduce this with the last version of the packages.

comment:4 Changed 2 years ago by adrian@…

  • priority changed from normal to high
  • Status changed from closed to reopened
  • Resolution worksforme deleted
  • Severity changed from normal to major

I have the same problem, please can you suggest a simple method to fix this without a complete reinstall? Thanks

comment:5 Changed 2 years ago by adrian@…

Tried removing the mailfilter module

/usr/share/ebox/ebox-unconfigure-module mailfilter

and then reinstallinig it via the dashboard, here's the log:

2011/04/04 10:47:34 DEBUG> UsersAndGroups.pm:922 EBox::UsersAndGroups::addUser - Missing argument: Password
2011/04/04 10:48:17 INFO> Global.pm:535 EBox::Global::saveAllModules - Saving config and restarting services: firewall mailfilter mail zarafa webserver logs
2011/04/04 10:48:17 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: firewall
2011/04/04 10:48:27 INFO> Base.pm:773 EBox::Module::Base::_hook - Running hook: /etc/ebox/hooks/firewall.postservice 1
2011/04/04 10:48:27 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: mailfilter
2011/04/04 10:48:31 ERROR> Ldap.pm:701 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'changes' => [
                         'replace',
                         [
                           'amavisBypassVirusChecks',
                           'FALSE'
                         ]
                       ]
        };
2011/04/04 10:48:31 ERROR> Ldap.pm:703 EBox::Ldap::_errorOnLdap - Unknown error at EBox::Ldap::modifyAttribute attribute 'amavisBypassVirusChecks' not allowed
2011/04/04 10:48:31 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: mail
2011/04/04 10:48:38 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: zarafa
2011/04/04 10:48:43 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: webserver
2011/04/04 10:48:44 ERROR> Sudo.pm:212 EBox::Sudo::_rootError - root command ls /etc/apache2/sites-available/ebox-* failed. 
Error output: ls: cannot access /etc/apache2/sites-available/ebox-*: No such file or directory

Command output: . 
Exit value: 2
2011/04/04 10:48:45 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: logs
2011/04/04 10:48:45 ERROR> Global.pm:632 EBox::Global::saveAllModules - The following modules failed while saving their changes, their state is unknown: mailfilter 

comment:6 Changed 2 years ago by jamor@…

  • Status changed from reopened to closed
  • Resolution set to fixed

Hi,

I think your problem is already fixed in the repository. You could try to hotfix it following this steps:

1) Download the new version of UsersAndGroups?.pm from  http://trac.zentyal.org/export/20597/branches/jag/2.0-misc/client/usersandgroups/src/EBox/UsersAndGroups.pm 2) Use it to replace the old version at /usr/share/perl5/EBox/UsersAndGroups.pm 3) Execute: /usr/share/ebox-mailfilter/ebox-mailfilter-ldap update 4) Execute: /etc/init.d/ebox mailfilter restart

If this don't fix your problem, please post here the error output.

Cheers,

Javier

comment:7 Changed 2 years ago by adrian@…

success, thanks

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.