We run our mail server on E-Smith 6.0. Though we employ and outside service to filter our mail for spam (they delete spam; they do not send it on to us), we still get mountains of junk mail. I suspect spammers are dropping the mail directly on our server. Over the course of a couple of months we have accumulated over 3 gigs of undeliveralbe mail. E-Smith gives me two options for handling undeliverable mail: return it or send it to the admin account. Well, I know trying to return it would be pointless because most of it has spoofed return address, so I have it delivered to a user account I created for the purpose called "yspam".
The problem now is that it's extremely hard to delete the mail. Trying to login via webmail times out over and over -- it's just more than the system can handle. I've gone in on the command line to the yspam\Maildir\cur folder and deleted the entire contents (find . -name '1*' -print0 | xargs -0 rm) but then more mail floods in to fill it. (I guess cur only holds a limited number of messages??)
Could I delete the user, yspam? When I delete a user, does it dump all their pending mail files? Or can I run some kind of scheduled batch file to delete files on a regular basis?
Any help would be appreciated.
Mindea