Instead of sending mail, write a file elsewhere, and look for that file at reboot: if file is present, send mail and delete the file.
Of course, you'll be warned of the reboot just after that.
 
Anyway, if qmail starts with the machine, why the alert isn't in the queue?

---
Cordiali saluti / Best regards
Andrea Cerrito
^^^^^^^^^^^^^^
Net.Admin @ Centro MultiMediale di Terni S.p.A.
P.zzale Bosco 3A
05100 Terni IT
Tel. +39 744 5441330
Fax. +39 744 5441372

-----Messaggio originale-----
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 14 maggio 2001 15.33
A:       
Oggetto: Rebooting before sending mail


Hi. I have a problem: When my machine is rebooting/shutdown, I have set up a rc-script that sends a mailalert to the administrator that the machine has been rebooted. But the machine makes the reboot so fast that the mail never gets send. Any ideas to solve this little problem?

Reply via email to