Skip to content
Snippets Groups Projects
Commit 437b3493 authored by ines mkacher's avatar ines mkacher
Browse files

Update send_mail.md

parent 358c3955
No related branches found
No related tags found
2 merge requests!14Mise à jour arborescence,!131.0
...@@ -8,7 +8,7 @@ email ...@@ -8,7 +8,7 @@ email
## Vérifications ## Vérifications
### Vérification de la configuration
```bash ```bash
maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/custom/cs_test/modules/notifications/batch/config$ ls -ltr maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/custom/cs_test/modules/notifications/batch/config$ ls -ltr
total 4 total 4
...@@ -62,7 +62,7 @@ https://docs.maarch.org/gitbook/html/MaarchCourrier/18.04/guat/guat_exploitation ...@@ -62,7 +62,7 @@ https://docs.maarch.org/gitbook/html/MaarchCourrier/18.04/guat/guat_exploitation
## Diagnostique ### Verification de l'execution du script
Dans le cas de non reception de mail, on peut faire le test en lançant le script d'envoi de mail : Dans le cas de non reception de mail, on peut faire le test en lançant le script d'envoi de mail :
...@@ -70,21 +70,14 @@ Dans le cas de non reception de mail, on peut faire le test en lançant le scrip ...@@ -70,21 +70,14 @@ Dans le cas de non reception de mail, on peut faire le test en lançant le scrip
/var/www/html/MaarchCourrier/custom/cs_carrieres/modules/notifications/batch/scripts$ ./sendmail.sh /var/www/html/MaarchCourrier/custom/cs_carrieres/modules/notifications/batch/scripts$ ./sendmail.sh
``` ```
Puis vérifier la log : ### Vérifiecation de la log :
```shell
maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch$ ls -ltr
total 136
drwxrwx--- 6 maarch www-data 4096 mai 27 15:53 logs
```
``` ```
maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch/logs/process_email_stack$ ls -ltr maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch/logs/process_email_stack$ ls -ltr
total 4 total 4
-rw-r--r-- 1 maarch www-data 484 août 6 10:56 2019-08-06_10-55-26.log -rw-r--r-- 1 maarch www-data 484 août 6 10:56 2019-08-06_10-55-26.log
```
```
maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch/logs/process_email_stack$ tail -f 2019-08-06_10-55-26.log maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch/logs/process_email_stack$ tail -f 2019-08-06_10-55-26.log
[2019-08-06 10:55:26] INFO 0 'Load xml config file:/var/www/html/MaarchCourrier/custom/cs_carrieres/modules/notifications/batch/config/config.xml' [2019-08-06 10:55:26] INFO 0 'Load xml config file:/var/www/html/MaarchCourrier/custom/cs_carrieres/modules/notifications/batch/config/config.xml'
[2019-08-06 10:55:26] INFO 0 'Load xml config file:/var/www/html/MaarchCourrier/custom/cs_carrieres/modules/notifications/batch/config/config.xml' [2019-08-06 10:55:26] INFO 0 'Load xml config file:/var/www/html/MaarchCourrier/custom/cs_carrieres/modules/notifications/batch/config/config.xml'
...@@ -92,7 +85,7 @@ maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/ ...@@ -92,7 +85,7 @@ maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/
[2019-08-06 10:56:26] INFO 109 'An instance of the batch is already in progress' [2019-08-06 10:56:26] INFO 109 'An instance of the batch is already in progress'
``` ```
Le message 'An instance of the batch is already in progress' peut signifier qu'il y a des fichiers .lck qui bloquent l'execution du script : Le message 'An instance of the batch is already in progress' ou 'ERROR 13 'Error persists, please solve this before launching a new batch' peuvent signifier qu'il y a des fichiers .lck qui bloquent l'execution du script :
``` ```
maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch$ ls -ltr maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch$ ls -ltr
...@@ -108,7 +101,14 @@ Supprimer les .lck puis relancer le script ...@@ -108,7 +101,14 @@ Supprimer les .lck puis relancer le script
maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch$ rm *.lck maarch@MaarchIntegration1810:/var/www/html/MaarchCourrier/modules/notifications/batch$ rm *.lck
``` ```
### Vérificaion de l'ouverture des ports
```
maarch@maarch-debian:/var/www/html/maarch_courrier/modules/sendmail/batch/logs$ telnet "smtphost" "port"
Trying smtphost...
telnet: Unable to connect to remote host: Connection timed out
Vous avez du nouveau courrier dans /var/mail/maarch
```
## Envoi de notifications ## Envoi de notifications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment