View previous topic :: View next topic |
Author |
Message |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 1:34 pm Post subject: [MAIL][RISOLTO] file dead.letter && ssmtp |
|
|
Nella home di root del mio server [senza monitor, lo gestisco via SSH] mi trovo questo file "dead.letter"
Da quanto ho capito sperimentando, qusto file raccoglie l'output di eventuali processi lanciati, quando però non c'è un terminale a cui redirigerli.
sono andato a spulciare il file /etc/crontab ed ho visto che lanciava qualche programma e così ho cambiato alcune linee da
Quote: | 2 0 * * * root /etc/backup.sh |
a
Quote: | 2 0 * * * root /etc/backup.sh > /dev/null |
Secondo voi si può fare meglio, a livello di pipe?
Continua però a comparirmi questa scritta
Quote: | /bin/bash: line 1: root: command not found |
dove potrei andare a cercare o come potrei fare a cercare quale file alla riga uno invoca il comando root?
grazie
deadhead _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy !
Last edited by .:deadhead:. on Wed Jun 08, 2005 8:09 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Mon Jun 14, 2004 2:01 pm Post subject: |
|
|
Ciao, per il redirect totale di stdout e stderr si usa &>, quindi verrebbe
Code: |
2 0 * * * root /etc/backup.sh &> /dev/null
|
Quella linea di errore dove ti compare? _________________ "The only reason of the man's sadness
is that he can't stay peacefully in his room."
Blaise Pascal |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 3:09 pm Post subject: |
|
|
solka wrote: | Ciao, per il redirect totale di stdout e stderr si usa &>, quindi verrebbe
Code: |
2 0 * * * root /etc/backup.sh &> /dev/null
|
Thank U! |
solka wrote: | Quella linea di errore dove ti compare? |
Quella riga mi compare nel file dead.letter. Precisamente con questa formattazione:
Quote: |
/bin/bash: line 1: root: command not found |
Inoltre avevo trovato dell'output relativo al programma dell'UPS.
Ho fatto una prova con l'UPS, ed anche l'UPS stampa su console dei messaggi di output. Quando non c'erano console quindi, l'output veniva rediretto sempre nel file dead.letter. _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Mon Jun 14, 2004 3:13 pm Post subject: |
|
|
solka wrote: |
2 0 * * * root /etc/backup.sh &> /dev/null
|
IMHO farei:
Code: | 2 0 * * * root /etc/backup.sh &>> /path/to/log
|
giusto per tenere un minimo di traccia.
(inoltre per una cosa pulita metterei il file backup.sh in tutt'altra directory che /etc ma degustibus...)
.:deadhead:. wrote: | Quella riga mi compare nel file dead.letter. |
se avvii il file a mano cosa dice? _________________ Ciao da me! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 3:43 pm Post subject: |
|
|
randomaze wrote: | Code: | 2 0 * * * root /etc/backup.sh &>> /path/to/log
|
giusto per tenere un minimo di traccia. |
Piccolo exursus: il file è questo Code: | #!/bin/sh
#
#Nome: backup.sh
#
DATA=`date`
#
echo "" >> /var/log/backup.log
echo "Backup del" $DATA >> /var/log/backup.log
#
tar -cvf /dev/st0 /home >> /var/log/backup.log
#
#
# con mt gestisco il DDS: "rewoffl" lo riavvolge e lo espelle
#
mt -f /dev/st0 rewind
#
DATA=`date`
echo "Backup terminato correttamente alle " $DATA >> /var/log/backup.log |
Quando di più grezzo potessi scrivere, ma il suo lavoro lo fa
La tua soluzione è sicuramente più bellina. Con calma poi la introdurrò nel sistema.
randomaze wrote: | (inoltre per una cosa pulita metterei il file backup.sh in tutt'altra directory che /etc ma degustibus...) |
Prima o poi lo sposto, lo prometto
randomaze wrote: | se avvii il file a mano cosa dice? |
Il problema non è quel piccolo script, ma un altro programma che non riesco ad identificare bene che mi da quell'output di errore nel file dead.letter.
non so se possa esser una cosa collegata, ma questo è quello che ho nel mio /var/log/messages
Code: | Jun 14 17:15:00 POWEREDGE CRON[2487]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:15:00 POWEREDGE CRON[2490]: (clamav) CMD (root /usr/bin/freshclam)
Jun 14 17:15:00 POWEREDGE CRON[2492]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:15:00 POWEREDGE sSMTP[2496]: Unable to locate mail
Jun 14 17:15:00 POWEREDGE sSMTP[2496]: Cannot open mail:25
Jun 14 17:15:00 POWEREDGE CRON[2491]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:35:00 POWEREDGE CRON[2846]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:35:00 POWEREDGE CRON[2849]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:35:00 POWEREDGE sSMTP[2851]: Unable to locate mail
Jun 14 17:35:00 POWEREDGE sSMTP[2851]: Cannot open mail:25
Jun 14 17:35:00 POWEREDGE CRON[2845]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:35:00 POWEREDGE sSMTP[2852]: Unable to locate mail
Jun 14 17:35:00 POWEREDGE sSMTP[2852]: Cannot open mail:25
Jun 14 17:35:00 POWEREDGE CRON[2848]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:38:00 POWEREDGE CRON[3066]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:38:00 POWEREDGE CRON[3069]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:38:00 POWEREDGE sSMTP[3072]: Unable to locate mail
Jun 14 17:38:00 POWEREDGE sSMTP[3072]: Cannot open mail:25
Jun 14 17:38:00 POWEREDGE CRON[3068]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:38:00 POWEREDGE sSMTP[3071]: Unable to locate mail
Jun 14 17:38:00 POWEREDGE sSMTP[3071]: Cannot open mail:25
Jun 14 17:38:00 POWEREDGE CRON[3065]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:39:00 POWEREDGE CRON[3092]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:39:00 POWEREDGE CRON[3095]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:39:00 POWEREDGE sSMTP[3097]: Unable to locate mail
Jun 14 17:39:00 POWEREDGE sSMTP[3097]: Cannot open mail:25
Jun 14 17:39:00 POWEREDGE CRON[3094]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:39:00 POWEREDGE sSMTP[3098]: Unable to locate mail
Jun 14 17:39:00 POWEREDGE sSMTP[3098]: Cannot open mail:25
Jun 14 17:39:00 POWEREDGE CRON[3091]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:40:00 POWEREDGE CRON[3113]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:40:00 POWEREDGE CRON[3109]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:40:00 POWEREDGE CRON[3111]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:40:00 POWEREDGE sSMTP[3126]: Unable to locate mail
Jun 14 17:40:00 POWEREDGE sSMTP[3126]: Cannot open mail:25
Jun 14 17:40:00 POWEREDGE CRON[3110]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:40:00 POWEREDGE sSMTP[3115]: Unable to locate mail
Jun 14 17:40:00 POWEREDGE sSMTP[3115]: Cannot open mail:25
Jun 14 17:40:00 POWEREDGE CRON[3112]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:41:00 POWEREDGE CRON[3131]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:41:00 POWEREDGE CRON[3134]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:41:00 POWEREDGE sSMTP[3136]: Unable to locate mail
Jun 14 17:41:00 POWEREDGE sSMTP[3136]: Cannot open mail:25
Jun 14 17:41:00 POWEREDGE CRON[3130]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:41:00 POWEREDGE sSMTP[3137]: Unable to locate mail
Jun 14 17:41:00 POWEREDGE sSMTP[3137]: Cannot open mail:25
Jun 14 17:41:00 POWEREDGE CRON[3133]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:42:00 POWEREDGE CRON[3143]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:42:00 POWEREDGE CRON[3146]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:42:00 POWEREDGE sSMTP[3148]: Unable to locate mail
Jun 14 17:42:00 POWEREDGE sSMTP[3148]: Cannot open mail:25
Jun 14 17:42:00 POWEREDGE CRON[3142]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:42:00 POWEREDGE sSMTP[3149]: Unable to locate mail
Jun 14 17:42:00 POWEREDGE sSMTP[3149]: Cannot open mail:25
Jun 14 17:42:00 POWEREDGE CRON[3145]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:43:00 POWEREDGE CRON[3151]: (root) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:43:00 POWEREDGE CRON[3154]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:43:00 POWEREDGE sSMTP[3156]: Unable to locate mail
Jun 14 17:43:00 POWEREDGE sSMTP[3156]: Cannot open mail:25
Jun 14 17:43:00 POWEREDGE CRON[3150]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:43:00 POWEREDGE sSMTP[3157]: Unable to locate mail
Jun 14 17:43:00 POWEREDGE sSMTP[3157]: Cannot open mail:25
Jun 14 17:43:00 POWEREDGE CRON[3153]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
|
Queste righe si ripetono in continuazione. Ogni minuto [ne ho presi alcuni blocchi a caso dal log]
Questo infine è il file /etc/contab
Code: | # for vixie cron
#
# $Header: /home/cvsroot/gentoo-x86/sys-apps/vixie-cron/files/crontab-3.0.1-r4,v 1.4 2004/03/29 21:28:19 avenj Exp $
#
#
# Global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
#0 * * * * root /usr/bin/freshclam
2 0 * * * root /etc/backup.sh &> /dev/null
|
e questo è /usr/sbin/run-crons
Code: |
root@POWEREDGE lastrun # cat /usr/sbin/run-crons
#!/bin/sh
#
# $Header: /var/cvsroot/gentoo-x86/sys-apps/cronbase/files/run-crons-0.2.1,v 1.1 2004/05/25 03:55:27 agriffis Exp $
#
# 23 Jun 2002; Jon Nelson <jnelson@gentoo.org> run-crons:
#
# fixed a race condition, where cron jobs and run-crons wanted to delete
# touch files
#
# 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> run-crons:
#
# moved lastrun directory to /var/spool/cron/lastrun
#
# Author: Achim Gottinger <achim@gentoo.org>
#
# Mostly copied from SuSE
#
# this script looks into /etc/cron.[hourly|daily|weekly|monthly]
# for scripts to be executed. The info about last run is stored in
# /var/spool/cron/lastrun
mkdir -p /var/spool/cron/lastrun
# Make sure its not running multiple instances at once.
if test -f /var/spool/cron/lastrun/lock
then
cronpid=`cat /var/spool/cron/lastrun/lock`
if `kill -0 $cronpid >/dev/null 2>&1`
then
exit 0
fi
fi
echo "$$" >/var/spool/cron/lastrun/lock
for BASE in hourly daily weekly monthly
do
CRONDIR=/etc/cron.${BASE}
test -d $CRONDIR || continue
if test -e /var/spool/cron/lastrun/cron.$BASE
then
case $BASE in
hourly)
#>= 1 hour, 5 min -=> +65 min
TIME="-cmin +65" ;;
daily)
#>= 1 day, 5 min -=> +1445 min
TIME="-cmin +1445" ;;
weekly)
#>= 1 week, 5 min -=> +10085 min
TIME="-cmin +10085" ;;
monthly)
#>= 31 days, 5 min -=> +44645 min
TIME="-cmin +44645" ;;
esac
find /var/spool/cron/lastrun -name cron.$BASE $TIME -exec rm {} \;
fi
# if there is no touch file, make one then run the scripts
if test ! -f /var/spool/cron/lastrun/cron.$BASE
then
touch /var/spool/cron/lastrun/cron.$BASE
set +e
for SCRIPT in $CRONDIR/*
do
test -d $SCRIPT && continue
if test -x $SCRIPT ; then
$SCRIPT
fi
done
fi
done
# Remove lock, we're done.
rm -f /var/spool/cron/lastrun/lock
touch /var/spool/cron/lastrun
find /var/spool/cron/lastrun -newer /var/spool/cron/lastrun -exec /bin/rm -f {} \;
|
Non so bene che pesci pigliare... Probabilmente c'è un nesso tra i log su messages e questo output nel file dead.letter, ma non riesco proprio a capire quale sia!
Se hai bisogno di altri file chiedi pure... _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Mon Jun 14, 2004 4:01 pm Post subject: |
|
|
.:deadhead:. wrote: | Jun 14 17:35:00 POWEREDGE CRON[2849]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:35:00 POWEREDGE sSMTP[2851]: Unable to locate mail
Jun 14 17:35:00 POWEREDGE sSMTP[2851]: Cannot open mail:25
Jun 14 17:35:00 POWEREDGE CRON[2845]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:35:00 POWEREDGE sSMTP[2852]: Unable to locate mail
Jun 14 17:35:00 POWEREDGE sSMTP[2852]: Cannot open mail:25
Jun 14 17:35:00 POWEREDGE CRON[2848]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
|
Ma se mandi manualmente una mail a root questo la riceve?
Perché da quelle linee sembra che il file dead.letter lo crea il comando mail perché non riesce ad evadere la posta. _________________ Ciao da me! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 4:26 pm Post subject: |
|
|
randomaze wrote: | .:deadhead:. wrote: | Jun 14 17:35:00 POWEREDGE CRON[2849]: (clamav) CMD (root^Itest -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jun 14 17:35:00 POWEREDGE sSMTP[2851]: Unable to locate mail
Jun 14 17:35:00 POWEREDGE sSMTP[2851]: Cannot open mail:25
Jun 14 17:35:00 POWEREDGE CRON[2845]: (root) MAIL (mailed 43 bytes of output but got status 0xffffffff )
Jun 14 17:35:00 POWEREDGE sSMTP[2852]: Unable to locate mail
Jun 14 17:35:00 POWEREDGE sSMTP[2852]: Cannot open mail:25
Jun 14 17:35:00 POWEREDGE CRON[2848]: (clamav) MAIL (mailed 43 bytes of output but got status 0xffffffff )
|
Ma se mandi manualmente una mail a root questo la riceve?
Perché da quelle linee sembra che il file dead.letter lo crea il comando mail perché non riesce ad evadere la posta. |
Il problema è che io il programma mail non ce l'ho, e non capisco quale diavolo di programma voglia madare una mail. Inoltre nei vari file di config ho prontamente commentato le varie opzioni spedisci una mail etc etc...
Giusto per toglierci uno sfizio, che programma dovrei installare? Considera però che su questo server non c'è nulla a parte samba, clamav e il sistema di base: le mail arriverano lo stesso? _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Mon Jun 14, 2004 4:32 pm Post subject: |
|
|
.:deadhead:. wrote: | Il problema è che io il programma mail non ce l'ho, e non capisco quale diavolo di programma voglia madare una mail. Inoltre nei vari file di config ho prontamente commentato le varie opzioni spedisci una mail etc etc...
|
La linea:
nel crontab non ti fa venire nessun sospetto?
Quote: |
Giusto per toglierci uno sfizio, che programma dovrei installare? Considera però che su questo server non c'è nulla a parte samba, clamav e il sistema di base: le mail arriverano lo stesso? |
se non hai mail (sei sicuro?) credo che lo trovi in mail-client/mailx
EDIT:
Curiosamente noto che la tua linea di errore dovrebbe essere più o meno la stessa che si otterrebbe da un comando tipo:
Code: | $AMAILCMD $MAILTO blablabla |
dove AMAILCMD non fosse valorizzato e MAILTO vale root
(nota che il nome AMAILCMD lo ho inventato io....) _________________ Ciao da me! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 4:56 pm Post subject: |
|
|
randomaze wrote: | La linea:
nel crontab non ti fa venire nessun sospetto? |
doh!!! Nel cassetto più remoto della mia testa sapevo di aver visto una qualche variabile tipo MAIL... Thanks
Quote: |
se non hai mail (sei sicuro?) credo che lo trovi in mail-client/mailx
|
Si si... mi dice command not found.
Quote: | EDIT:
Curiosamente noto che la tua linea di errore dovrebbe essere più o meno la stessa che si otterrebbe da un comando tipo:
Code: | $AMAILCMD $MAILTO blablabla |
dove AMAILCMD non fosse valorizzato e MAILTO vale root
(nota che il nome AMAILCMD lo ho inventato io....) |
Per non saper ne leggere ne scriver ho sostituito in /etc/crontab con Code: | MAILTO=gianni@pinotto.it |
vediamo un po' che accade... _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 6:22 pm Post subject: |
|
|
Aggiornamento. Sembra che per quanto abbia sostituito la variabile MAIL=gianni@pinotto nel file dead.letter continua ad esistere il solito rigo malefico.
Quindi, non è crontab.
Ho però scoperto che i simpatici programmatori di APCUPSD hanno inserito una miriade di script che ad ogni piè sospinto mandano una mail all'admin.
Non ho avuto il tempo di fare delle prove [anche io devo andare a casa a mangiare ] ma forse potrebbe essere proprio APCUPSD che attraverso qualche script tenta di mandarmi una mail.
Domani vedrò di rinominarli e vedere cosa accade.
Se anche così facendo non cambia nulla, beh allora installerò mailx e scoprirò chi con tanto ardore prova a scirvermi
ringrazio intanto Solka e randomaze per l'aiuto ![Smile :)](images/smiles/icon_smile.gif) _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Mon Jun 14, 2004 11:18 pm Post subject: |
|
|
Tra l'altro quei messaggi di errore riguardo a mail continuo a riceverli anch'io e non riesco a capire perchè debba avere per forza installato mail, non esiste un modo per disabilitare questa notifica? _________________ "The only reason of the man's sadness
is that he can't stay peacefully in his room."
Blaise Pascal |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Tue Jun 15, 2004 7:53 am Post subject: |
|
|
solka wrote: | Tra l'altro quei messaggi di errore riguardo a mail continuo a riceverli anch'io e non riesco a capire perchè debba avere per forza installato mail, non esiste un modo per disabilitare questa notifica? |
Gli errori vengono tutti da sSMTP che è Quote: | Extremely simple MTA to get mail off the system to a Mailhub | e mi sembra sia installato di default. Evidentemente alcuni script per esser user-friendly si divertono a mandare mail all'admin, queste vengono intercettate da ssmtp che xò poi non sa cosa farene.
forse...
Adesso vado a vedere come procede quell'accrocchio e vedo se ci trovo una soluzione o se quantomeno riesco a capire quale cavolo di servizio continua a volermi scrivere mail... ![Evil or Very Mad :evil:](images/smiles/icon_evil.gif) _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Wed Jun 08, 2005 8:09 am Post subject: |
|
|
giusto per chiudere i propri conti (mamma quanto tempo fà): gli errori eran causati dal ssmtp che era malconfigurato
i file /etc/ssmtp.conf e /etc/revaliases.conf sono abbastanza ben commentati.
Una volta configurato ssmtp per redirigere tutte le mail che il sistema invierebbe a ROOT su un indirizzo preciso [specificato in revaliases] tramite un server smtp [specificato in ssmtp] ora non ho più problemi di dead.letter.
grazie a tutti ![Very Happy :-D](images/smiles/icon_biggrin.gif) _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|