Author Topic: [solved] 6.2: Mail Error  (Read 1528 times)

Lueghi

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +1/-0
    • View Profile
[solved] 6.2: Mail Error
« on: February 04, 2021, 03:11:06 pm »
I've just installed a complete new (virtual) Server with Zentyal. I'm trying to configure the system as a replacement for my Zentyal 4.0 installation. I don't know what happend but since a couple of days the mail module has an error:
Code: [Select]
2021/02/04 14:47:12 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: logs
2021/02/04 14:47:12 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sogo
2021/02/04 14:47:17 ERROR> GlobalImpl.pm:728 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: mail  at The following modules failed while saving their changes, their state is unknown: mail  at /usr/share/perl5/EBox/GlobalImpl.pm line 728
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55a069f8b810)', 'progress', 'EBox::ProgressIndicator=HASH(0x55a06d62e4b8)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55a06954d740)', 'progress', 'EBox::ProgressIndicator=HASH(0x55a06d62e4b8)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
I've deinstalled and deleted the mail module. After that I have done a reinstall. But no success  :( . Can someone tell me what to do to get the module working? Is there perhaps a currupted config file?
« Last Edit: February 11, 2021, 09:27:38 pm by Lueghi »
Lueghi
--------------
Zentyal 7.0 with samba, DNS, DHCP, Webserver, SoGo and VPN-server in my little home-network, based on proxmox

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: 6.2: Mail Error
« Reply #1 on: February 05, 2021, 11:25:17 am »
 :)

Run these commands to enable debugging:

Code: [Select]
sudo su -
 sed -i 's/debug = no/debug = yes/' /etc/zentyal/zentyal.conf
zs webadmin restart

Try to restart the Mail module, logs will be much more verbose now.

In addition, you should study  the specific mail module logs (/var/log/mail.log, etc)

This command could be useful too:

Code: [Select]
sudo  systemctl status postfix@-.service postfix.service

Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

Lueghi

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +1/-0
    • View Profile
Re: 6.2: Mail Error
« Reply #2 on: February 05, 2021, 09:09:40 pm »
@doncamilo: Thanks for your help.
The log file shows me something about DNS difficulties:
Code: [Select]
2021/02/05 20:43:09 ERROR> Service.pm:971 EBox::Module::Service::restartService - Die DNS-Abfrage ist fehlgeschlagen: NXDOMAIN (Verwendung des Nameservers 127.0.0.1, /etc/resolv.conf war
2021/02/05 20:43:09 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of E-Mail from dashboard failed: Die DNS-Abfrage ist fehlgeschlagen: NXDOMAIN (Verwendung des Nameservers 127.0.0.1, /etc/resolv.conf war
'# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# and managed by Zentyal.
#
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
nameserver 127.0.0.1
search lueghi-net.home
'
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - /sbin/mii-tool > /var/lib/zentyal/tmp/linkstatus
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status ebox.openvpn.server.vpn-android | grep 'Loaded: loaded'
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'ebox.openvpn.server.vpn-android' | grep 'Active: active (running)'
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status ebox.openvpn.server.vpn-zentyal | grep 'Loaded: loaded'
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'ebox.openvpn.server.vpn-zentyal' | grep 'Active: active (running)'
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status ebox.openvpn.client.stefan | grep 'Loaded: loaded'
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'ebox.openvpn.client.stefan' | grep 'Active: active (running)'
2021/02/05 20:43:09 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2021/02/05 20:43:09 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2021/02/05 20:43:09 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status amavis | grep 'Loaded: loaded'
2021/02/05 20:43:09 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'amavis' | grep 'Active: active (running)'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status clamav-daemon | grep 'Loaded: loaded'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'clamav-daemon' | grep 'Active: active (running)'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status isc-dhcp-server | grep 'Loaded: loaded'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'isc-dhcp-server' | grep 'Active: active (running)'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status tftpd-hpa | grep 'Loaded: loaded'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'tftpd-hpa' | grep 'Active: active (running)'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status bind9 | grep 'Loaded: loaded'
2021/02/05 20:43:10 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'bind9' | grep 'Active: active (running)'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status postfix@- | grep 'Loaded: loaded'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'postfix@-' | grep 'Active: active (running)'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status amavis | grep 'Loaded: loaded'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'amavis' | grep 'Active: active (running)'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status zentyal.learnspamd | grep 'Loaded: loaded'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'zentyal.learnspamd' | grep 'Active: active (running)'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status amavis | grep 'Loaded: loaded'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'amavis' | grep 'Active: active (running)'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status ntp | grep 'Loaded: loaded'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'ntp' | grep 'Active: active (running)'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status samba-ad-dc | grep 'Loaded: loaded'
2021/02/05 20:43:11 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'samba-ad-dc' | grep 'Active: active (running)'
2021/02/05 20:43:12 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status zentyal.samba-sync | grep 'Loaded: loaded'
2021/02/05 20:43:12 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'zentyal.samba-sync' | grep 'Active: active (running)'
2021/02/05 20:43:12 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status sogo | grep 'Loaded: loaded'
2021/02/05 20:43:12 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - systemctl status 'sogo' | grep 'Active: active (running)'
2021/02/05 20:43:12 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1
2021/02/05 20:43:15 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - dpkg --clear-avail
2021/02/05 20:43:43 DEBUG> Sudo.pm:189 EBox::Sudo::_root - /usr/share/zentyal/psgi/zentyal.psgi (pid: 32062) - /sbin/mii-tool > /var/lib/zentyal/tmp/linkstatus
...
I had to shorten the log because of length restricton.
For /etc/resolv.conf there is a link to /run/resolvconf/resolv.conf.
But I#m sorry: I don't know what to do or what to check now? My network seems to work well. From my clientc I can ping everything in my domain (by name) and the internet works too ...
The logfile mail.log doesn't exist in my installation  :o .
The output of
Code: [Select]
sudo  systemctl status postfix@-.service postfix.service
Code: [Select]
postfix@-.service - Postfix Mail Transport Agent (instance -)
   Loaded: loaded (/lib/systemd/system/postfix@.service; indirect; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:postfix(1)

● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/lib/systemd/system/postfix.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

Lueghi
--------------
Zentyal 7.0 with samba, DNS, DHCP, Webserver, SoGo and VPN-server in my little home-network, based on proxmox

Lueghi

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +1/-0
    • View Profile
[solved] Re: 6.2: Mail Error
« Reply #3 on: February 11, 2021, 09:27:01 pm »
The solution was easier than I expectet: after manually restarted the died service postfix the email modul works again. So at this moment the thead is solved  :D . But I still not yet understand what happend. Why started the service manually but not when zentyal did an reboot? Hope it will work in future ...
Lueghi
--------------
Zentyal 7.0 with samba, DNS, DHCP, Webserver, SoGo and VPN-server in my little home-network, based on proxmox