External mail server

Adding a first (new) user / portal activity notifications / email / chat
Post Reply
kolobar
Posts: 1
Joined: Wed Apr 12, 2017 5:37 pm

External mail server

Post by kolobar » Wed Apr 12, 2017 5:46 pm

How to configure the time frequency at which the system is checking external mail server for new emails ?

Maxim
Posts: 1781
Joined: Tue Oct 11, 2016 2:34 pm

Re: External mail server

Post by Maxim » Fri Apr 14, 2017 7:34 am

Hello kolobar!
Sorry for the late reply, you should edit config
/var/www/onlyoffice/Services/MailAggregator/ASC.Mail.Aggregator.CollectionService.exe.config

Code: Select all

docker exec -it onlyoffice-community-server nano /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.Aggregator.CollectionService.exe.config
- change value - 10 (seconds), this parametr changes the request time to get mailbox check list

Code: Select all

<add key="mail.check-work-timer-seconds" value="10" />
- change value - 20 (percent), this parametr changes the percent of inactive (offline) emails it needs to be checked (percent of mail check list). For example, there are 10 emails in mailbox check list and it will check 8 mailboxes of active (online) users and 2 mailboxes of inactive (offline) users

Code: Select all

<add key="mail.inactive-mailboxes-ratio" value="20" />
- change value - 25 (new mails in inbox), this parametr changes the quantity of emails it needs to upload at one session

Code: Select all

<add key="mail.max-messages-per-mailbox" value="25" />
  • Also you need to know that by default, request time to check one mailbox is limited to 30 seconds. It means that OO Mail Agregator cannot check one email more than one time in 30 seconds, but if email server "answers" not to send requests more than one time in 5 minutes then OO Mail Agregator will keep it in database and checking of that mailbox will be limited to one time in 5 minutes.
After editing config you should save changes and restart service

Code: Select all

docker exec -it onlyoffice-community-server god restart onlyofficeMailAggregator

Post Reply