Cronjob nethserver - Problem download emails

Good afternoon, I wanted to know where I can find the menu to configure an automatic reboot every night of nethserver.
Unfortunately, if I don’t restart nethserver, the download of mail from Aruba does not take place correctly.

Thanks in advance

It can be done from command line, or graphically using crontab module, but maybe would be better to diagnose why the mail download doesn’t work as expected.

2 Likes

Please avoid to restart the server overnight if not really really needed.

A Linux server should be rebooted only to use a new kernel.

nethserver stops downloading emails suddenly.
I can only get the email download again by restarting it but I don’t know what the problem is

Maybe a cron job to restart the mail service until you figure out a better solution?

good idea.
But is it possible to have the code to insert in the cronjob?

First the basics:

  • which version of NS are you using? (I suppose 7)
  • how the mail get downloaded? Using the POP 3 connector or webmail client or desktop client?
  • what is reported inside /var/log/maillog and /var/log/messages?

Take also a look at: nethserver-mail — NethServer 7 documentation

Wait wait, this is still not a good solution :wink:
If we are speaking about getmail, it already uses new processes on each iteration.

1 Like

What code? You know how cron syntax works, right? If not, Google can help with that. There’s even a crontab generator out there.

1 Like

Thanks a lot for the answer:

NethServer release 7.6.1810 (final)
3.10.0-957.10.1.el7.x86_64

Nethserver uses pop3 server to get the emails from aruba and then I have desktop clients that download emails from nethserver with imap protocol.

http://109.117.2.100//contenuti/downloads/maillog
http://109.117.2.100//contenuti/downloads/messages

I took a quick look to the maillog and it’s quite evident you have recurring authentication problem:

 getmail: getmailOperationError error (POP error (-ERR [AUTH] Authentication failed.))

thanks for your reply.
now I check all email account credentials

All email account in nethserver are ok. :open_mouth:

I have disabled the backup notify from root@nethserver.mydomain

Hi, a few minutes ago nethserver crashed and I can no longer download emails from aruba …

I tried to restart it but the problem remains

I explain the problem better:
E-mail download no longer works.
The aruba server receives the emails, but then nethserver does not download them.

logs updated
http://109.117.2.100//contenuti/downloads/maillog
http://109.117.2.100//contenuti/downloads/messages

Now everything works again without changing anything

and these are the latest logs
http://109.117.2.100//contenuti/downloads/maillog
http://109.117.2.100//contenuti/downloads/messages