Nastavení služby Alvao
Nastavení jsou uložena v souboru appsettings.json v instalační složce. Chcete-li vrátit nastavení do výchozího stavu, vytvořte soubor kopírováním a přejmenováním souboru "appsettingsSample.json". You can use Notepad in Windows to edit it.
Připojení k databázi
Připojení k databázi je definováno v sekci:
"ConnectionString": {
"Db": "Data Source=localhost;Initial Catalog=Alvao; Max Pool Size=2000; Integrated Security=True; MultipleActiveResultSets=True"
},
Napište řetězec připojení k databázi do atributu ConnectionString. Formát řetězce je stejný jako v nastavení WebApp, viz Database Connection.
Odesílání e-mailů
Komponenta Alvao Service odesílá všechny zprávy opouštějící systém Alvao. Adresa SMTP serveru pro odesílání e-mailových zpráv do databáze musí být nastavena v Administrace - Nastavení - Messaging.
E-maily jsou odesílány v dávkách, výchozí interval odesílání je 1 minuta. Pokud e-mail z nějakého důvodu selže, zůstane uložen a bude znovu odeslán na nastavený interval (výchozí hodnota 10 minut), dokud nebude úspěšně odeslán, nebo překročí počet pokusů o odeslání (výchozí hodnota 432). Once the number of send attempts is reached, the email will remain in the database for possible diagnostics.
Nastavení odesílání jsou uložena v databázi (tabulka vlastností):
Pouze zákazníci v prostorách mohou změnit výchozí hodnoty společnosti Alvao.
Proměnná | Výchozí hodnota | Význam |
---|---|---|
MailSendIntervalsekundy | 60 | Interval odesílání e-mailu - v sekundách |
Pokusy MailSendMaxAtpts | 432 | Maximální počet pokusů o odeslání e-mailu |
MailSendRetryIntervalMinutes | 10 | Interval between attempts to resend emails that failed to send - in minutes |
The change in the interval of sending emails will be reflected only after Alvao Service is restarted.
Mailboxes
If you want to automatically load messages from a specific mailbox into a specific service desk service (see Service Desk Services), in Administration - Services - Edit - Loading messages section, set up a connection to that mailbox.
Incoming message rules
Alvao Service can perform actions based on defined rules. Rules for incoming messages are set in Administration - Service Desk - Rules for incoming messages.
Automatic response detection
If Alvao encounters a message that is evaluated as an automatic reply while loading messages, this message is not considered a full message and therefore the following operations are not performed:
Reopening of a ticket by the requester or creation of a new ticket after the reopening deadline has expired.
- Stop waiting for a requester.
- Resetting the Waiting for email column.
Messages are considered an automatic reply when:
-
contain the
Auto-Submitted
parameter in the header with the value
auto-generated
,
auto-replied
or
auto-notified
or
- contain one of the predefined strings in the subject line of the message.
Settings
If you wish to change the default settings of the predefined strings that are included in the subject of auto-replies in your organization, in the Administration - Settings - Advanced select the AutoSubmittedEmails.Subjects setting and edit the string value. Individual subject templates are separated by semicolons, and the asterisk replaces any number of characters.
By default, autoresponse recognition is turned on. If you do not wish to use this functionality, in the same settings table change the AutoSubmittedEmails.Detect value to 0.
Additional settings
Additional settings are stored in the appsettings.json file of the Alvao Service app. This option is unavailable in Alvao SaaS offerings.
Variable | Value |
---|---|
SleepSeconds | The amount of time the Alvao Service waits if there are no new messages in the mailbox. The time is specified in seconds. |
Protokol událostí
Protokol událostí může být nastaven v sekci Nlog.
Ve výchozím nastavení jsou výstrahy a chyby vytištěny do protokolu událostí systému Windows.
Nicméně můžete volně změnit cíl, úroveň logování, tištěné zprávy atd. podle NLog documentation.
Diagnostický protokol
Pokud se e-mail nepodařilo odeslat, komponenta Alvao Service vytiskne chybovou zprávu do protokolu diagnostiky obsahující informace o e-mailu, který byl odeslán a text chyby, která se vyskytla. Pro zprávu informující o obecné poruše komponenty (např. neplatná databázová operace), stačí nastavit protokol na Chyba.
Pokud v databázi existují zprávy, které dosáhly maximálního počtu pokusů odeslat, zpráva je výstup jednou denně označující počet zpráv, které nemohly být odeslány (úroveň 1 a vyšší diagnostický protokol iagnostik):
"Poštovní fronta v současné době obsahuje X emaily, které nemohly být odeslány."
Neodeslané e-maily naleznete v databázi MailMessage (zákazníci v provozovnách ), kde kromě zprávy samotné (zabalené v . formát ml), jsou k dispozici informace o počtu pokusů o odeslání (SendAtpopts), poslední chybová zpráva (LastErrorMsg) a čas posledního pokusu odeslat (LastAttemptTime).