RE: [Exim] Delete failed bounce notifications...

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Cory Daehn
Dátum:  
Címzett: 'Chris Dollmont', 'Tamas TEVESZ'
CC: exim-users
Tárgy: RE: [Exim] Delete failed bounce notifications...
I wrote a simple script ages ago to take care of those pesky bounce messages
w/o any homes... I'm sure there's a better way to do it, but I usually go the
simple, complex route. ;-) I put this in my daily crontab.

#!/bin/bash
exim -qff >/dev/null 2>&1
echo '#!/bin/bash'>kill.lst
echo 'exim -Mrm \'>>kill.lst
mailq1 | grep "<>" | awk -v ORS=' ' '{print $3}' >>kill.lst
chmod 700 kill.lst
./kill.lst
rm kill.lst


I also wrote one to fix the permissions on all my files/folders since
linuxconf, mandrake's security program, and a few others kept changing the
permissions every night.