ACPI administration advocacy advocacy advocacy opinion alsa amarok apache apple apt aptitude audio audo authentication automount avi awk bash BIOS boot business cache calendar calibre censorship commandline computerscience console cron cut database date debian degree design desktop development disk dpkg dvd economics education emacs email europe exim faad ffmpeg files firefox firewall flash foss freedom ftp fun fuse git gnumeric grep growisofs grub gtkpod hardware hardware html idiocy images installation ip iphone ipod iptables iso itunes ivman kde kernel keyboard knoppix lame laptop latex linux locale lockin longlines m4a microsoft mimetypes minitab mount mp3 mp4 mplayer multimedia music mysql network nfs nfs4 nmap openbox openoffice opinion opinion partition pdf perl php politics postgresql printing privacy programming rant remote rhythmbox rss rsync rxvt scp script scripting scsi security sed server shell siteadmin sitenews sitesoftware skype skype slackware sound sox spam spreadsheet ssh statistics subversion sudo svk swap t23 t43 terminal text thinkpad thunderbird time timezone ubuntu udev upgrade usb usbmount users uuid versioncontrol vfat video vnc windows wine wordpress wordprocessing X40 xwindows xwindows youtube
Over the last few months on one of my Linux computers, the mail transfer agent, exim has been trying to return email back to certain people to tell them it can't deliver the messages. But because these people are spammers their addresses don't exist so the messages can't be returned. As a result a huge mail queue has been built up of 'frozen' messages.
To get rid of them, log in as root and enter the following command:
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm
Another useful command is the following one that reports how many frozen mails are in the queue:
exim -bpr | grep frozen | wc -l
And finally this command reports how many mails (frozen or not) are in the queue:
exim -bpr | grep "<" | wc -lThanks to this thread for this invaluable
Also, instead of doing "grep frozen | wc -l", you can shorten that to "grep -c frozen"
or with exim4: exiqgrep -z -i | xargs exim -Mrm
exim -bpc gives a ques count and saves resources as no grepping is needed
Posted by Guest User on 2006-09-08 11:14:07.