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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Dennis Skinner
Dátum:  
Címzett: exim-users
Tárgy: RE: [Exim] Delete failed bounce notifications...
On Wed, 2003-08-06 at 15:27, Cory Daehn wrote:
> 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
>


Something like this would be easier:

exiqgrep -f "<>" -i | xargs exim -Mrm

You can even add an age...

exiqgrep -f "<>" -o <# of secs> -i | xargs exim -Mrm

Not sure what systems have xargs, but exiqgrep is a nice little script
to play with....

--
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com