Author Topic: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!  (Read 2394 times)

Nisaa

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« on: April 15, 2014, 01:45:23 am »
Hello everybody.
After Upgrade from 3.3.* to 3.4.1 I can not start my E-Mail and "External retrieval service" don't work too.
I have the following error message in the syslog:
"collectd[28078]: plugin_dispatch_values: Invalid value list from plugin thermal."

Could anyone help me with my problem?

brutebun

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #1 on: April 20, 2014, 10:06:02 pm »
I have the same problem
I tried to turn on MAIL from the dashboard - no luck. It is listed as "stopped", and each time I select the start button no error receive, but still not work
I also tried unchecking the MAIL module via "Module Status" applying the changes and then re-checking, applying - also no change.
After upgrade to 3.4 I also found this error in syslog file :
plugin_dispatch_values: Invalid value list from plugin thermal.
collectd[3153]: last message repeated 34 times
It's possible which this error is connected to the mail module
Thanks in advance for any help

vologb

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #2 on: April 23, 2014, 03:19:34 pm »
Ok, it seems I have run into the same issue.
I did an upgrade from 3.3 to 3.4 using the link in the Zentyal Dashboard.
After the upgrade it says in the Module Status window on the Dashboard that the Mail service has stopped. Clicking on Start or restart in the Module Status window on the Dashboard it gives a message that the service has been restarted (no error message) but in the Module Status window on the Dashboard it still says "stopped" for the mail service. I have disabled and re-enabled the Mail service in the Module Status configuration (with rebooting the server) but no change.
I can logon to the Mail account using open change webmail and see old mail and send new mail but it would not retrieve mail from the external account as set up in "Users and Computers".
When logging in the Usercorner and clicking on "Mail retrieval from expernal accounts" an error message comes up:

Can't call method "get" on an undefined value at /usr/share/perl5/EBox/MailUserLdap.pm line 204. Stack: [/usr/share/perl5/EBox/MailUserLdap.pm:204] [/usr/share/perl5/EBox/Mail/Model/ExternalAccounts.pm:197] [/usr/share/perl5/EBox/Mail/Model/ExternalAccounts.pm:389] [/usr/share/zentyal/templates/ajax/modelViewer.mas:75] [/usr/share/zentyal/templates/ajax/modelViewer.mas:30] at /usr/share/perl5/EBox/CGI/Base.pm line 360

I don't have the error message in the syslog as described by Nisaa and brutebun.

Any help to get the mail service up and running again would be very much appreciated.
Thanks and regards

« Last Edit: April 23, 2014, 03:24:19 pm by vologb »

roswitina

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +1/-0
    • View Profile
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #3 on: April 25, 2014, 05:51:08 pm »
The fix for this problem is to edit the /etc/passwd file, searching for the fetchmail user
If you find a line something like:

"fetchmail:x:148:65534::/var/lib/fetchmail:/bin/false"

replace the /bin/false with /bin/sh so that the daemon can execute, like so:

"fetchmail:x:148:65534::/var/lib/fetchmail:/bin/sh"

The fetchmail user will most likely have different user id and group ids - 148 and 65534. Nothing to worry about. Leave those as you found them.
than you may need to restart fetchmail:

"sudo service ebox.fetchmail restart"

This patch has work for me

Found on -> https://tracker.zentyal.org/issues/671 or https://forum.zentyal.org/index.php/topic,21633.0.html


Rosi
« Last Edit: April 25, 2014, 06:29:22 pm by roswitina »

vologb

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #4 on: April 27, 2014, 01:37:19 pm »
Thanks Rosi for pointing me in the right direction.

Fetchmail is working again and the mail service in the Module Status window now says "running".
However, I still get the error message in the usercorner when I click on "Mail retrieval from external accounts"

Regards

Volker

roswitina

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +1/-0
    • View Profile
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #5 on: April 27, 2014, 02:30:04 pm »
However, I still get the error message in the usercorner when I click on "Mail retrieval from external accounts"

maybe a bug. see -> https://tracker.zentyal.org/issues/682

Rosi

Ps.: See -> https://github.com/Zentyal/zentyal/pull/1247/files#diff-1

1. I changed the files under                     

/var/lib/dpkg/info and
/usr/share/perl5/EBox/Mail/Model/

2. deactivate Modul user-corner
3. deinstall Modul user-corner
4. install Modul user-corner
5. activate Modul user-corner

and

6. it works for me
« Last Edit: April 27, 2014, 03:20:59 pm by roswitina »

vologb

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #6 on: April 28, 2014, 08:51:26 am »
Thanks again Rosi. It's working for me too.
Regards

Volker

sgisoft

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
  • SGISoft S.L.
    • View Profile
    • SGISoft
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #7 on: May 15, 2014, 10:08:17 am »
Thank you! my has also worked for me.
He had given up hope when I found by chance this forum thread.

Rosi thank you very much.

Gracias! a mi también me ha funcionado.
Había perdido ya las esperanzas cuando descubrí por casualidad este hilo del foro.

Muchas gracias Rosi.

don

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Upgrade to 3.4 E-Mail (fetchmail) don't work!!!
« Reply #8 on: May 28, 2014, 07:20:47 am »
Reinstalling worked for me - until it stopped. I tried to reinstall the module again but am still getting the error.