... | ... | @@ -225,4 +225,64 @@ on est bon ! |
|
|
https://canular.inrae.fr/register.php
|
|
|
|
|
|
chmod 777 /var/www/html/elabftw/cache/purifier
|
|
|
chown -R www-data:www-data elabftw/ |
|
|
\ No newline at end of file |
|
|
chown -R www-data:www-data elabftw/
|
|
|
|
|
|
|
|
|
# Serveur mail
|
|
|
|
|
|
```
|
|
|
sudo apt install exim4
|
|
|
```
|
|
|
|
|
|
## configuration
|
|
|
/etc/exim4/update-exim4.conf.conf
|
|
|
|
|
|
```
|
|
|
dc_eximconfig_configtype='smarthost'
|
|
|
dc_other_hostnames=''
|
|
|
dc_local_interfaces='127.0.0.1 ;147.100.202.22' # seconde adresse = ip du serveur
|
|
|
dc_readhost='bordeaux.inra.fr'
|
|
|
dc_relay_domains=''
|
|
|
dc_minimaldns='false'
|
|
|
dc_relay_nets=''
|
|
|
dc_smarthost='smtp.inra.fr::587'
|
|
|
CFILEMODE='644'
|
|
|
dc_use_split_config='false'
|
|
|
dc_hide_mailname='true'
|
|
|
dc_mailname_in_oh='true'
|
|
|
dc_localdelivery='mail_spool'
|
|
|
```
|
|
|
|
|
|
## compte mail
|
|
|
|
|
|
/etc/exim4/passwd.client
|
|
|
```
|
|
|
*:compte@inra.fr:password
|
|
|
```
|
|
|
## adresse
|
|
|
/etc/email-addresses
|
|
|
```
|
|
|
root:compte@inra.fr
|
|
|
debian:compte@inra.fr
|
|
|
www-data:compte@inra.fr
|
|
|
```
|
|
|
|
|
|
## redémarrer le service
|
|
|
|
|
|
sudo update-exim4.conf
|
|
|
sudo systemctl restart exim4.service
|
|
|
|
|
|
## test si ça fonctionne
|
|
|
|
|
|
|
|
|
/usr/bin/mailx -n -s "test subject" -a "sdeeph06 - mail" blabla.blabla@inra.fr
|
|
|
|
|
|
Configuration mail avec exim
|
|
|
|
|
|
exim4-base installé
|
|
|
|
|
|
test envoi :
|
|
|
|
|
|
echo "Message de test" | mail blabla.blabla@inra.fr -s "Test `date`"
|
|
|
|
|
|
|