Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
it:cron [2023/02/15 08:29] – created - external edit 127.0.0.1it:cron [2026/08/31 08:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
-# Mémo+====== Cron ======
  
-## Envoi email+===== Configurer l'envoi d'e-mails ===== 
 +Ajouter la variable suivante dans `/etc/default/cron` :
  
-## Config cron+<code ini> 
 +MAILTO="adresse@domain.tld" 
 +</code>
  
-Dans /etc/default/cron ajouter:  `MAILTO="addresse@domain.tld"` +Puis relancer le service :
-Puis relancer cron.service+
  
-##Config MTA +<code bash> 
- +sudo systemctl restart cron.service 
-`sudo apt install msmtp msmtp-mta bsd-mailx` +</code>
- +
-vim .msmtprc +
- +
-    defaults +
-    host mail.00011100.org +
-    port 587 +
-    protocol smtp +
-    tls on +
-    tls_certcheck on +
-    tls_starttls on +
-    auth on +
- +
-    account Personal +
-    from web@00011100.org +
-    user web@00011100.org +
-    password super_passwd  +
-    account default : Web_monitoring+